20namespace nda::linalg {
33 template <Vector X, Vector Y>
36 EXPECTS(x.size() == 3 and y.size() == 3);
38 res(0) = x(1) * y(2) - y(1) * x(2);
39 res(1) = -x(0) * y(2) + y(0) * x(2);
40 res(2) = x(0) * y(1) - y(0) * x(1);
Provides definitions and type traits involving the different memory address spaces supported by nda.
Provides the generic class for arrays.
Provides concepts for the nda library.
Provides various convenient aliases and helper functions for nda::basic_array and nda::basic_array_vi...
basic_array< ValueType, 1, C_layout, 'V', ContainerPolicy > vector
Alias template of an nda::basic_array with rank 1 and a 'V' algebra.
static constexpr bool have_host_compatible_addr_space
Constexpr variable that is true if all given types have an address space compatible with Host.
constexpr AddressSpace common_addr_space
Get common address space for a number of given nda::Array types.
heap_basic< mem::mallocator< AdrSp > > heap
Alias template of the nda::heap_basic policy using an nda::mem::mallocator.
Macros used in the nda library.
Defines various memory handling policies.