• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Visualization strategy/choosing a framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Visualization strategy/choosing a framework


  • Subject: Re: Visualization strategy/choosing a framework
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 5 Jan 2009 22:53:19 -0800

On 01 Jan 09, at 10:56, Adam Foltzer wrote:
Off to do some refactoring of my Swarm class; at the risk of spawning a
tangent, am I just completely missing a Cocoa data structure that's suited
to matrices of scalar values? I had a working implementation using nested
NSMutableArrays, but the code wound up looking disgusting (my fault, not the
API's ;-), so I rewrote it with good ol' C arrays, malloc, and free. It has
no leaks now, and is really, really fast, but I feel like I shouldn't have
to reinvent the wheel in order to do matrix operations.

The Cocoa collection classes are primarily oriented towards dealing with ObjC objects. If all you're working with is homogeneous arrays of scalar values (or structures consisting of scalar values), you probably are best off using C arrays.


That's not to say that Apple has nothing to offer. If you're performing SIMD-esque operations on large matrices or vectors, the Accelerate framework might have some tools you'd be interested in. It's listed under Carbon for some reason, but it's just as applicable to Cocoa applications.

If that doesn't do it, but you're fine with targeting Intel machines only, dropping down to the SSE primitives may also be an option to consider.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Visualization strategy/choosing a framework (From: "Adam Foltzer" <email@hidden>)
 >Re: Visualization strategy/choosing a framework (From: Andrew Farmer <email@hidden>)
 >Re: Visualization strategy/choosing a framework (From: "Adam Foltzer" <email@hidden>)

  • Prev by Date: re: Problem adding an entity to a to-many relationship
  • Next by Date: Re: Which language to get started with cocoa development?
  • Previous by thread: Re: Visualization strategy/choosing a framework
  • Next by thread: Visualization strategy/choosing a framework
  • Index(es):
    • Date
    • Thread