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) -> SelfParameters
lhsThe current matrix.
rhsThe 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) -> SelfParameters
lhsThe scalar by which the matrix’s elements are divided.
rhsThe 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
lhsThe matrix to divide and assign.
FloatingPointMatrix Protocol Reference