This project has moved. For the latest updates, please go here.

Save a transpose matrix

Apr 4, 2011 at 1:54 PM

double[,] Atmp = new double[4, 4] { { 1, 0, 1, 0 }, { 0, 1, 0, 1 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } };

var A = new DenseMatrix(Atmp);

double Atp = new double();

Atp = A.Transpose();

 

I need to save the A.Transpose() to another matrix, the function tranpose() return a MathNet.Numerics.LinearAlgebra.Generic.Matrix<double> but i can't figure out how create a variable to save it :s

Apr 4, 2011 at 1:56 PM

var transpose = (DenseMatrix)A.Transpose(); should work.