* @brief Returns the euclidean norm for a cartesian vector with 3 coords * * @param vector * @return af::array */
| 131 | * @return af::array |
| 132 | */ |
| 133 | af::array norm3(const af::array& vector) { |
| 134 | return af::sqrt(dot3(vector, vector)); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * @brief Returns the normalized vector for a cartesian vector with 3 coords |
no test coverage detected