Function for finding the unit vector of the input vector.
- Note
- Only for public domain (at this point only public sqrt is in scope).
-
Supported types - float32 / float64
◆ unitVector() [1/4]
float32 unitVector |
( |
float32[[1]] |
x | ) |
|
- Parameters
-
x | - vector of supported type |
- Returns
- returns the unit vector for the input vector
◆ unitVector() [2/4]
float32 unitVector |
( |
float32[[2]] |
x | ) |
|
- Parameters
-
x | - matrix of supported type |
- Returns
- returns a matrix with the unit vector of each row in the input matrix
◆ unitVector() [3/4]
float64 unitVector |
( |
float64[[1]] |
x | ) |
|
- Parameters
-
x | - vector of supported type |
- Returns
- returns the unit vector for the input vector
◆ unitVector() [4/4]
float64 unitVector |
( |
float64[[2]] |
x | ) |
|
- Parameters
-
x | - matrix of supported type |
- Returns
- returns a matrix with the unit vector of each row in the input matrix