* @brief Returns the euclidean dot product for two cartesian vectors with 3 * coords * * @param lhs * @param rhs * @return af::array */
| 121 | * @return af::array |
| 122 | */ |
| 123 | af::array dot3(const af::array& lhs, const af::array& rhs) { |
| 124 | return af::sum(lhs * rhs, 0); |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * @brief Returns the euclidean norm for a cartesian vector with 3 coords |