Dear all, I have a 2 by 2 square matrix with real intries that I want to pass to a method. It looks as;
double coefficients[2][2] = { { 1.00, 0.6789140 }, {0.4446350, 0.4301290 } };
[self PrintOut:?????? andNRows:2 andNColumns:2];
- (void) PrintOut:(double ?????? andNRows:(NSInteger)rows andNColumns:(NSInteger)columns {
// do something here
}
can somebody let me know please how should I pass it so that I can retrieve the entries either as coefficients[ i ][ j ] or coefficients[ i * rows + j ]?