public protocol PointwiseMultiplicative : AdditiveArithmetic
A type with values that support pointwise multiplication.
-
The one value.
One is the identity element for multiplication. For any value,
x .* .one == x
and.one .* x == x
.Declaration
static var one: Self { get }
-
The multiplicative inverse of self.
For any value,
x .* x.reciprocal == .one
andx.reciprocal .* x == .one
.Declaration
var reciprocal: Self { get }
-
Multiplies two values and produces their product.
Declaration
static func .* (lhs: Self, rhs: Self) -> Self
Parameters
lhs
The first value to multiply.
rhs
The second value to multiply.
-
.*=(_:_:)
Multiplies two values and produces their product.
Default Implementation
Declaration
static func .*= (lhs: inout Self, rhs: Self)
Parameters
lhs
The first value to multiply.
rhs
The second value to multiply.
-
./(_:_:)
Declaration
public static func ./ (lhs: Self, rhs: Self) -> Self
-
./=(_:_:)
Declaration
public static func ./= (lhs: inout Self, rhs: Self)