On Sun, Jun 20, 2010 at 12:23 PM, Daniel Carrera <[email protected]> wrote: > $c = ones(4)->dummy->dummy * $b >
Thanks Daniel. The above works well. > 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. > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
