|
<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Functor for data creation. More...
#include <arrayTraits.hpp>
Public Member Functions | |
| template<class T , class idx_t > | |
| constexpr auto | operator() (std::vector< T > &v, idx_t m, idx_t n=1) const |
| Creates a m-by-n matrix with entries of type T. | |
| template<class T , class idx_t > | |
| constexpr auto | operator() (std::vector< T > &v, idx_t n) const |
| Creates a vector of size n with entries of type T. | |
Functor for data creation.
This is a boilerplate. It must be specialized for each class. See tlapack::Create for examples of usage.
| matrix_t | Data structure. |
| class | If this is not an int, then the trait is not defined. |
|
inlineconstexpr |
Creates a m-by-n matrix with entries of type T.
| [in,out] | v | On entry, empty vector with size 0. On exit, vector that may contain allocated memory. |
| [in] | m | Number of rows of the new matrix |
| [in] | n | Number of columns of the new matrix |
|
inlineconstexpr |
Creates a vector of size n with entries of type T.
| [out] | v | On entry, empty vector with size 0. On exit, vector that may contain allocated memory. |
| [in] | n | Size of the new vector |