A vector object is definied by it's rows/length.
More...
#include <vectors.h>
A vector object is definied by it's rows/length.
When a vector object is created, the array is allocated on the heap (RAM2 for Teensy 4.1) with the C++ 'new' keyword. See the following resource to learn more: https://www.techiedelight.com/dynamic-memory-allocation-in-c-for-2d-3d-array/
- Parameters
-
len | Length of the vector, # of elements. Default = 3 |
◆ Vectorf()
Vectorf::Vectorf |
( |
size_t |
len = 3 | ) |
|
|
inline |
Define a vector by it's rows/length.
The vector is allocated on the heap with the C++ 'new' keyword (RAM2 on the Teensy 4.1).
- Parameters
-
len | Length of the vector, # of elements. Default = 3 |
◆ ~Vectorf()
◆ GetNorm()
float Vectorf::GetNorm |
( |
| ) |
|
|
inline |
Return the 2-norm (magnitude) of the vector.
- Returns
- Norm of the vector
◆ len
◆ vec
The documentation for this class was generated from the following file: