Skip to content

Commit

Permalink
Fix test of cgt2v
Browse files Browse the repository at this point in the history
  • Loading branch information
wlmb committed Dec 7, 2024
1 parent 5612528 commit 555abf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/cgtsv.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ for my $D (3..N+2) { #first differences

for my $D (3..N+2){ #second differences
#solve b_{n+1}-2{b_n}+b_{n-1}=1 with kinda homogeneous BCs
my $c=ones($D)*(1+i()); $c->(,(-1)).=0;
my $c=ones($D)*(1+i()); $c->((-1)).=0;
my $d=-2*ones($D)*(1+i());
my $e=ones($D)*(1+i()); $e->(,(-1)).=0;
my $e=ones($D)*(1+i()); $e->((-1)).=0;
my $b=ones($D)*(1-i());
my $info=pdl(short,0);
cgtsv($c, $d, $e, $b, $info);
Expand Down

0 comments on commit 555abf8

Please sign in to comment.