quantcore.matrix 2.0.3
2.0.3 - 2021-07-15
Bug fix:
- In
SplitMatrix.sandwich
, when a col subset was specified, incorrect output was produced if the components of the indices array were not sorted.SplitMatrix.__init__
now checks for sorted indices and maintains sorted index lists when combining matrices.
Other changes:
SplitMatrix.__init__
now filters out any empty matrices.StandardizedMatrix.sandwich
passesrows=None
andcols=None
onwards to the underlying matrix instead of replacing them with full arrays of indices. This should improve performance slightly.SplitMatrix.__repr__
now includes the type of the underlying matrix objects in the string output.