SquareMatrixType
public protocol SquareMatrixType : TransposableMatrixType where Self == Self.Transpose
Protocol for square matrices, or matrices with the same number of rows and columns.
-
Returns the determinant of this square matrix.
Declaration
Swift
func determinant() -> Scalar
-
Returns the inverse of this matrix.
If this matrix has no inversion,
nil
is returned, instead.Declaration
Swift
func inverted() -> Self?
-
Performs a matrix multiplication between
lhs
andrhs
and returns the result.Declaration
Swift
static func * (lhs: Self, rhs: Self) -> Self