$c = ones(4)->dummy->dummy * $b

Because $b already has 2 dimensions, we need one more dimension for
$c. If you wanted the command to look the same always, you could do
this:

$a = sequence 4;
$b = $a->dummy * ones(4);
$b = $b->transpose;
$c = $b->dummy * ones(4);
$c = $c->transpose;

A bit uglier, but it scales to any number of dimensions.

Daniel.
-- 
No trees were killed in the generation of this message. A large number
of electrons were, however, severely inconvenienced.

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to