From 99b710a57d11d296975fb68c31a8a2d85e699f95 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Sun, 25 Nov 2012 05:50:45 +0200 Subject: [PATCH] [Matrix.Arithmetic] Matrix-Matrix operations that CreateMatrix() request a fullyMutable matrix Signed-off-by: Alexander Karatarakis --- src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs b/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs index 58180ebc..1abf7c81 100644 --- a/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs +++ b/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs @@ -481,7 +481,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic throw DimensionsDontMatch(this, other); } - var result = CreateMatrix(RowCount, other.ColumnCount); + var result = CreateMatrix(RowCount, other.ColumnCount, true); Multiply(other, result); return result; } @@ -550,7 +550,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic throw DimensionsDontMatch(this, other); } - var result = CreateMatrix(RowCount, other.RowCount); + var result = CreateMatrix(RowCount, other.RowCount, true); TransposeAndMultiply(other, result); return result; } @@ -683,7 +683,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic throw DimensionsDontMatch(this, other); } - var result = CreateMatrix(ColumnCount, other.ColumnCount); + var result = CreateMatrix(ColumnCount, other.ColumnCount, true); TransposeThisAndMultiply(other, result); return result; }