abstract struct LA::AVector1
- LA::AVector1
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
linalg/vector.crConstant Summary
-
COMPONENTS =
[:x]
Constructors
Class Method Summary
Instance Method Summary
- #*(other : Float64)
- #+(other : self)
- #-(other : self)
- #-
- #/(other : Float64)
- #dot(other : self)
- #length
-
#normalize
If the vector has just one component precalculating the inverse would not improve the performance TODO: validate if precalculating is faster for 2 components
- #squared_length
- #x : Float64
- #x=(x : Float64)
Constructor Detail
Class Method Detail
Instance Method Detail
def normalize
#
If the vector has just one component precalculating the inverse would not improve the performance
TODO validate if precalculating is faster for 2 components