Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : .NET : 


Category: .NET View Full Details
Download Now!Matrix Transpose in C# using GSL
Submitter: vanna Date: 2011/1/19
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.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 271 times  271  File Size 0 bytes  Supported Platforms C# .NET GSL  Home Page http://www.quantcode.com
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (7)

Discuss this file. Just enter your message and click on submit. No registration is required.
Similar Links:

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.