Skip to content

Commit

Permalink
Fix error in cgtsv
Browse files Browse the repository at this point in the history
  • Loading branch information
wlmb committed Jan 5, 2025
1 parent b71ef36 commit da86c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Photonic/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ sub vectors2Dlist { #2D vector fields ready for gnuploting

sub cgtsv {
confess "Wrong number of arguments" unless @_ == 4;
my ($c, $d, $e, $b) = map $_->new_or_inplace($_), @_;
my ($c, $d, $e, $b) = map $_->new_or_inplace, @_;
my $i = PDL::LinearAlgebra::Complex::cgtsv($c, $d, $e, $b);
confess "Error solving tridiag system: info=$i" if $i->any;
$b;
Expand Down

0 comments on commit da86c7c

Please sign in to comment.