use PDL::LinearAlgebra; sub ltm { my ($size, $strictly) = @_; my $ltm = ones($size,$size)->tricpy(1); $strictly ? $ltm - identity($size) : $ltm; }
In reply to Re^2: first stumbling steps in PDL
by etj
in thread first stumbling steps in PDL
by Discipulus
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |