public static VariableMatrix createTemp() { VariableMatrix ret = new VariableMatrix(new DMatrixRMaj(1, 1)); ret.setTemp(true); return(ret); }
public static VariableMatrix <T> createTemp() { VariableMatrix <T> ret; if (typeof(DMatrixRMaj).IsAssignableFrom(typeof(T))) { ret = new VariableMatrix <T>(new DMatrixRMaj(1, 1) as T); } else if (typeof(FMatrixRMaj).IsAssignableFrom(typeof(T))) { ret = new VariableMatrix <T>(new FMatrixRMaj(1, 1) as T); } else { throw new InvalidOperationException("Unknown matrix type!"); } ret.setTemp(true); return(ret); }
public VariableMatrix createMatrix() { return(VariableMatrix.createTemp()); }
public MatrixConstructor(ManagerTempVariables manager) { this.output = manager.createMatrix(); }