val method
Implementation
MathValue val( int index, dynamic subIndex, [int? dim] ){
if( dim != null ){
if( dim == 1 ){
return _node[index].val( subIndex[0] );
} else if( dim == 2 ){
return _mat[index].val(
((subIndex[0] < 0) || (subIndex[0] == ClipGlobal.invalidArrayIndex)) ? _mat[index].row() : subIndex[0],
((subIndex[1] < 0) || (subIndex[1] == ClipGlobal.invalidArrayIndex)) ? _mat[index].col() : subIndex[1]
);
}
}
return _node[index].val( subIndex );
}