Re: New variable type: matrix

2000-08-26 Thread Baris
ying that hashes are built in types for perl made a difference. Thanks, Baris. *** REPLY SEPARATOR *** On 25.08.2000 at 12:28 Karl Glazebrook wrote: >Hi Baris, > >I agree with your sentiments. Most people in PDL DO come from the >number crunching/scientific background.

Re: New variable type: matrix

2000-08-29 Thread Baris
that element efficiently stored. To access individual element: ^foo(0,0); If you want to use it as a perl scalar: $a = ^foo(0,0); Or perl should be able to understand if it is used in scalar or array context: print "First element is ^foo(0,0).\n"; Baris. *** REPLY SEPAR

Re: Special syntax for 2-d

2000-08-29 Thread Baris
>but surely wouldn't warrant a new data type. There is no relation between my proposal in this email for special 2-d syntax and having a new type for pdl's. Baris. *** REPLY SEPARATOR *** On 8/30/00 at 8:06 AM Christian Soeller wrote: >Baris Sumengen wro

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-30 Thread Baris
wing survey results will require tools such as SVD, FFT and other similar transformations. Baris.

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-30 Thread Baris
o give up. >What are the other issues? I am sure there must be lots of issues. Even the most perfect language would have problems. I have and will probably write more ideas but I have to investigate more before writing them and I am very busy until sep 14th. Thanks. Baris. *** REPLY SEPA

Re: New variable type: matrix

2000-08-29 Thread Baris
7;t find a good way after thinking about it two days. So I really have a problem with thinking matrices as ordered lists. Baris. *** REPLY SEPARATOR *** On 8/29/00 at 8:33 AM Nathan Wiger wrote: >Baris wrote: >> >> Hi, >> > ^foo = ([1, 2], [3, 4]); # I

Re: n-dim matrices

2000-08-30 Thread Baris
;scalers are singular, and are represented by $ >arrays are plural, and are represented by @ I was using the old syntax since I thought there wasn't any consensus on the new syntax. Thanks, Baris. *** REPLY SEPARATOR *** On 8/31/00 at 12:17 AM Buddha Buck wrote: >>

Re: n-dim matrices

2000-08-30 Thread Baris
Ok. How about: @a([$i,$j,$k], [$x,$y,$z]); as far as I know this should be ok? Baris. *** REPLY SEPARATOR *** On 8/31/00 at 3:02 PM Jeremy Howard wrote: >Baris wrote: >> > @a[[$i,$j,$k], [$x,$y,$z]] >> >> I think it is more readable if you have diffe

Re: n-dim matrices

2000-08-30 Thread Baris
perlish? Also as I mentioned before %90 or maybe more of the time pdl will be used for 1-d or 2-d calculations. Baris. *** REPLY SEPARATOR *** On 8/31/00 at 1:06 PM Jeremy Howard wrote: >Dan Sugalski wrote: >> On Thu, 31 Aug 2000, Jeremy Howard wrote: >> > Kar

Looping in perl

2000-08-31 Thread Baris
} my $b = tmp; return $b; } Here all the scalar should be somehow similar to C scalars for efficiency. Baris.

New variable type: matrix

2000-08-24 Thread Baris Sumengen
not good enough for number crunching and they don't even bother with it. If my default installation doesn't have some functionality like PDL how would you convince me easily that perl would be useful for my programming needs. So make things easy (to install, to use, to implement). Baris.

Special syntax for 2-d

2000-08-29 Thread Baris Sumengen
, 2, 3], [3, 3, 4], [2, 4, 5], [2, 4, 6]; I find this painful and would prefer: $m = pdl [1 2 3, 3 3 4, 2 4 5, 2 4 6]; Baris.