Open3D (C++ API)
0.15.1
|
#include <SizeVector.h>
Public Member Functions | |
SizeVector () | |
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 & | operator= (const SizeVector &v) |
SizeVector & | operator= (SizeVector &&v) |
int64_t | NumElements () const |
int64_t | GetLength () const |
std::string | ToString () const |
void | AssertCompatible (const DynamicSizeVector &dsv, const std::string msg="") const |
bool | IsCompatible (const DynamicSizeVector &dsv) const |
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.
|
inline |
open3d::core::SizeVector::SizeVector | ( | const std::initializer_list< int64_t > & | dim_sizes | ) |
open3d::core::SizeVector::SizeVector | ( | const std::vector< int64_t > & | dim_sizes | ) |
open3d::core::SizeVector::SizeVector | ( | const SizeVector & | other | ) |
|
explicit |
|
inline |
void open3d::core::SizeVector::AssertCompatible | ( | const DynamicSizeVector & | dsv, |
const std::string | msg = "" |
||
) | const |
int64_t open3d::core::SizeVector::GetLength | ( | ) | const |
bool open3d::core::SizeVector::IsCompatible | ( | const DynamicSizeVector & | dsv | ) | const |
int64_t open3d::core::SizeVector::NumElements | ( | ) | const |
SizeVector & open3d::core::SizeVector::operator= | ( | const SizeVector & | v | ) |
SizeVector & open3d::core::SizeVector::operator= | ( | SizeVector && | v | ) |
std::string open3d::core::SizeVector::ToString | ( | ) | const |