in reply to Re: how to self define a operator
in thread how to self define a operator

Thank you very much for your reply!

What I want to do is making the PDL more simple, as simple as matlab :D.

for example, if we want to transfer the values from $t(1:4,0,0) to $d1(0,0:3), we can not write as below, because the dimensions are not same.

$d1(0,0:3) .= $t(1:4,0,0);

We have to write as this:

$d1(0,0:3) .= $t(1:4,0,0)->reshape($d1(0,0:3)->dims);

So I think if I can generate a "_=" which equal to .= $t(1:4,0,0)->reshape($d1(0,0:3)->dims or using a new method "rp" as $d1(0,0:3)->rp($t(1:4,0,0));