[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] @a ||= (1, 2);



Ariel Scolnicov <ariels@compugen.co.il> writes:

> John Porter <jdporter@min.net> writes:
> 
> > Tom Christiansen wrote:
> > > 
> > > But mostly it's better without them.  People would want
> > > things like @a + @b to behave differently.  And then we'd
> > > get to argue about @a * @b.
> > 
> > Matrix math!  To paraphrase someone famous,
> > "We have to let Fortran be better at something."  :-)
> 
> I'd be upset if it supported matrix math without supporting vector
> maths.  Of course, there are TWO cross products one can define for
> 7-element vectors (one "the usual" of 6 such vectors, and another one
> of just 2).  I'd like to be the first to suggest overloading
> @a*@b*@c*@d*@e*@f for the first and @a x @b for the second (both only
> in list context, naturally).
> 
> Do new Fortrans (Fortra? Fortruns? Fortrex?) have really have built-in
> vector and matrix operations?  I certainly don't remember any such
> thing in F77...

Matrix operations belong in objects, not in the Perl language itself.
Math::Matrix and PDL both have good matrix handling.  No need to take
good external modules and shove them into the core :)

Chip

-- 
Chip Turner                   chip@ZFx.com
                              Programmer, ZFx, Inc.  www.zfx.com
                              PGP key available at wwwkeys.us.pgp.net

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe