Angharad has asked for the wisdom of the Perl Monks concerning the following question:
But it comes up with a syntax error#!/usr/bin/perl -w use strict; use PDL::MatrixOps; my $mat = pdl [ [3.4603, 1.7529, 1.6990,2.1181], [ 2.5459,2.5615,2.2525,2.3606], [ 2.3606, 2.2515, 2.5628,2.5459], [ 2.1181,1.6982,1.7537,3.4603], ]; my $det = determinant($mat); print "$det\n";
Any help much appreciatedsyntax error at ./test.pl line 7, near "pdl [" Execution of ./test.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with PDL
by zentara (Cardinal) on Jun 30, 2005 at 12:34 UTC | |
by VSarkiss (Monsignor) on Jun 30, 2005 at 13:56 UTC | |
|
Re: problem with PDL
by marto (Cardinal) on Jun 30, 2005 at 12:16 UTC | |
|
Re: problem with PDL
by Angharad (Pilgrim) on Jun 30, 2005 at 15:25 UTC | |
|
Re: problem with PDL
by anonymized user 468275 (Curate) on Jun 30, 2005 at 12:19 UTC | |
by VSarkiss (Monsignor) on Jun 30, 2005 at 13:52 UTC | |
by anonymized user 468275 (Curate) on Jun 30, 2005 at 14:01 UTC | |
by marto (Cardinal) on Jun 30, 2005 at 12:23 UTC | |
by polettix (Vicar) on Jun 30, 2005 at 13:14 UTC |