DPNP C++ backend kernel library 0.20.0dev6
Data Parallel Extension for NumPy*
Loading...
Searching...
No Matches
dpnp::tensor::usm_ndarray Class Reference
Inheritance diagram for dpnp::tensor::usm_ndarray:
Collaboration diagram for dpnp::tensor::usm_ndarray:

Public Member Functions

 PYBIND11_OBJECT (usm_ndarray, py::object, [](PyObject *o) -> bool { return PyObject_TypeCheck(o, detail::dpnp_capi::get().PyUSMArrayType_) !=0;}) usm_ndarray()
 
char * get_data () const
 
template<typename T >
T * get_data () const
 
int get_ndim () const
 
const py::ssize_t * get_shape_raw () const
 
std::vector< py::ssize_t > get_shape_vector () const
 
py::ssize_t get_shape (int i) const
 
const py::ssize_t * get_strides_raw () const
 
std::vector< py::ssize_t > get_strides_vector () const
 
py::ssize_t get_size () const
 
std::pair< py::ssize_t, py::ssize_t > get_minmax_offsets () const
 
sycl::queue get_queue () const
 
sycl::device get_device () const
 
int get_typenum () const
 
int get_flags () const
 
int get_elemsize () const
 
bool is_c_contiguous () const
 
bool is_f_contiguous () const
 
bool is_writable () const
 
py::object get_usm_data () const
 Get usm_data property of array.
 
bool is_managed_by_smart_ptr () const
 
const std::shared_ptr< void > & get_smart_ptr_owner () const
 

Detailed Description

Definition at line 253 of file dpnp4pybind11.hpp.

Member Function Documentation

◆ get_data() [1/2]

char * dpnp::tensor::usm_ndarray::get_data ( ) const
inline

Definition at line 269 of file dpnp4pybind11.hpp.

◆ get_data() [2/2]

template<typename T >
T * dpnp::tensor::usm_ndarray::get_data ( ) const
inline

Definition at line 276 of file dpnp4pybind11.hpp.

◆ get_device()

sycl::device dpnp::tensor::usm_ndarray::get_device ( ) const
inline

Definition at line 400 of file dpnp4pybind11.hpp.

◆ get_elemsize()

int dpnp::tensor::usm_ndarray::get_elemsize ( ) const
inline

Definition at line 423 of file dpnp4pybind11.hpp.

◆ get_flags()

int dpnp::tensor::usm_ndarray::get_flags ( ) const
inline

Definition at line 417 of file dpnp4pybind11.hpp.

◆ get_minmax_offsets()

std::pair< py::ssize_t, py::ssize_t > dpnp::tensor::usm_ndarray::get_minmax_offsets ( ) const
inline

Definition at line 358 of file dpnp4pybind11.hpp.

◆ get_ndim()

int dpnp::tensor::usm_ndarray::get_ndim ( ) const
inline

Definition at line 281 of file dpnp4pybind11.hpp.

◆ get_queue()

sycl::queue dpnp::tensor::usm_ndarray::get_queue ( ) const
inline

Definition at line 389 of file dpnp4pybind11.hpp.

◆ get_shape()

py::ssize_t dpnp::tensor::usm_ndarray::get_shape ( int i) const
inline

Definition at line 302 of file dpnp4pybind11.hpp.

◆ get_shape_raw()

const py::ssize_t * dpnp::tensor::usm_ndarray::get_shape_raw ( ) const
inline

Definition at line 287 of file dpnp4pybind11.hpp.

◆ get_shape_vector()

std::vector< py::ssize_t > dpnp::tensor::usm_ndarray::get_shape_vector ( ) const
inline

Definition at line 293 of file dpnp4pybind11.hpp.

◆ get_size()

py::ssize_t dpnp::tensor::usm_ndarray::get_size ( ) const
inline

Definition at line 342 of file dpnp4pybind11.hpp.

◆ get_smart_ptr_owner()

const std::shared_ptr< void > & dpnp::tensor::usm_ndarray::get_smart_ptr_owner ( ) const
inline

Definition at line 515 of file dpnp4pybind11.hpp.

◆ get_strides_raw()

const py::ssize_t * dpnp::tensor::usm_ndarray::get_strides_raw ( ) const
inline

Definition at line 308 of file dpnp4pybind11.hpp.

◆ get_strides_vector()

std::vector< py::ssize_t > dpnp::tensor::usm_ndarray::get_strides_vector ( ) const
inline

Definition at line 314 of file dpnp4pybind11.hpp.

◆ get_typenum()

int dpnp::tensor::usm_ndarray::get_typenum ( ) const
inline

Definition at line 411 of file dpnp4pybind11.hpp.

◆ get_usm_data()

py::object dpnp::tensor::usm_ndarray::get_usm_data ( ) const
inline

Get usm_data property of array.

Definition at line 487 of file dpnp4pybind11.hpp.

◆ is_c_contiguous()

bool dpnp::tensor::usm_ndarray::is_c_contiguous ( ) const
inline

Definition at line 465 of file dpnp4pybind11.hpp.

◆ is_f_contiguous()

bool dpnp::tensor::usm_ndarray::is_f_contiguous ( ) const
inline

Definition at line 472 of file dpnp4pybind11.hpp.

◆ is_managed_by_smart_ptr()

bool dpnp::tensor::usm_ndarray::is_managed_by_smart_ptr ( ) const
inline

Definition at line 498 of file dpnp4pybind11.hpp.

◆ is_writable()

bool dpnp::tensor::usm_ndarray::is_writable ( ) const
inline

Definition at line 479 of file dpnp4pybind11.hpp.

◆ PYBIND11_OBJECT()

dpnp::tensor::usm_ndarray::PYBIND11_OBJECT ( usm_ndarray ,
py::object ,
[] (PyObject *o) -> bool { return PyObject_TypeCheck(o, detail::dpnp_capi::get().PyUSMArrayType_) !=0;}  )
inline

Definition at line 256 of file dpnp4pybind11.hpp.


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