MiniTensor Version of the Day
Loading...
Searching...
No Matches
Sacado::Tensor< T, N > Class Template Reference

#include <MiniTensor_Tensor.h>

Inheritance diagram for Sacado::Tensor< T, N >:
minitensor::TensorBase< T, tensor_store< T, DYNAMIC > >

Public Types

using Store = tensor_store<T, N>
Public Types inherited from minitensor::TensorBase< T, tensor_store< T, DYNAMIC > >
using value_type
using storage_type

Public Member Functions

KOKKOS_INLINE_FUNCTION Tensor ()
KOKKOS_INLINE_FUNCTION Tensor (Index const dimension)
KOKKOS_INLINE_FUNCTION Tensor (Filler const value)
KOKKOS_INLINE_FUNCTION Tensor (Index const dimension, Filler const value)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1, Index index2)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1, Index index2, Index index3)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5, Index index6)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1, Index index2)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1, Index index2, Index index3)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1, Index index2, Index index3, Index index4)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5)
template<class ArrayT>
KOKKOS_INLINE_FUNCTION Tensor (Source const source, Index const dimension, ArrayT &data, Index index1, Index index2, Index index3, Index index4, Index index5, Index index6)
KOKKOS_INLINE_FUNCTION Tensor (T const *data_ptr)
KOKKOS_INLINE_FUNCTION Tensor (Index const dimension, T const *data_ptr)
KOKKOS_INLINE_FUNCTION Tensor (Tensor< T, N > const &A)
KOKKOS_INLINE_FUNCTION Tensor (Tensor4< T, dimension_sqrt< N >::value > const &A)
KOKKOS_INLINE_FUNCTION Tensor (T const &s00, T const &s01, T const &s10, T const &s11)
KOKKOS_INLINE_FUNCTION Tensor (T const &s00, T const &s01, T const &s02, T const &s10, T const &s11, T const &s12, T const &s20, T const &s21, T const &s22)
KOKKOS_INLINE_FUNCTION Tensor (T const *data_ptr, ComponentOrder const component_order)
KOKKOS_INLINE_FUNCTION Tensor (Index const dimension, T const *data_ptr, ComponentOrder const component_order)
virtual KOKKOS_INLINE_FUNCTION ~Tensor ()
KOKKOS_INLINE_FUNCTION T const & operator() (Index const i, Index const j) const
KOKKOS_INLINE_FUNCTION T & operator() (Index const i, Index const j)
KOKKOS_INLINE_FUNCTION Index get_dimension () const
KOKKOS_INLINE_FUNCTION Index get_num_rows () const
KOKKOS_INLINE_FUNCTION Index get_num_cols () const
KOKKOS_INLINE_FUNCTION void set_dimension (Index const dimension)
Public Member Functions inherited from minitensor::TensorBase< T, tensor_store< T, DYNAMIC > >
KOKKOS_INLINE_FUNCTION TensorBase ()
KOKKOS_INLINE_FUNCTION TensorBase< T, tensor_store< T, DYNAMIC > > & operator= (TensorBase< T, tensor_store< T, DYNAMIC > > const &X)
KOKKOS_INLINE_FUNCTION T const & operator[] (Index const i) const
KOKKOS_INLINE_FUNCTION Index get_number_components () const
KOKKOS_INLINE_FUNCTION void fill (Filler const value)
KOKKOS_INLINE_FUNCTION TensorBase< T, tensor_store< T, DYNAMIC > > & operator+= (TensorBase< S, SS > const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, tensor_store< T, DYNAMIC > > & operator-= (TensorBase< S, SS > const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, tensor_store< T, DYNAMIC > > & operator*= (S const &X)
KOKKOS_INLINE_FUNCTION TensorBase< T, tensor_store< T, DYNAMIC > > & operator/= (S const &X)
KOKKOS_INLINE_FUNCTION void clear ()

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION constexpr Index get_order ()

Static Public Attributes

static constexpr Index ORDER = 2
static constexpr bool IS_DYNAMIC = N == DYNAMIC

Additional Inherited Members

Protected Member Functions inherited from minitensor::TensorBase< T, tensor_store< T, DYNAMIC > >
KOKKOS_INLINE_FUNCTION void set_number_components (Index const number_components)
KOKKOS_INLINE_FUNCTION Index get_dimension (Index const order) const
KOKKOS_INLINE_FUNCTION void set_dimension (Index const dimension, Index const order)
Protected Attributes inherited from minitensor::TensorBase< T, tensor_store< T, DYNAMIC > >
tensor_store< T, DYNAMIC > components_
Index dimension_

Detailed Description

template<typename T, Index N = DYNAMIC>
class Sacado::Tensor< T, N >

Second order tensor.

Definition at line 37 of file MiniTensor_Tensor.h.


The documentation for this class was generated from the following file: