package symjava.numeric; import symjava.bytecode.BytecodeVecFunc; import symjava.matrix.SymMatrix; import symjava.symbolic.Expr; import symjava.symbolic.utils.JIT; public class NumMatrix { BytecodeVecFunc func; int nRow; int nCol; double[] lastEvalData; public NumMatrix() { } /** * Create an empty matrix * @param m number of rows * @param n number of columns */ public NumMatrix(int m, int n) { this.nRow = m; this.nCol = n; } public NumMatrix(SymMatrix sm, Expr[] args) { this.nRow = sm.rowDim(); this.nCol = sm.colDim(); Expr[] exprs = new Expr[nRow*nCol]; int idx = 0; for(int i=0; i