Open3D (C++ API)
Public Member Functions
open3d::SizeVector Class Reference

#include <SizeVector.h>

Inheritance diagram for open3d::SizeVector:

Public Member Functions

 SizeVector (const std::initializer_list< int64_t > &dim_sizes)
 
 SizeVector (const std::vector< int64_t > &dim_sizes)
 
 SizeVector (const SizeVector &other)
 
 SizeVector (int64_t n, int64_t initial_value=0)
 
template<class InputIterator >
 SizeVector (InputIterator first, InputIterator last)
 
 SizeVector ()
 
SizeVectoroperator= (const SizeVector &v)
 
SizeVectoroperator= (SizeVector &&v)
 
int64_t NumElements () const
 
std::string ToString () const
 

Detailed Description

SizeVector is a vector of int64_t, typically used in Tensor shape and strides. A signed int64_t type is chosen to allow negative strides.

Constructor & Destructor Documentation

◆ SizeVector() [1/6]

open3d::SizeVector::SizeVector ( const std::initializer_list< int64_t > &  dim_sizes)
inline

◆ SizeVector() [2/6]

open3d::SizeVector::SizeVector ( const std::vector< int64_t > &  dim_sizes)
inline

◆ SizeVector() [3/6]

open3d::SizeVector::SizeVector ( const SizeVector other)
inline

◆ SizeVector() [4/6]

open3d::SizeVector::SizeVector ( int64_t  n,
int64_t  initial_value = 0 
)
inlineexplicit

◆ SizeVector() [5/6]

template<class InputIterator >
open3d::SizeVector::SizeVector ( InputIterator  first,
InputIterator  last 
)
inline

◆ SizeVector() [6/6]

open3d::SizeVector::SizeVector ( )
inline

Member Function Documentation

◆ NumElements()

int64_t open3d::SizeVector::NumElements ( ) const
inline

◆ operator=() [1/2]

SizeVector& open3d::SizeVector::operator= ( const SizeVector v)
inline

◆ operator=() [2/2]

SizeVector& open3d::SizeVector::operator= ( SizeVector &&  v)
inline

◆ ToString()

std::string open3d::SizeVector::ToString ( ) const
inline

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