45 template <
class InputIterator>
74 SizeVector(
const std::initializer_list<int64_t>& dim_sizes);
76 SizeVector(
const std::vector<int64_t>& dim_sizes);
80 explicit SizeVector(int64_t n, int64_t initial_value = 0);
82 template <
class InputIterator>
97 const std::string msg =
"")
const;
101 operator std::vector<int64_t>()
const {
102 return std::vector<int64_t>(
begin(),
end());
Definition: SizeVector.h:31
DynamicSizeVector(InputIterator first, InputIterator last)
Definition: SizeVector.h:46
bool IsDynamic() const
Definition: SizeVector.cpp:81
SizeVector ToSizeVector() const
Definition: SizeVector.cpp:40
DynamicSizeVector & operator=(const DynamicSizeVector &v)
Definition: SizeVector.cpp:51
void shrink_to_fit()
Definition: SizeVector.h:62
std::string ToString() const
Definition: SizeVector.cpp:61
DynamicSizeVector()
Definition: SizeVector.h:34
Definition: SizeVector.h:69
bool IsCompatible(const DynamicSizeVector &dsv) const
Definition: SizeVector.cpp:149
void shrink_to_fit()
Definition: SizeVector.h:106
void AssertCompatible(const DynamicSizeVector &dsv, const std::string msg="") const
Definition: SizeVector.cpp:136
SizeVector()
Definition: SizeVector.h:72
int64_t NumElements() const
Definition: SizeVector.cpp:108
SizeVector(InputIterator first, InputIterator last)
Definition: SizeVector.h:83
SizeVector & operator=(const SizeVector &v)
Definition: SizeVector.cpp:98
int64_t GetLength() const
Definition: SizeVector.cpp:124
std::string ToString() const
Definition: SizeVector.cpp:132
Definition: SmallVector.h:1261
iterator begin()
Definition: SmallVector.h:301
iterator end()
Definition: SmallVector.h:303
Definition: PinholeCameraIntrinsic.cpp:16