Re: PDL-P: Re: RFC 115 (v1) Default methods for objects

2000-08-19 Thread c . soeller
"David L. Nicol" wrote: > > =head1 TITLE > > > > Default methods for objects > > Title does not match description. How about > > Overloadable bracketing > > or > > Brackets as Methods > > or > > Syntax as Overloadable Methods Good point! Will be part of v2. Christian

Re: Test

2000-08-22 Thread c . soeller
Karl Glazebrook wrote: > > Just a test to see if this list is actually alive... Seems to be. But no great activity yet. Where to start? Christian

Re: RFC 148 (v1) Add reshape() for multi-dimensional array reshaping

2000-08-25 Thread c . soeller
"David L. Nicol" wrote: > > Looks like if we give the data type control over what > the meaning of square brackets after it is, the rest > becomes example code. I think this s covered in the > horribly misnamed http://dev.perl.org/rfc/115.pod which > covers overloading bracketing. Agreed. We sh

Re: Some PDL issues (was Re: Test)

2000-08-25 Thread c . soeller
Dan Sugalski wrote: > It looks like we need to be able to override operations on arrays, have > multi-dimensional arrays, and do some rather odd slicing operations that > give values still linked to the original matrices. > > Has anyone asked for complex number support yet? It's hidden in one o

Re: Some PDL issues (was Re: Test)

2000-08-25 Thread c . soeller
Dan Sugalski wrote: > to make foo and bar 5x5x5 matricies that you casn multiply to get baz then, > well, say it. If that means you need to define a way to provide overridden > operators in the Matrix package, then go for it and say that. > > Let the -internals folks worry about the Weird Magic

Re: New variable type: matrix

2000-08-25 Thread c . soeller
Karl Glazebrook wrote: > The key from my point of view is to have enough syntactical > hooks in the core so that using it is not like wading through > treacle. Hence the PDL RFCs - especially on [] overloading and ranges. > > The Numerical Python people seem to have accomplished this, and we can

Re: Some PDL issues (was Re: Test)

2000-08-25 Thread c . soeller
Karl Glazebrook wrote: > "->" really sucks as something to routinely type in to a interactive shell > all the time. I hate it. I can not agree more. It just seems terribly unnecessary. Just allow us to directly overload some of the braces/parentheses for objects. I would be happy with $pdl(0:

Some PDL issues (was Re: Test)

2000-08-25 Thread c . soeller
> I'm here because: > * I think the PDL folks have valid needs > * I think a lot of people are having trouble making suggestions for >language changes that mesh well with other constructs in the >language. > * I'm not able to tell you want you need, but I will try to help >you come

Re: Proposed RFC for matrix indexing and slicing

2000-08-31 Thread c . soeller
Bart Lateur wrote: > Personally, I would like to have Larry's fiat *before* trying to iron > out the incompatibilities. It could be that you throw away something > that Larry would approve of, and keep something he doesn't like. I'd vote to go for what we think is the best compromise. If Larry i

Re: a syntax derived from constant-time hash-based n-dim matrices in perl 5

2000-09-02 Thread c . soeller
"David L. Nicol" wrote: > > Nathan Wiger wrote: > > > Well, this is not bad, only it's not without its problems. Say you > > wanted to get your indices implicitly: > > > > @a[getindices()]; > > @a[$r->get_x, $r->get_y]; > > @a["@{\(getindices())}"]; > @a[join $",$r->ge

Re: PDL-P: Re: PDL and perl6

2000-08-05 Thread c . soeller
Tuomas Lukka wrote: > > Do we really need PDL objects in perl 6? How about we investigate building > > compact arrays into the language? We're already talking about how we can add > > typing to the language--I would have thought that if these semantics make it > > in, we could look to optimise ho

Re: RFC 203 (v1) Arrays: Notation for declaring and creating arrays

2000-09-08 Thread c . soeller
Perl6 RFC Librarian wrote: > The bounds of an array or list can be specified at run time, of course: > > my int @t1 :bounds(@dimList) = getFromSomeplace(); Hm, I think some clarification would be good. I'd imagine three cases: (1) getFromSomeplace returns an untyped and unbounded LOL. In that

Re: RFC 82 (v3) Arrays: Apply operators element-wise in a list context

2000-09-08 Thread c . soeller
Nathan Wiger wrote: > > > This RFC proposes that operators in a list context should be applied > > element-wise to the elements of their arguments: > > > > @d = @b * @c; # Returns (2,8,18) > > > > If the lists are not of equal length, an error is raised. > > I've been watching this RFC for a

Re: RFC 206 (v1) Array: @#arr for getting the dimensions of an array

2000-09-08 Thread c . soeller
Perl6 RFC Librarian wrote: > This RFC proposes using @#array, analogous to $#array, to get the list of > upper bounds for a multidimensional array @array. The length of @#array > would indicate the dimensionality of @array. That's fine. This RFC does not seem to touch on the question what $#arra

Re: RFC 207 (v1) Array: Efficient Array Loops

2000-09-11 Thread c . soeller
Reading through the examples left me wondering about some technicalities: > @t[|i;|j] = @a[|j;|i]; # transpose 2-d @a Written like this it would require that @a is exact 2-dim, i.e. it would not just swap the first two dims of any n-dim array? I suppose if I'd want that I'd write @t[|i;|

Re: RFC 82 (v3) Arrays: Apply operators element-wise in a list context

2000-09-09 Thread c . soeller
Doug Hunt wrote: > You might also look at APL, a language which has been doing really funky > N-dimensional > array manipulation for longer than anyone... I'd say PDL has probably been influenced quite strongly by APL/J in its PDL threading notion. And with more and more "funny characters" makin

Re: RFC 82 (v3) Arrays: Apply operators element-wise in a list context

2000-09-09 Thread c . soeller
Nathan Wiger wrote: > what people would want to use the ops for, and it's also more usable to > us non-PDLers. I'd like to suggest that it is not a very good idea to start dividing the world into PDLers and non-PDLers. There are a multitude of reasons but I am not keen to go into details. Chr

Re: RFC 272 (v1) Arrays: transpose()

2000-09-22 Thread c . soeller
Jeremy Howard wrote: > > Karl Glazebrook wrote: > > you should look at the PDL mv() and xchg() methods > > and factor this into your thinking! > > > Actually, the RFC is based on PDL's xchg()! I forgot to document using > negative numbers to count from the last dimension--I'll add that into the >

Re: Implementing RFC 272

2000-09-23 Thread c . soeller
Buddha Buck wrote: > When I heard about transpose() (as well as reshape(), etc), I was > concerned about the time it would take to execute these complex > operations. To wit, naively, I believed that a lot of data shuffling > would be necessary. If I understand your message correctly this is ex

Re: RFC 272 (v1) Arrays: transpose()

2000-09-23 Thread c . soeller
Jeremy Howard wrote: > So where is mv(), you ask? If you use the 'reorder' syntax, but don't > specify all of the dimensions in the list ref, then the remaining dimensions > are added in order: That sounds good. I'd say why not also allow the mv syntax? It is syntactically different from the oth

Re: RFC 272 (v1) Arrays: transpose()

2000-09-23 Thread c . soeller
Karl Glazebrook wrote: > the arguments to reshape should be sizes not last elements (i.e. N's > not N-1's). Yup, it's simple: size (N) vs index range (0..N-1) > How does this sound? Logical and consistent ;) Christian

Re: RFC 272 (v1) Arrays: transpose()

2000-09-23 Thread c . soeller
Jeremy Howard wrote: > (I'm not assuming the no-flattening thing, since that's another source of > angst altogether!) What is the no-flattening thing? Christian

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-22 Thread c . soeller
Ilya Zakharevich wrote: > > On Fri, Sep 22, 2000 at 05:24:55PM -0400, Karl Glazebrook wrote: > > It's now boiling down to a matter of opinion and we'll have to agree to > > differ. Of course I use array arithmetic all the time as a heavy PDL > > user. > > ...Do you say you are confused by using