Skip to content

Commit dbcd7a9

Browse files
authored
Merge pull request #956 from rca22/master
Fix initialisation bug in sparse matrix DoTransposeThisAndMultiply operation
2 parents 4bef5fe + 6445c66 commit dbcd7a9

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)