Browse Source

[Matrix.Arithmetic] Matrix-Matrix operations that CreateMatrix() request a fullyMutable matrix

Signed-off-by: Alexander Karatarakis <alex@karatarakis.com>
la-symmetric^2
Alexander Karatarakis 14 years ago
parent
commit
99b710a57d
  1. 6
      src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs

6
src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs

@ -481,7 +481,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
throw DimensionsDontMatch<ArgumentException>(this, other); throw DimensionsDontMatch<ArgumentException>(this, other);
} }
var result = CreateMatrix(RowCount, other.ColumnCount); var result = CreateMatrix(RowCount, other.ColumnCount, true);
Multiply(other, result); Multiply(other, result);
return result; return result;
} }
@ -550,7 +550,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
throw DimensionsDontMatch<ArgumentException>(this, other); throw DimensionsDontMatch<ArgumentException>(this, other);
} }
var result = CreateMatrix(RowCount, other.RowCount); var result = CreateMatrix(RowCount, other.RowCount, true);
TransposeAndMultiply(other, result); TransposeAndMultiply(other, result);
return result; return result;
} }
@ -683,7 +683,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
throw DimensionsDontMatch<ArgumentException>(this, other); throw DimensionsDontMatch<ArgumentException>(this, other);
} }
var result = CreateMatrix(ColumnCount, other.ColumnCount); var result = CreateMatrix(ColumnCount, other.ColumnCount, true);
TransposeThisAndMultiply(other, result); TransposeThisAndMultiply(other, result);
return result; return result;
} }

Loading…
Cancel
Save