StructureSwift

    Float16

    A half-precision (16b), floating-point value type.

    • iOS 14.0+
    • macOS 11.0+
    • tvOS 14.0+
    • watchOS 7.0+
    @frozen struct Float16

    Members

    Typealiases

    Differentiation

    Initializers

    Type Properties

    Instance Properties

    RealModule

    • var reciprocal: Self?

      Implementations should be conservative with the reciprocal property; it is OK to return nil even in cases where a reciprocal could be represented. For this reason, a default implementation that simply always returns nil is correct, but conforming types should provide a better implementation if possible.

    • var reciprocal: Self?

      The (approximate) reciprocal (multiplicative inverse) of this number, if it is representable.

    Type Methods

    RealModule

    Instance Methods

    Differentiation

    • func move(by: Self.TangentVector)

      Moves self by the given offset. In Riemannian geometry, this is equivalent to exponential map, which moves self on the geodesic surface by the given tangent vector.

    • func move(by: Float16.TangentVector)

      Moves self by the given offset. In Riemannian geometry, this is equivalent to exponential map, which moves self on the geodesic surface by the given tangent vector.

    Type Operators

    RealModule

    Structures