FloatingPointMatrix
public protocol FloatingPointMatrix : MatrixOperationsBase where Self.ElementType : FloatingPoint
A matrix whose elements are FloatingPoint.
-
Divides a matrix by a scalar.
Declaration
Swift
static func / (lhs: Self, rhs: ElementType) -> Self
Parameters
lhs
The current matrix.
rhs
The scalar to divide the elements.
Return Value
A matrix with dimensions equal to lhs.dimensions with all elements divided by rhs.
-
Divides a scalar by a matrix.
Declaration
Swift
static func / (lhs: ElementType, rhs: Self) -> Self
Parameters
lhs
The scalar by which the matrix’s elements are divided.
rhs
The current matrix.
Return Value
A matrix with dimensions equal to rhs.dimensions with all elements dividing lhs.
-
Divides and assigns a scalar and a matrix.
Declaration
Swift
static func /= (lhs: inout Self, rhs: ElementType)
Parameters
lhs
The matrix to divide and assign.