Struct faiss::nn::Tensor2DTemplate
-
template<typename T>
struct Tensor2DTemplate Public Functions
-
Tensor2DTemplate(size_t n0, size_t n1, const T *data = nullptr)
-
Tensor2DTemplate &operator+=(const Tensor2DTemplate&)
-
Tensor2DTemplate column(size_t j) const
get column #j as a 1-column Tensor2D
-
inline size_t numel() const
-
inline T *data()
-
inline const T *data() const
-
Tensor2DTemplate(size_t n0, size_t n1, const T *data = nullptr)