John007 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, appreciate if can help me in converting a Column matrix to a row matrix using Math::MatrixReal module
use Math::MatrixReal; # my matrix is below as input my $mref = [ [ '5', '4', '4', '2', '4' ], ]; my $matrix = Math::MatrixReal->new_from_rows( $mref ); print $matrix; # I want to convert above into below ( 5 Rows x 1 Column) # As I need this for later on to use for further multiplication purpos +e [ [ '5'], [ '4' ], [ '4'], [ '2'], [ '4'], ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert Column Matrix into Row Matrix using Math::MatrixReal
by Laurent_R (Canon) on May 16, 2014 at 19:03 UTC | |
|
Re: Convert Column Matrix into Row Matrix using Math::MatrixReal
by 2teez (Vicar) on May 16, 2014 at 19:10 UTC | |
|
Re: Convert Column Matrix into Row Matrix using Math::MatrixReal
by wjw (Priest) on May 16, 2014 at 22:16 UTC |