Description:
The attached file contains function MatrixTranspose to transpose a matrix. Example usage:
static void Main(string[] args)
{
double[,] testmat = new double[,]{
{1,0.469616637751409,0.0321852332934451},
{1,0.584042142347909,0.609297763900887},
{1,0.001159208824423,0.501732644823245},
{1,0.00916210141963347,0.798213528128843},
{1,0.184583708904871,0.407974390586893},
{1,0.632649316812568,0.823094915394345},
{1,0.00355611846861903,0.71890154533854},
{1,0.4097402319276,0.939458221544854},
{1,0.0721900403353191,0.602044624877255},
{1,0.176475375286387,0.363513955371647},
{1,0.324901267518968,0.322315423094298},
{1,0.581395628184172,0.760106094852296},
};
double[,] retmat = GSLHelper.MatrixTranspose(testmat, 12, 3);
}
Got a question or problem with this link? Just enter your message and click on submit. No registration is required.
|