fix(math): preserve certified sums and complete MKL algebra
This commit is contained in:
@@ -211,6 +211,10 @@ Vector SparseMatrix::Multiply(const Vector& rhs) const {
|
||||
if (!Validate().IsOk()) {
|
||||
throw std::invalid_argument{"Sparse multiplication requires valid CSR."};
|
||||
}
|
||||
for (std::size_t i = 0; i < rhs.Size(); ++i) {
|
||||
if (!std::isfinite(rhs[i]))
|
||||
throw std::invalid_argument{"Sparse multiplication RHS must be finite."};
|
||||
}
|
||||
const MKL_INT rows = SparseSize(rows_);
|
||||
const MKL_INT columns = SparseSize(columns_);
|
||||
static_cast<void>(SparseSize(values_.size()));
|
||||
|
||||
Reference in New Issue
Block a user