MFEM v4.9.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

using mfem::DeviceArray = DeviceTensor<1,int>
 
using mfem::ConstDeviceArray = DeviceTensor<1,const int>
 
using mfem::DeviceVector = DeviceTensor<1,real_t>
 
using mfem::ConstDeviceVector = DeviceTensor<1,const real_t>
 
using mfem::DeviceMatrix = DeviceTensor<2,real_t>
 
using mfem::ConstDeviceMatrix = DeviceTensor<2,const real_t>
 
using mfem::DeviceCube = DeviceTensor<3,real_t>
 
using mfem::ConstDeviceCube = DeviceTensor<3,const real_t>
 

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.