You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whereas mpinv() blows up when trying the pseudo-inverse:
pdl> p $p->mpinv
PDL: PDL::Ops::gt(a,b,c): Parameter 'b':
Mismatched implicit broadcast dimension 0: size 2 vs. 5
There are 3 PDLs in the expression; 2 broadcast dims.
PDL IN EXPR. BROADCAST DIMS
# 0 (normal): 2 5
# 1 (normal): 5
# 2 (null)
.. at ops.pd line 136.
PDL::Ops::__ANON__(PDL=SCALAR(0x564b231f17a0), PDL=SCALAR(0x564b23290390), "") called at /usr/local/lib64/perl5/PDL/LinearAlgebra.pm line 926
PDL::mpinv(PDL=SCALAR(0x564b232406c8)) called at (eval 65) line 4
main::__ANON__() called at /usr/local/bin/perldl line 682
eval {...} called at /usr/local/bin/perldl line 682
main::eval_and_report("p \$p->mpinv\x{a}") called at /usr/local/bin/perldl line 618
main::process_input() called at /usr/local/bin/perldl line 638
eval {...} called at /usr/local/bin/perldl line 638
The text was updated successfully, but these errors were encountered:
the starting-point would be to enhance runtest so that the 1st ndarray param routinely also got tested in both real and complex mode, having had a dummy-dim added at the top with value 2. that would shake out all the non-broadcast-capable functions at once
[...]
fixing things to work for broadcasting is quite a fun exercise to force oneself to think n-dimensionally
I could be wrong here, but I sort of think that
mpinv()
should function about the same asminv()
--- but broadcasting fails formpinv()
:minv()
broadcasts the inverse:whereas
mpinv()
blows up when trying the pseudo-inverse:The text was updated successfully, but these errors were encountered: