DotProduct.hpp File Reference

Defines functions euclidean dot_product and dot_product with a metric. More...

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

Go to the source code of this file.

Functions

template<typename DataType , typename Index >
void dot_product (const gsl::not_null< Scalar< DataType > *> dot_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 dot product of two vectors or one forms. More...
 
template<typename DataType , typename Index >
Scalar< DataType > dot_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 dot product of two vectors or one forms. More...
 
template<typename DataType , typename Index >
void dot_product (const gsl::not_null< Scalar< DataType > *> dot_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 dot product of a vector and a one form. More...
 
template<typename DataType , typename Index >
Scalar< DataType > dot_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 dot product of a vector and a one form. More...
 
template<typename DataType , typename Index >
void dot_product (const gsl::not_null< Scalar< DataType > *> dot_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< change_index_up_lo< Index >, change_index_up_lo< Index >>> &metric) noexcept
 Compute the dot_product of two vectors or one forms. More...
 
template<typename DataType , typename Index >
Scalar< DataType > dot_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< change_index_up_lo< Index >, change_index_up_lo< Index >>> &metric) noexcept
 Compute the dot_product of two vectors or one forms. More...
 

Detailed Description

Defines functions euclidean dot_product and dot_product with a metric.