Re: Vector or Matrix Object
Re: Vector or Matrix Object
- Subject: Re: Vector or Matrix Object
- From: Tommy Nordgren <email@hidden>
- Date: Wed, 23 Feb 2005 02:54:55 +0100
Feb 23, 2005 kl. 2:35 AM skrev Richard Patterson:
If I want to create objects to do vector and matrix math, does anyone
have any pointers as to how I should do it. I am assuming I should
subclass NSMutableArray and let a vector be an array of NSNumbers and
a Matriix be an array of Vectors, but I am unsure about how I set it
up so that I can access elements with [row][column] syntax or
whatever. Any suggestions or sample code would be greatly
appreciated.
Or is the consensus that this is a waste of time and energy and I
should just use C structures and handles to do the job?
Richard Patterson
Illusion Arts
6700 Valjean Avenue
Van Nuys, CA 91406
818 901-1077
FAX: 818 901-1995
email@hidden
For vector and matrix algebra, it is best to use C++. Note that it is
possible to use
C++ from cocoa by giving the implementation files the suffix .mm.
For numerical class libraries in C++, I suggest checking up the
Free-Pooma library,
descended from a library developed at Los Alomos.
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
_______________________________________________
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