NDArrayData Class Reference

NDArrayData Class Reference#

Runtime Library: mobilint::internal::NDArrayData Class Reference
Runtime Library v0.30
Mobilint SDK qb
mobilint::internal::NDArrayData Class Reference

A class representing the data underlying an NDArray. More...

#include <ndarray.h>

Public Member Functions

 NDArrayData (int64_t bytesize, StatusCode &sc)
 NDArrayData (std::shared_ptr< void > data)
 NDArrayData (void *ptr)
 NDArrayData (const NDArrayData &other)=default
 NDArrayData (NDArrayData &&other) noexcept=default
NDArrayDataoperator= (const NDArrayData &other)
NDArrayDataoperator= (NDArrayData &&other) noexcept=default
void * data () const

Detailed Description

A class representing the data underlying an NDArray.

This class is responsible for holding the raw memory buffer or pointer for an NDArray. It is an internal implementation detail and is not intended for direct use by external code.

Do not use this class directly; please use NDArray instead.

Definition at line 41 of file ndarray.h.

Constructor & Destructor Documentation

◆ NDArrayData() [1/2]

mobilint::internal::NDArrayData::NDArrayData ( std::shared_ptr< void > data)
inlineexplicit

Definition at line 45 of file ndarray.h.

◆ NDArrayData() [2/2]

mobilint::internal::NDArrayData::NDArrayData ( void * ptr)
inlineexplicit

Definition at line 47 of file ndarray.h.

Member Function Documentation

◆ data()

void * mobilint::internal::NDArrayData::data ( ) const
inline

Definition at line 54 of file ndarray.h.


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