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