In order to be more efficient in calculations and memory used, I'm considering really to create and managing a matrix, which it'd be simply an array of arrays, called jagged array. Since I'm not advanced programmer, I'd like to hear some advise regarding to some doubts:
1. Is is possible to create a simple matrix in NT, lets say 5X5X5 ? If so, could you give me a NT link to study ? if not, is it possible creating arrays in two dimensions?
2. I was reading about creating matrix, which it can be done by a couple ways:
A) double[][] m = new double[3][];
m[0] = new double[2];
m[1] = new double[2];
B) double[,] m = new double[3,2];
m[2,1] = 5.0;
C) public class MyMatrix
{
int m; // number rows
int n; // number columns
data[][]; // the values
...
Which one would you recommend to use in Ninja ? could you give me an useful link ?
I look forward to read your hints about it
Thanks
Comment