I want matrix column stacks in Maxima.
Example
b3: matrix( [1,0,0], [-a21,1,0], [-a31,-a32,1] );
I wonder how to stack the columns of this matrix. Thanks in advance for your help and time.
Here is a naive way to do this:
c : transpose( b3 ); transpose( append( c[0], c[1], c[2] ) );
and here is a more general way:
apply(append, map(lambda([r], transpose(b3)[r]), makelist(i,i,3)));
Or even just:
transpose(apply(append,args(transpose(b3))));
Source: https://habr.com/ru/post/1411645/More articles:How to get jQuery Validator to remotely run errorPlacement? - jqueryRegex splits string and repeating stripe character - pythonChanging the Image button on hover or click - imageProperties in Objective c. copy and save - propertiesget value ofhtml page with PHP DOM? - phpMocking private methods used in a public method with PowerMock, Mockito, and TestNG - javaASP.NET MVC3 cannot access font (static content) - cssGrep and ignore reduced javascript - grepfind control on the main page - asp.netString coding and decoding, possibly latin1 and utf8 - pythonAll Articles