ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::t::io::NumpyArray Class Reference

Public Member Functions

 NumpyArray (const core::Tensor &t)
 
 NumpyArray (const core::SizeVector &shape, char type, int64_t word_size, bool fortran_order)
 
template<typename T >
T * GetDataPtr ()
 
template<typename T >
const T * GetDataPtr () const
 
core::Dtype GetDtype () const
 
core::SizeVector GetShape () const
 
bool IsFortranOrder () const
 
int64_t NumBytes () const
 
int64_t NumElements () const
 
core::Tensor ToTensor () const
 
void Save (std::string file_name) const
 

Detailed Description

Definition at line 495 of file NumpyIO.cpp.

Constructor & Destructor Documentation

◆ NumpyArray() [1/2]

cloudViewer::t::io::NumpyArray::NumpyArray ( const core::Tensor t)
inline

◆ NumpyArray() [2/2]

cloudViewer::t::io::NumpyArray::NumpyArray ( const core::SizeVector shape,
char  type,
int64_t  word_size,
bool  fortran_order 
)
inline

Definition at line 505 of file NumpyIO.cpp.

References NumBytes().

Member Function Documentation

◆ GetDataPtr() [1/2]

template<typename T >
T* cloudViewer::t::io::NumpyArray::GetDataPtr ( )
inline

◆ GetDataPtr() [2/2]

template<typename T >
const T* cloudViewer::t::io::NumpyArray::GetDataPtr ( ) const
inline

Definition at line 522 of file NumpyIO.cpp.

◆ GetDtype()

◆ GetShape()

core::SizeVector cloudViewer::t::io::NumpyArray::GetShape ( ) const
inline

Definition at line 542 of file NumpyIO.cpp.

◆ IsFortranOrder()

bool cloudViewer::t::io::NumpyArray::IsFortranOrder ( ) const
inline

Definition at line 544 of file NumpyIO.cpp.

◆ NumBytes()

int64_t cloudViewer::t::io::NumpyArray::NumBytes ( ) const
inline

◆ NumElements()

int64_t cloudViewer::t::io::NumpyArray::NumElements ( ) const
inline

Definition at line 548 of file NumpyIO.cpp.

References cloudViewer::core::SizeVector::NumElements().

Referenced by NumBytes().

◆ Save()

◆ ToTensor()


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