I'm new to Math.Net. Let's say I have a multi-dimensional matrix as:
double [,,] matA = new double [2,3,3];
for(k = 0; k < 2; k++)
{
for(i = 0; i < 3; i++)
{
for(j = 0 ;j < 3; j++)
{
matA[k,i,j] = ... // assign some value
}
}
}
I want to find the transpose of "matA[0,All,All]
" and "matA[1,All,All]
" where the "All" pseudo-syntax is from Mathematica which is useful, however, I don't know how to extract the [0,All,All]
or [1,All,All]
matrices in Math.Net.
I appreciate any help and advice about how to extract a specific part of the multi-dimensional matrix in Math.Net.
I have copied the matrix defined above as "matA" into "matAnew" as follows:
Matrix<double> matAnew = DenseMatrix.OfArray(matA);
matAnew.SubMatrix(?,?,?,?)
I have an intuition that the SubMatrix method in Math.Net can be used for it but I'm not sure how could it be done.