Skip to content

Commit 6445c66

Browse files
committed
Fix initialisation bug in sparse matrix DoTransposeThisAndMultiply operation
1 parent 4b13ff4 commit 6445c66

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Numerics/LinearAlgebra/Double/SparseMatrix.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ protected override void DoTransposeAndMultiply(Matrix<double> other, Matrix<doub
11621162
/// <param name="result">The result of the multiplication.</param>
11631163
protected override void DoTransposeThisAndMultiply(Vector<double> rightSide, Vector<double> result)
11641164
{
1165+
result.Clear();
11651166
var rowPointers = _storage.RowPointers;
11661167
var columnIndices = _storage.ColumnIndices;
11671168
var values = _storage.Values;

0 commit comments

Comments
 (0)