public protocol VectorNumeric

A type that represents an unranked vector space. Values of this type are elements in this vector space and with a specific dimensionality.

  • The type of scalars in the real vector space.

    Declaration

    associatedtype ScalarElement
  • The type whose values specifies the dimensionality of an object in the real vector space.

    Declaration

    associatedtype Dimensionality
  • Create a scalar in the real vector space that the type represents.

    Declaration

    init(_ scalar: ScalarElement)

    Parameters

    scalar

    the scalar

  • Create an object in the real vector space with the specified dimensionality by repeatedly filling the object with the specified value.

    Declaration

    init(dimensionality: Dimensionality, repeating repeatedValue: ScalarElement)

    Parameters

    dimensionality

    the dimensionality

    repeatedValue

    the value repeat for the specified dimensionality

  • +(_:_:)

    Default implementation

    Default Implementation

    Declaration

    static func + (lhs: Self, rhs: Self) -> Self
  • Declaration

    static func + (lhs: Self, rhs: ScalarElement) -> Self
  • Declaration

    static func + (lhs: ScalarElement, rhs: Self) -> Self
  • -(_:_:)

    Default implementation

    Default Implementation

    Declaration

    static func - (lhs: Self, rhs: Self) -> Self
  • Declaration

    static func - (lhs: Self, rhs: ScalarElement) -> Self
  • Declaration

    static func - (lhs: ScalarElement, rhs: Self) -> Self
  • *(_:_:)

    Default implementation

    Default Implementation

    Declaration

    static func * (lhs: Self, rhs: Self) -> Self
  • Declaration

    static func * (lhs: Self, rhs: ScalarElement) -> Self
  • Declaration

    static func * (lhs: ScalarElement, rhs: Self) -> Self