xgboost
Public Member Functions | List of all members
xgboost::VectorView< T > Class Template Reference

A slice for 1 column of MatrixView. Can be extended to row if needed. More...

#include <linalg.h>

Collaboration diagram for xgboost::VectorView< T >:
Collaboration graph

Public Member Functions

 VectorView (MatrixView< T > matrix, size_t column)
 
XGBOOST_DEVICE T & operator[] (size_t i)
 
XGBOOST_DEVICE const T & operator[] (size_t i) const
 
size_t Size ()
 
int32_t DeviceIdx () const
 

Detailed Description

template<typename T>
class xgboost::VectorView< T >

A slice for 1 column of MatrixView. Can be extended to row if needed.

Constructor & Destructor Documentation

◆ VectorView()

template<typename T >
xgboost::VectorView< T >::VectorView ( MatrixView< T >  matrix,
size_t  column 
)
inlineexplicit

Member Function Documentation

◆ DeviceIdx()

template<typename T >
int32_t xgboost::VectorView< T >::DeviceIdx ( ) const
inline

◆ operator[]() [1/2]

template<typename T >
XGBOOST_DEVICE T& xgboost::VectorView< T >::operator[] ( size_t  i)
inline

◆ operator[]() [2/2]

template<typename T >
XGBOOST_DEVICE const T& xgboost::VectorView< T >::operator[] ( size_t  i) const
inline

◆ Size()

template<typename T >
size_t xgboost::VectorView< T >::Size ( )
inline

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