[3135] in java-interest
Re: Handling of mathematical data structure
daemon@ATHENA.MIT.EDU (Elliotte Rusty Harold)
Wed Nov 1 11:58:41 1995
From: "Elliotte Rusty Harold" <Elliotte@blackstar.com>
To: Roland Walter <walter@scsun.unige.ch>
Date: Wed, 1 Nov 1995 09:58:33 EST
Reply-To: Elliotte@blackstar.com
Cc: java-interest@java.sun.com
>
>
> Is Java able to handle N dimensional data structures ?
>
> 1) If a and b are two NxM matrices, is there a way to write
> c = a+b without loops ?
You could create a matrix class with an add method so that the rest
of your code wouldn't see the loops. This sort of trick is one of
the points of OOP. Still there need to be loops somewhere. Even
languages like APL that hide the loops from the programmer still
generate it in the assembly code.
> 2) If yes, how the speed compares with a C program ? (is the
> underlying
> loop interpreted or handled at compiled speed)
Poorly, at least for now.
--
Elliotte Rusty Harold Black Star Publishing Co., Inc.
elliotte@blackstar.com 116 East 27th Street
elharo@escape.com NY NY 10016
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com