Re: arrays of doubles
Re: arrays of doubles
- Subject: Re: arrays of doubles
- From: Philippe Mougin <email@hidden>
- Date: Fri, 3 Feb 2006 22:46:34 +0100
F-Script provides a subclass of NSMutableArray that handles arrays of
doubles efficiently. It also provides optimized support for arrays of
booleans and can be extended to support other types. It can
transparently modify and optimize its internal representation. You
can find a little conceptual description of how it works in the paper
at http://www.fscript.org/download/OOPAL.pdf (chapter 8.2, section on
"Smart Arrays").
You can get the source code for F-Script at http://www.fscript.org/
download.
Best,
Philippe Mougin
Boyd Collier wrote:
I've created some rather simple classes to deal with arrays and
matrices of doubles, etc. that I use in carrying out a lot of
statistical number crunching. My motivation is that it seems like
working strictly with NSNumber is cocoa and OOP overkill (at least
for my purposes), and as an old c-coder with lots of legacy code
that makes use of arrays of doubles, I find it a lot easier to
think in these terms. Thus far, I've not run into any problems
with my code, but it seems likely that I'm re-inventing the wheel.
Surely someone else using cocoa for scientific computing has
already created a nice family of classes that handle arrays and
matrices of ints and doubles. I know that this sort of stuff is
common in c++, but from what I've read on this list, I'd like to
avoid using both objective-c and c++ in the same project. If
someone knows of an objective-c library for doing this sort of
thing, I'd very much appreciate receiving information about it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden