MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / norm3

Function norm3

examples/pde/bhrt.cpp:133–135  ·  view source on GitHub ↗

* @brief Returns the euclidean norm for a cartesian vector with 3 coords * * @param vector * @return af::array */

Source from the content-addressed store, hash-verified

131 * @return af::array
132 */
133af::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

Callers 3

normalize3Function · 0.85
intersectMethod · 0.85
get_colorMethod · 0.85

Calls 2

sqrtFunction · 0.85
dot3Function · 0.85

Tested by

no test coverage detected