[system] / trunk / pg / lib / Parser / List / Matrix.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Parser/List/Matrix.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3914 Revision 3915
18 if ($self->{entryType}{name} ne 'Matrix') { 18 if ($self->{entryType}{name} ne 'Matrix') {
19 foreach my $x (@{$self->{coords}}) 19 foreach my $x (@{$self->{coords}})
20 {$x->makeMatrix($self->{type}{name},$self->{open},$self->{close})} 20 {$x->makeMatrix($self->{type}{name},$self->{open},$self->{close})}
21 } 21 }
22 foreach my $x (@{$self->{coords}}) { 22 foreach my $x (@{$self->{coords}}) {
23 $self->{equation}->Error("Entries in a Matrix must be Numbers or Lists") 23 $self->{equation}->Error("Entries in a Matrix must be Numbers or Lists of Numbers")
24 unless ($x->class =~ m/Number|List/); 24 unless ($x->type =~ m/Number|Matrix/);
25 } 25 }
26} 26}
27 27
28# 28#
29# Handle a 2-dimensional matrix as a special case, using 29# Handle a 2-dimensional matrix as a special case, using

Legend:
Removed from v.3914  
changed lines
  Added in v.3915

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9