<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
tlapack::traits::CreateStaticFunctor< matrix_t, m, n, class > Struct Template Reference

Functor for data creation with static size. More...

#include <arrayTraits.hpp>

Public Member Functions

template<typename T >
constexpr auto operator() (T *v) const
 Creates a m-by-n matrix or, if n == -1, a vector of size m.
 

Detailed Description

template<class matrix_t, int m, int n, class = int>
struct tlapack::traits::CreateStaticFunctor< matrix_t, m, n, class >

Functor for data creation with static size.

This is a boilerplate. It must be specialized for each class. See tlapack::Create for examples of usage.

Template Parameters
matrix_tData structure.
mNumber of rows of the new matrix or number of elements of the new vector. m >= 0.
nNumber of columns of the new matrix. If n == -1 then the functor creates a vector of size m. Otherwise, n >= 0.
classIf this is not an int, then the trait is not defined.

Member Function Documentation

◆ operator()()

template<class matrix_t , int m, int n, class = int>
template<typename T >
constexpr auto tlapack::traits::CreateStaticFunctor< matrix_t, m, n, class >::operator() ( T *  v) const
inlineconstexpr

Creates a m-by-n matrix or, if n == -1, a vector of size m.

Template Parameters
TEntry type.
Parameters
[in]vPointer to the memory that may be used to store the matrix or vector.
Returns
The new m-by-n matrix or vector of size m

The documentation for this struct was generated from the following file: