public Matrix3(Matrix3 m) { this.Elements = new float[3, 3]; this.Elements[0, 0] = m[0, 0]; this.Elements[0, 1] = m[0, 1]; this.Elements[0, 2] = m[0, 2]; this.Elements[1, 0] = m[1, 0]; this.Elements[1, 1] = m[1, 1]; this.Elements[1, 2] = m[1, 2]; this.Elements[2, 0] = m[2, 0]; this.Elements[2, 1] = m[2, 1]; this.Elements[2, 2] = m[2, 2]; }
public static Matrix3 Abs(Matrix3 m3) { Matrix3 absMatrix = new Matrix3(0); for (int r = 0; r < 3; r++) { for (int c = 0; c < 3; c++) { absMatrix[r, c] = Math.Abs(m3[r, c]); } } return absMatrix; }