• 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: dynamically allocating arrays of type double
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamically allocating arrays of type double


  • Subject: Re: dynamically allocating arrays of type double
  • From: Daniel DeCovnick <email@hidden>
  • Date: Fri, 15 Apr 2005 05:56:38 -0400


On Apr 15, 2005, at 5:29 AM, Aaron Boothello wrote:

Im writing an openGL program and i need to be able to handle transformation matrices, best represented by arrays of type double. The matrices vary in size depending on the situation, so i was wonder ... how do i go about declaring and creating these dynamic arrays in objective-C ?

I THINK (heavy emphasis on think) that as of C99 you can simply use double mat[c][r]; which is converted at parse time to double mat[(c-1)+1][(r-1)+1]; which the compiler SHOULD work wih. I say this because I've only done it with single-dimension ints, not dual dimension doubles.


-Dan

Daniel DeCovnick
danhd123 at mac dot com
Softyards Software
http://www.softyards.com

_______________________________________________
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


References: 
 >dynamically allocating arrays of type double (From: Aaron Boothello <email@hidden>)

  • Prev by Date: Re: parameterized object creation
  • Next by Date: Re: What writes out a pref file?
  • Previous by thread: Re: dynamically allocating arrays of type double
  • Next by thread: awakeFromNib not called
  • Index(es):
    • Date
    • Thread