in reply to Re: Kronecker Product
in thread Kronecker Product
Thanks, that's exactly the reply I was waiting for.
I see no difference between your solution and mine in the benchmark, but I definitely understand your points and see the improvement in the code.
Are you aware of any reading on "array languages" that would be understandable to tyros? I understand your solution but I can't imagine how to get to it (to get mine, I used trial and error repeatedly).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Kronecker Product
by vr (Curate) on Jun 21, 2022 at 16:39 UTC | |
Re^3: Kronecker Product
by etj (Deacon) on Jun 21, 2022 at 17:26 UTC |
In Section
Seekers of Perl Wisdom