- The matrix types previously required that
D: Copy
in order to do anything useful. With this release, the APIs have been converted to relax this bound and instead the iterators and accessors return values by reference. - The matrix types gained by-reference iterators over the underlying data
vectors (
iter()
anditer_mut()
).
DistMatrix
andSquareMatrix
can optionally store a list of labels corresponding to the underlying elements (e.g. taxa). There are new methods to get values by label. Some APIs changes as a result, for example the file parsers now just return a matrix rather than a(labels, matrix)
pair.DistMatrix
andSquareMatrix
can be constructed from iterators over pairs of labels associated with distances usingfrom_labelled_distances
.