PointwiseMultiplicative

public protocol PointwiseMultiplicative : AdditiveArithmetic

A type with values that support pointwise multiplication.

  • one

    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 and x.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.

  • .*=(_:_:)

    Default implementation

    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.

  • ./(_:_:)

    Extension method

    Declaration

    public static func ./ (lhs: Self, rhs: Self) -> Self
  • ./=(_:_:)

    Extension method

    Declaration

    public static func ./= (lhs: inout Self, rhs: Self)