From b7f1157b48bfe1e3ec4ab78a4843362e1161f413 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Fri, 11 Nov 2016 15:01:46 +0100 Subject: [PATCH] LA: Transpose into provided result matrix #431 --- src/Numerics/LinearAlgebra/Matrix.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Numerics/LinearAlgebra/Matrix.cs b/src/Numerics/LinearAlgebra/Matrix.cs index 42d4877f..500416a3 100644 --- a/src/Numerics/LinearAlgebra/Matrix.cs +++ b/src/Numerics/LinearAlgebra/Matrix.cs @@ -1002,6 +1002,15 @@ namespace MathNet.Numerics.LinearAlgebra return result; } + /// + /// Puts the transpose of this matrix into the result matrix. + /// + /// The transpose of this matrix. + public void Transpose(Matrix result) + { + Storage.TransposeTo(result.Storage, ExistingData.Clear); + } + /// /// Returns the conjugate transpose of this matrix. ///