arrayToMatrix static method
Implementation
static MathMatrix arrayToMatrix( List<List<dynamic>> x ){
int i, j;
int row = x.length;
int col = x[0].length;
for( i = 1; i < row; i++ ){
if( x[i].length < col ){
col = x[i].length;
}
}
MathMatrix a = MathMatrix( row, col );
for( i = 0; i < row; i++ ){
for( j = 0; j < col; j++ ){
a._val( i, j ).ass( x[i][j] );
}
}
return a;
}