xgboost
Public Types | Public Member Functions | Public Attributes | List of all members
xgboost::TypedArrayRef Struct Reference

Used as a reference to a linalg::Matrix, or a vector. More...

#include <data.h>

Collaboration diagram for xgboost::TypedArrayRef:
Collaboration graph

Public Types

using SizeType = linalg::VectorView< float >::SizeType
 
using Shape = std::array< SizeType, 2 >
 

Public Member Functions

std::string ArrayInterfaceStr () const
 
SizeType Size () const
 

Public Attributes

DataType dtype {DataType::kFloat32}
 
Shape shape {0, 0}
 
SizeType ndim {0}
 
void const * data {nullptr}
 

Detailed Description

Used as a reference to a linalg::Matrix, or a vector.

Member Typedef Documentation

◆ Shape

using xgboost::TypedArrayRef::Shape = std::array<SizeType, 2>

◆ SizeType

Member Function Documentation

◆ ArrayInterfaceStr()

std::string xgboost::TypedArrayRef::ArrayInterfaceStr ( ) const

◆ Size()

SizeType xgboost::TypedArrayRef::Size ( ) const
inline

Member Data Documentation

◆ data

void const* xgboost::TypedArrayRef::data {nullptr}

◆ dtype

DataType xgboost::TypedArrayRef::dtype {DataType::kFloat32}

◆ ndim

SizeType xgboost::TypedArrayRef::ndim {0}

◆ shape

Shape xgboost::TypedArrayRef::shape {0, 0}

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