helib::TensorSlice< N > Struct Template Reference
#include <Matrix.h>
Public Member Functions | |
template<typename Iter1 , typename Iter2 > | |
TensorSlice (const Iter1 &firstLength, const Iter1 &lastLength, const Iter2 &firstStride, const Iter2 &lastStride, const std::vector< long > &st) | |
template<typename Iter1 , typename Iter2 > | |
TensorSlice (const Iter1 &firstLength, const Iter1 &lastLength, const Iter2 &firstStride, const Iter2 &lastStride, unsigned long pos) | |
template<typename... Dims> | |
TensorSlice (Dims... dims) | |
template<typename... Dims> | |
std::size_t | operator() (Dims... dims) const |
std::size_t | order () const |
bool | operator== (const TensorSlice &rhs) const |
bool | operator!= (const TensorSlice &rhs) const |
Public Attributes | |
std::array< std::size_t, N > | lengths |
std::array< std::size_t, N > | strides |
std::vector< long > | start = {0} |
std::size_t | size = 0 |
Constructor & Destructor Documentation
◆ TensorSlice() [1/3]
template<std::size_t N>
template<typename Iter1 , typename Iter2 >
|
inline |
◆ TensorSlice() [2/3]
template<std::size_t N>
template<typename Iter1 , typename Iter2 >
|
inline |
◆ TensorSlice() [3/3]
template<std::size_t N>
template<typename... Dims>
|
inline |
Member Function Documentation
◆ operator!=()
template<std::size_t N>
|
inline |
◆ operator()()
template<std::size_t N>
template<typename... Dims>
|
inline |
◆ operator==()
template<std::size_t N>
|
inline |
◆ order()
template<std::size_t N>
|
inline |
Member Data Documentation
◆ lengths
template<std::size_t N>
std::array<std::size_t, N> helib::TensorSlice< N >::lengths |
◆ size
template<std::size_t N>
std::size_t helib::TensorSlice< N >::size = 0 |
◆ start
template<std::size_t N>
std::vector<long> helib::TensorSlice< N >::start = {0} |
◆ strides
template<std::size_t N>
std::array<std::size_t, N> helib::TensorSlice< N >::strides |