Is there any class for Matrix support in Objective-C? By Matrix I mean 2D-arrays.
What I do now is using 2 NSArrays, one within the other. This works perfectly but my code looks like a big mess.
I have also tried to use C-style arrays within each-other (matrix[][]) but this approach doesn’t fit my application as I cannot automatically @synthesize or specify @properties for them.
I could of course create my own class for that, but what I’m wondering is if Objective-C already has something for this kind of situations. I did some Google-research but didn’t find anything.
Nope, Foundation doesn’t have any 2D array class. As far as mathematical computations are concerned, Matrices are typically implemented in C or C++ for portability and performance reasons. You’ll have to write your own class for that if you really want it.