StatMech
|
Public Types | |
using | EigenMatrix_t = Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > |
using | Object_t = Eigen::Map< EigenMatrix_t, Eigen::Unaligned, Eigen::Stride< Eigen::Dynamic, 1 > > |
using | Scalar = _Scalar |
using | RealScalar = typename Eigen::NumTraits< Scalar >::Real |
Public Member Functions | |
template<class Derived > | |
__host__ | ObjectOnGPU (Eigen::PlainObjectBase< Derived > const &hObject) |
__host__ | ObjectOnGPU (int rows=_Rows, int cols=_Cols) |
Default constructor. | |
__host__ | ObjectOnGPU (ObjectOnGPU const &other)=delete |
Copy constructor. | |
__host__ | ObjectOnGPU (ObjectOnGPU &&other) |
Move constructor. | |
__host__ | ~ObjectOnGPU () |
Destructor. | |
__host__ ObjectOnGPU & | operator= (ObjectOnGPU const &other)=delete |
Copy assignment operator. | |
__host__ ObjectOnGPU & | operator= (ObjectOnGPU &&other) |
Move assignment operator. | |
__host__ | operator Object_t * () |
__host__ Object_t * | ptr () const |
__host__ Object_t const * | const_ptr () const |
__host__ void | resize (int rows, int cols=_Cols) |
__host__ Scalar * | data () const |
__host__ Scalar const * | const_data () const |
__host__ int | rows () const |
__host__ int | cols () const |
__host__ int | LD () const |
template<class Derived > | |
__host__ ObjectOnGPU & | set (Eigen::PlainObjectBase< Derived > const &inMat, magma_queue_t queue) |
template<class Derived > | |
__host__ ObjectOnGPU & | set (Eigen::PlainObjectBase< Derived > const &inMat) |
__host__ Eigen::MatrixX< Scalar > | get () const |
Static Public Attributes | |
static constexpr bool | onGPU = true |
static constexpr bool | IsRowMajor = EigenMatrix_t::IsRowMajor |
Private Attributes | |
Object_t * | m_ptr = nullptr |
Object_t ** | m_ptrptr = nullptr |
bool | is_constructed = false |
_Scalar * | m_data = nullptr |
int | m_rows = 0 |
int | m_cols = 0 |
int | m_LD = 0 |
int | m_reserved = 0 |
Static Private Attributes | |
static constexpr int | GPU_UNIT = 32 |
Friends | |
__host__ friend ObjectOnGPU | operator* (ObjectOnGPU const &mat1, ObjectOnGPU const &mat2) |
__host__ friend std::ostream & | operator<< (std::ostream &os, const ObjectOnGPU &dMat) |
using ObjectOnGPU< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::EigenMatrix_t = Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> |
using ObjectOnGPU< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::Object_t = Eigen::Map< EigenMatrix_t, Eigen::Unaligned, Eigen::Stride<Eigen::Dynamic, 1> > |
using ObjectOnGPU< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::RealScalar = typename Eigen::NumTraits<Scalar>::Real |
using ObjectOnGPU< Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::Scalar = _Scalar |
|
inline |
|
inline |
Default constructor.
rows | |
cols |
|
delete |
Copy constructor.
other |
|
inline |
Move constructor.
other |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Move assignment operator.
other |
|
delete |
Copy assignment operator.
other |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
staticconstexprprivate |
|
private |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexpr |