TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
cross_product.hpp
#include "../basic_array.hpp"
#include "../concepts.hpp"
#include "../declarations.hpp"
#include "../macros.hpp"
#include "../mem/address_space.hpp"
#include "../mem/policies.hpp"

Detailed Description

Provides a cross product for 3-dimensional vectors.

Definition in file cross_product.hpp.

Go to the source code of this file.

Functions

template<Vector X, Vector Y>
requires (nda::mem::have_host_compatible_addr_space<X, Y>)
auto nda::linalg::cross_product (X const &x, Y const &y)
 Compute the cross product \( \mathbf{x} \times \mathbf{y} \) of two 3-dimensional vectors \( \mathbf{x} \) and \( \mathbf{y} \).