lds::UniformVectorList

lds::UniformVectorList #

Inherits from std::vector< Vector >

Public Functions #

Name
UniformVectorList() =default
Constructs a new UniformVectorList.
UniformVectorList(const std::vector< Vector > & vecs, size_t dim =0)
Constructs a new UniformVectorList by copying existing vector of Vector if dimensions consistent.
UniformVectorList(std::vector< Vector > && vecs, size_t dim =0)
Constructs a new UniformVectorList by moving existing vector of Vector if dimensions consistent.
UniformVectorList(std::initializer_list< Vector > vecs, size_t dim =0)
Constructs a new UniformVectorList from initializer_list of Vector if dimensions consistent.
UniformVectorList(const UniformVectorList & that)
Constructs a new UniformVectorList (copy)
UniformVectorList(UniformVectorList && that)
Constructs a new UniformVectorList (move)
~UniformVectorList() =default
Destroys the object.
size_t dim() const
gets dimensions of the uniformly sized matrices
size_t size()
size of container
const Vector & at(size_t n)
gets reference to n^th element
void Swap(Vector & that, size_t n)
swaps input matrix with n^th vector of list
UniformVectorList & operator=(const UniformVectorList & that)
assigns the contents (copy)
UniformVectorList & operator=(UniformVectorList && that)
assigns the contents (move)


Public Function Details #

UniformVectorList #

UniformVectorList() =default

UniformVectorList #

explicit UniformVectorList(
    const std::vector< Vector > & vecs,
    size_t dim =0
)

Parameters:

  • vecs input vectors
  • dims dimension

UniformVectorList #

explicit UniformVectorList(
    std::vector< Vector > && vecs,
    size_t dim =0
)

Parameters:

  • vecs input vectors
  • dim dimension

UniformVectorList #

UniformVectorList(
    std::initializer_list< Vector > vecs,
    size_t dim =0
)

Parameters:

  • vecs input vectors
  • dim dimension

UniformVectorList #

UniformVectorList(
    const UniformVectorList & that
)

Parameters:


UniformVectorList #

UniformVectorList(
    UniformVectorList && that
)

Parameters:


~UniformVectorList #

~UniformVectorList() =default

dim #

inline size_t dim() const

size #

inline size_t size()

at #

inline const Vector & at(
    size_t n
)

Swap #

inline void Swap(
    Vector & that,
    size_t n
)

Parameters:

  • that input vector
  • n index where the vector is moved

operator= #

inline UniformVectorList & operator=(
    const UniformVectorList & that
)

Parameters:

Return: reference to object


operator= #

inline UniformVectorList & operator=(
    UniformVectorList && that
)

Parameters:

Return: reference to object



Updated on 19 May 2022 at 17:16:04 Eastern Daylight Time