- Copyright
- Copyright (c) 2012-2024, OpenGeoSys Community (http://www.opengeosys.org) Distributed under a Modified BSD License. See accompanying file LICENSE.txt or http://www.opengeosys.org/project/license
Definition in file MatrixVectorTraits.h.
Go to the source code of this file.
◆ SPECIALIZE_MATRIX_VECTOR_TRAITS
#define SPECIALIZE_MATRIX_VECTOR_TRAITS |
( |
| MATVEC, |
|
|
| IDX ) |
Value: template <> \
struct MatrixVectorTraits<MATVEC> \
{ \
using Index = IDX; \
static std::unique_ptr<MATVEC> newInstance(); \
static std::unique_ptr<MATVEC> newInstance(MATVEC const& A); \
static std::unique_ptr<MATVEC> newInstance( \
MatrixSpecifications const& spec); \
static std::unique_ptr<MATVEC> newInstance(Index const length); \
};
Definition at line 23 of file MatrixVectorTraits.h.
23#define SPECIALIZE_MATRIX_VECTOR_TRAITS(MATVEC, IDX) \
24 template <> \
25 struct MatrixVectorTraits<MATVEC> \
26 { \
27 using Index = IDX; \
28 static std::unique_ptr<MATVEC> newInstance(); \
29 static std::unique_ptr<MATVEC> newInstance(MATVEC const& A); \
30 static std::unique_ptr<MATVEC> newInstance( \
31 MatrixSpecifications const& spec); \
32 static std::unique_ptr<MATVEC> newInstance(Index const length); \
33 };