Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return true
if the vector is not a unit vector or if any element is NaN
.
A valid unit vector is one where the square elements summed is equal to 1. This function tests that the sum is within the tolerance specified by CONSTRAINT_TOLERANCE
. This function only accepts Eigen::Matrix
vectors, statically typed vectors, not general matrices with 1 column.
EigMat | A type derived from EigenBase with 1 compile time row or column |
theta | Eigen vector to test |
true
if the vector is not a unit vector or if any element is NaN
Definition at line 28 of file is_unit_vector.hpp.