简体   繁体   English

可以使用math.net制作超过2维的矩阵

[英]can make more than 2 dimensional Matrix using math.net

I need to use a 4 dimensional matrix. 我需要使用4维矩阵。

I am using math.net numeric library for c#, 我正在使用math.net数字库来进行c#,

I have tried the 我试过了

Matrix<Matrix<double>> test;

but it didn't work 但它不起作用

i know that I can write the following 我知道我可以写下面的内容

Matrix<double> [][] test;

but I don't want it this way 但我不希望这样

No. The Math.NET Numerics Linear Algebra functionality operates on vectors and matrices, not on arbitrary-dimensional arrays (by design; other than libraries like ILNumerics which do operate on such arrays). 不可以.Math.NET Numerics线性代数功能在矢量和矩阵上运行,而不是在任意维数组上运算(通过设计;除了ILNumerics之类的库,它们可以在这样的数组上运行)。 As such it does not provide a 4 dimensional "matrix"-like data structure. 因此,它不提供类似“矩阵”的数据结构。

Do you really need tensor-arithmetics on top of that, or is this more about storing a table of matrices (or a cube of vectors)? 你是否真的需要张量算术,或者更多的是关于存储矩阵表(或向量的多维数据集)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM