NeoN
A framework for CFD software
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
tensor.hpp File Reference
#include <Kokkos_Core.hpp>
#include "NeoN/core/primitives/scalar.hpp"
#include "NeoN/core/primitives/vec3.hpp"
#include "NeoN/core/primitives/traits.hpp"

Go to the source code of this file.

Classes

class  NeoN::Tensor
 A class for the representation of a 3x3 tensor. More...
 

Namespaces

namespace  NeoN
 Integer types used throughout NeoN.
 

Functions

KOKKOS_INLINE_FUNCTION Tensor NeoN::operator* (const scalar s, const Tensor &t)
 
KOKKOS_INLINE_FUNCTION Vec3 NeoN::operator& (const Tensor &t, const Vec3 &v)
 Matrix-vector product T·v.
 
KOKKOS_INLINE_FUNCTION Vec3 NeoN::operator& (const Vec3 &v, const Tensor &t)
 Row-vector times matrix v·T.
 
KOKKOS_INLINE_FUNCTION scalar NeoN::mag (const Tensor &t)
 Frobenius norm.
 
KOKKOS_INLINE_FUNCTION scalar NeoN::magSqr (const Tensor &t)
 Frobenius norm squared.
 
std::ostream & NeoN::operator<< (std::ostream &out, const Tensor &t)
 
template<>
KOKKOS_INLINE_FUNCTION Tensor NeoN::zero< Tensor > ()
 
template<>
KOKKOS_INLINE_FUNCTION Tensor NeoN::one< Tensor > ()
 
template<>
KOKKOS_INLINE_FUNCTION Tensor NeoN::inv< Tensor > (Tensor)