Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Maxima 中堆叠矩阵的列。
例子
b3: matrix( [1,0,0], [-a21,1,0], [-a31,-a32,1] );
我想知道如何堆叠这个矩阵的列。提前感谢您的帮助和时间。
这是一种天真的方法:
c : transpose( b3 ); transpose( append( c[0], c[1], c[2] ) );
这是一种更通用的方法:
apply(append, map(lambda([r], transpose(b3)[r]), makelist(i,i,3)));
甚至只是:
transpose(apply(append,args(transpose(b3))));