Open3D (C++ API)  0.18.0+252c867
Public Member Functions | Data Fields
open3d::core::TensorRef Struct Reference

A minimalistic class that reference a Tensor. More...

#include <Indexer.h>

Public Member Functions

 TensorRef ()
 
 TensorRef (const Tensor &t)
 
void Permute (const SizeVector &dims)
 Permute (dimension shuffle) the reference to a Tensor. More...
 
bool IsContiguous () const
 Returns True if the underlying memory buffer is contiguous. More...
 
bool operator== (const TensorRef &other) const
 
bool operator!= (const TensorRef &other) const
 

Data Fields

void * data_ptr_
 
int64_t ndims_ = 0
 
int64_t dtype_byte_size_ = 0
 
int64_t shape_ [MAX_DIMS]
 
int64_t byte_strides_ [MAX_DIMS]
 

Detailed Description

A minimalistic class that reference a Tensor.

Constructor & Destructor Documentation

◆ TensorRef() [1/2]

open3d::core::TensorRef::TensorRef ( )
inline

◆ TensorRef() [2/2]

open3d::core::TensorRef::TensorRef ( const Tensor t)
inline

Member Function Documentation

◆ IsContiguous()

bool open3d::core::TensorRef::IsContiguous ( ) const
inline

Returns True if the underlying memory buffer is contiguous.

◆ operator!=()

bool open3d::core::TensorRef::operator!= ( const TensorRef other) const
inline

◆ operator==()

bool open3d::core::TensorRef::operator== ( const TensorRef other) const
inline

◆ Permute()

void open3d::core::TensorRef::Permute ( const SizeVector dims)
inline

Permute (dimension shuffle) the reference to a Tensor.

Parameters
dimsThe desired ordering of dimensions.

Note: This only affects this Tensor reference, but not the underlying Tensor.

Field Documentation

◆ byte_strides_

int64_t open3d::core::TensorRef::byte_strides_[MAX_DIMS]

◆ data_ptr_

void* open3d::core::TensorRef::data_ptr_

◆ dtype_byte_size_

int64_t open3d::core::TensorRef::dtype_byte_size_ = 0

◆ ndims_

int64_t open3d::core::TensorRef::ndims_ = 0

◆ shape_

int64_t open3d::core::TensorRef::shape_[MAX_DIMS]

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