public VECM3(VECM3 v1) { dim = v1.len(); val = new MAT[dim]; for (int i = 0; i < dim; i++) { val[i] = new MAT(v1[i]); } }
public MATM3(MATM3 m1) { n = m1.dim(); va = new VECM3[n]; for (int i = 0; i < n; i++) { va[i] = new VECM3(m1[i]); } }
public MATM3(int dim) { n = dim; va = new VECM3[n]; for (int i = 0; i < n; i++) { va[i] = new VECM3(dim); } }
public static VECM3 operator /(VECM3 v1, double a) { int n = v1.len(); VECM3 v = new VECM3(n); for (int i = 0; i < n; i++) { v[i] = v1[i] / a; } return(v); }
public static VECM3 operator *(double a, VECM3 v1) { int n = v1.len(); VECM3 v = new VECM3(n); for (int i = 0; i < n; i++) { v[i] = v1[i] * a; } return(v); }
public static VECM3 operator -(VECM3 v1, VECM3 v2) { int n = v1.len(); VECM3 v = new VECM3(n); for (int i = 0; i < n; i++) { v[i] = v1[i] - v2[i]; } return(v); }