|
| MatrixView (HostDeviceVector< T > *vec, std::array< size_t, 2 > strides, std::array< size_t, 2 > shape, int32_t device) |
|
| MatrixView (HostDeviceVector< std::remove_const_t< T >> const *vec, std::array< size_t, 2 > strides, std::array< size_t, 2 > shape, int32_t device) |
|
| MatrixView (HostDeviceVector< T > *vec, std::array< size_t, 2 > shape, int32_t device) |
| Row major constructor. More...
|
|
| MatrixView (std::vector< T > *vec, std::array< size_t, 2 > shape) |
|
| MatrixView (HostDeviceVector< std::remove_const_t< T >> const *vec, std::array< size_t, 2 > shape, int32_t device) |
|
XGBOOST_DEVICE const T & | operator() (size_t r, size_t c) const |
|
XGBOOST_DEVICE T & | operator() (size_t r, size_t c) |
|
auto | Strides () const |
|
auto | Shape () const |
|
auto | Values () const |
|
auto | Size () const |
|
auto | DeviceIdx () const |
|
template<typename T>
class xgboost::MatrixView< T >
A view over a matrix on contiguous storage.
- Template Parameters
-