menu

destack:math

import destack:math

Classes

  1. BigIntArbitrary-precision integer.
  2. MathFloating point math functions and constants.
  3. NumberNumber constants and parsing functions.

Structs

  1. ComplexComplex number with floating-point components.
  2. Matrix2Two-by-two matrix in row-major field order.
  3. Matrix3Three-by-three matrix in row-major field order.
  4. Matrix4Four-by-four matrix in row-major field order.
  5. QuaternionQuaternion rotation value.
  6. Vector2Two-dimensional vector.
  7. Vector3Three-dimensional vector.
  8. Vector4Four-dimensional vector.

Newtypes

  1. VectorFixed-width vector type.
  2. WrappingInteger wrapper whose operators use modular arithmetic.

Newtype interfaces

  1. FloatMarker for the builtin float formats of any width.
  2. FloatDomainMarker for float literals and builtin float types.
  3. IntegerMarker for the builtin integer types of any width.
  4. IntegerDomainMarker for integer literals, intervals, and builtin integer types.
  5. OneNumeric type with a multiplicative identity.
  6. ZeroNumeric type with an additive identity.

Type aliases

  1. ComplexdDouble-precision complex number.
  2. ComplexfSingle-precision complex number.
  3. LaneCountReturn the number of lanes in Vector<T, N>.
  4. LaneOfReturn the element type in Vector<T, N>.
  5. MaskVector mask type.
  6. Matrix2dTwo-by-two double-precision matrix.
  7. Matrix2fTwo-by-two single-precision matrix.
  8. Matrix2iTwo-by-two signed integer matrix.
  9. Matrix3dThree-by-three double-precision matrix.
  10. Matrix3fThree-by-three single-precision matrix.
  11. Matrix3iThree-by-three signed integer matrix.
  12. Matrix4dFour-by-four double-precision matrix.
  13. Matrix4fFour-by-four single-precision matrix.
  14. Matrix4iFour-by-four signed integer matrix.
  15. NumberFormatOptionsNumber locale formatting options.
  16. NumericAny sized machine scalar, excluding bigint.
  17. NumericDomainAny numeric literal, interval, or sized machine scalar, excluding bigint.
  18. QuaterniondDouble-precision quaternion.
  19. QuaternionfSingle-precision quaternion.
  20. UnsignedThe unsigned builtin integer type with the same width as T.
  21. Vector2dTwo-dimensional double-precision vector.
  22. Vector2fTwo-dimensional single-precision vector.
  23. Vector2iTwo-dimensional signed integer vector.
  24. Vector3dThree-dimensional double-precision vector.
  25. Vector3fThree-dimensional single-precision vector.
  26. Vector3iThree-dimensional signed integer vector.
  27. Vector4dFour-dimensional double-precision vector.
  28. Vector4fFour-dimensional single-precision vector.
  29. Vector4iFour-dimensional signed integer vector.

Functions

  1. convertConvert vector lanes to U.
  2. equalReturn a lane mask for equality.
  3. extractReturn the lane at index.
  4. greaterReturn a lane mask for greater-than comparison.
  5. greaterEqualReturn a lane mask for greater-than-or-equal comparison.
  6. insertReturn a vector with one lane replaced.
  7. lessReturn a lane mask for less-than comparison.
  8. lessEqualReturn a lane mask for less-than-or-equal comparison.
  9. loadLoad N contiguous values from source.
  10. notEqualReturn a lane mask for inequality.
  11. reduceAddHorizontal reduction: sum all lanes.
  12. reduceAndHorizontal reduction: bitwise AND of all lanes.
  13. reduceMaxHorizontal reduction: maximum of all lanes.
  14. reduceMinHorizontal reduction: minimum of all lanes.
  15. reduceMulHorizontal reduction: multiply all lanes.
  16. reduceOrHorizontal reduction: bitwise OR of all lanes.
  17. reduceXorHorizontal reduction: bitwise XOR of all lanes.
  18. selectPer-lane conditional select.
  19. shuffleShuffle vector lanes.
  20. splatBroadcast scalar to all lanes.
  21. storeStore value into destination.

Constants

  1. InfinityThe positive float infinity.
  2. NaNThe float not-a-number value.

Extensions

  1. ArithmeticExplicit overflow behaviors for builtin integer arithmetic.
  2. CastExplicit lossy conversions between builtin integer types.