Mike South > Math-MatrixReal-Ext1-0 > Math::MatrixReal::Ext1

Download:
Math-MatrixReal-Ext1-0-07.tgz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.07   Source  

NAME ^

Math::MatrixReal::Ext1 - Minor extensions to Math::MatrixReal

SYNOPSIS ^

  use Math::MatrixReal::Ext1;

  $ident3x3 = Math::MatrixReal::Ext1->new_from_cols( [ [1,0,0],[0,1,0],[0,0,1] ] );
  $upper_tri = Math::MatrixReal::Ext1->new_from_rows( [ [1,1,1],[0,1,1],[0,0,1] ] );

  $col1 = Math::MatrixReal->new_from_string("[ 1 ]\n[ 3 ]\n[ 5 ]\n");
  $col2 = Math::MatrixReal->new_from_string("[ 2 ]\n[ 4 ]\n[ 6 ]\n");

  $mat = Math::MatrixReal::Ext1->new_from_cols( [ $col1, $col2 ] );

DOWNLOADING ^

The latest version might be at

    http://fulcrum.org/personal/msouth/code/

but I would bet on CPAN if I were you.

DESCRIPTION ^

Just scratching a couple of itches for functionality in Math::MatrixReal.

[At the time I wrote this (2001) Math::MatrixReal was abandoned, but someone has since adopted it. My recent (2005) updates will also hopefully go into Math::MatrixReal, but for now I'm putting them here because I just can't stand having this stuff out there uncorrected. Once the most recent changes are in the main line, I will deprecate this module and then it will completely disappear, probably some time in 2006.]

new_from_cols

new_from_cols( [ $column_vector|$array_ref|$string, ... ] )

Creates a new matrix given a reference to an array of any of the following:

  • column vectors ( n by 1 Math::MatrixReal matrices )
  • references to arrays
  • strings properly formatted to create a column with Math::MatrixReal's new_from_string command

You may mix and match these as you wish. However, all must be of the same dimension--no padding happens automatically. This could possibly change in a future version.

new_from_rows

new_from_rows( [ $row_vector|$array_ref|$string, ... ] )

Creates a new matrix given a reference to an array of any of the following:

  • row vectors ( 1 by n Math::MatrixReal matrices )
  • references to arrays
  • strings properly formatted to create a row with Math::MatrixReal's new_from_string command

You may mix and match these as you wish. However, all must be of the same dimension--no padding happens automatically. This could possibly change in a future version.

BUGS ^

Error handling could be more descriptive in some cases.

It has been suggested that use of Math::MatrixReal (and thus, by extension, extending it) is pointless in light of the powerful Math::Pari. From the documentation for Math::Pari:

Package Math::Pari is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. It allows use of most PARI functions (>500) as Perl functions, and (almost) seamless merging of PARI and Perl data.

So, if you're thinking of using this, you may want to look at Math::Pari instead.

AUTHOR ^

msouth@fulcrum.org (see http://fulcrum.org )

SEE ALSO ^

Math::MatrixReal(3).

syntax highlighting: