public static mat2 outerProduct(vec2 c, vec2 r) { mat2 a = new mat2(); a[0,0] = c.x * r.x; a[1,0] = c.x * r.y; a[0,1] = c.y * r.x; a[1,1] = c.y * r.y; return a; }
public static mat2 transpose(mat2 m) { return (mat2)m.Transpose; }
public static mat2 inverse(mat2 m) { return m.Inverse; }
public static mat2 matrixCompMult(mat2 x, mat2 y) { mat2 r = new mat2(MatrixSquare.ComponentMultiply(x, y)); return r; }