Functions
CrossProduct.hpp File Reference

Defines functions cross_product for flat and curved-space cross products. More...

#include <cstddef>
#include "DataStructures/LeviCivitaIterator.hpp"
#include "DataStructures/Tensor/IndexType.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/MakeWithValue.hpp"

Go to the source code of this file.

Functions

template<typename DataType , typename Index >
Tensor< DataType, Symmetry< 1 >, index_list< Index > > cross_product (const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_a, const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_b) noexcept
 Compute the Euclidean cross product of two vectors or one forms. More...
 
template<typename DataType , typename Index >
Tensor< DataType, Symmetry< 1 >, index_list< change_index_up_lo< Index > > > cross_product (const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_a, const Tensor< DataType, Symmetry< 1 >, index_list< change_index_up_lo< Index >>> &vector_b) noexcept
 Compute the Euclidean cross product of a vector and a one form. More...
 
template<typename DataType , typename Index >
Tensor< DataType, Symmetry< 1 >, index_list< Index > > cross_product (const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_a, const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_b, const Tensor< DataType, Symmetry< 1, 1 >, index_list< Index, Index >> &metric_or_inverse_metric, const Scalar< DataType > &metric_determinant) noexcept
 Compute the cross product of two vectors or one forms. More...
 
template<typename DataType , typename Index >
Tensor< DataType, Symmetry< 1 >, index_list< change_index_up_lo< Index > > > cross_product (const Tensor< DataType, Symmetry< 1 >, index_list< Index >> &vector_a, const Tensor< DataType, Symmetry< 1 >, index_list< change_index_up_lo< Index >>> &vector_b, const Tensor< DataType, Symmetry< 1, 1 >, index_list< Index, Index >> &metric_or_inverse_metric, const Scalar< DataType > &metric_determinant) noexcept
 Compute the cross product of a vector and a one form. More...
 

Detailed Description

Defines functions cross_product for flat and curved-space cross products.