On 8/21/06, chen li wrote:
Dear all,I read a file into an array reference. I want to pass it as an argument when create the new object from Math::MatrixReal. But when I read the usage of this module I can't find how. Does anyone there give me a hand? Thanks, Li Here are the code I use: my $ref_AoA=[ [1,2,3,], [1,2,3,], [1,2,3,], ]; my $array_object=Math::MatrixReal->new ($ref_AoA); ##the line doesn't work for me.
Instead of "new" you should be using the "new_from_cols" constructor: my $array_object=Math::MatrixReal->new_from_cols($ref_AoA); You can test the resulting object using: print $array_object; HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
