![]() |
Blaze 3.9
|
Base template for the KronTrait class. More...
#include <KronTrait.h>
Inherits decltype evalKronTrait std::declval< T1 & >, and std::declval< T2 & >.
Base template for the KronTrait class.
The KronTrait class template offers the possibility to select the resulting data type of a generic Kronecker product operation between the two given types T1 and T2. KronTrait defines the nested type Type, which represents the resulting data type of the Kronecker product. In case T1 and T2 cannot be combined in a Kronecker product, there is no nested type Type. Note that const and volatile qualifiers and reference modifiers are generally ignored.
Per default, KronTrait supports all vector and matrix types of the Blaze library (including views and adaptors). For all other data types it is possible to specialize the KronTrait template. The following example shows the according specialization for the Kronecker product between two static matrices with equal storage order:
The following example demonstrates the use of the KronTrait template, where depending on the two given data types the resulting data type is selected: