MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
dtensor.hpp File Reference

Go to the source code of this file.

Classes

class  mfem::TensorInd< N, Dim, T, Args >
 A Class to compute the real index from the multi-indices of a tensor. More...
 
class  mfem::TensorInd< Dim, Dim, T, Args... >
 
class  mfem::Init< N, Dim, T, Args >
 A class to initialize the size of a Tensor. More...
 
class  mfem::Init< Dim, Dim, T, Args... >
 
class  mfem::DeviceTensor< Dim, Scalar >
 A basic generic Tensor class, appropriate for use on the GPU. More...
 

Namespaces

namespace  mfem
 

Typedefs

typedef DeviceTensor< 1, int > mfem::DeviceArray
 
typedef DeviceTensor< 1, const int > mfem::ConstDeviceArray
 
typedef DeviceTensor< 1, real_tmfem::DeviceVector
 
typedef DeviceTensor< 1, const real_tmfem::ConstDeviceVector
 
typedef DeviceTensor< 2, real_tmfem::DeviceMatrix
 
typedef DeviceTensor< 2, const real_tmfem::ConstDeviceMatrix
 
typedef DeviceTensor< 3, real_tmfem::DeviceCube
 
typedef DeviceTensor< 3, const real_tmfem::ConstDeviceCube
 

Functions

template<typename T , typename... Dims>
MFEM_HOST_DEVICE DeviceTensor< sizeof...(Dims), T > mfem::Reshape (T *ptr, Dims... dims)
 Wrap a pointer as a DeviceTensor with automatically deduced template parameters.