develooper Front page | perl.perl6.language.data | Postings from August 2000

Re: RFC 169 (v1) Proposed syntax for matrix element access and slicing.

Thread Previous
From:
Karl Glazebrook
Date:
August 30, 2000 10:54
Subject:
Re: RFC 169 (v1) Proposed syntax for matrix element access and slicing.
Message ID:
39AD4A85.E88359D1@pha.jhu.edu

The PDL extension module already does all that. 

The point IS to get more PDL like functionality into the core, hence
Budda's and others RFCs.

This is what perl6-language data is discussing.

Karl


Michael Maraist wrote:

> Hence C-like matrixes.  But apply various matlab like functionality to it.
> 
> If you go there, then you're really asking for trouble, since you might as
> well ask for more and more.  Though I think matlab is cool, and if we have
> enough mathematicians in the house, I'd love to add some more libraries to
> CPAN, I don't think this is the answer.
> 
> The closest I would whole-heartedly advocate is a bunch of C-functions with
> perl wrappers.
> 
> use Math::Matrix ':all';
> 
> my Math::Matrix $mat1 = new Math::Matrix dim => [ $dim1, $dim2, $dim3 ];
> 
> my Math::Matrix $mat2 = $mat1->slice( [ 0 .. 5 ], [ 0 .. 2 ], [ 3 .. 8 ] );
> 
> You can optimize this to your heart's content.  And do so with complete
> perl5 capability.
> 
> Maybe I'm wrong and this sort of activity solves a wide verity of problems.
> However, this added complexity is only going to enlarge the core, and make
> it harder for newbies to learn arrays (not that that's bad in and of
> itself).
> 
> -Michael

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About