blaze::IsIdentity< T > Struct Template Reference

Compile time check for identity matrices.This type trait tests whether or not the given template parameter is an identity matrix type (i.e. a matrix type that is guaranteed to be an identity matrix at compile time). In case the type is an identity matrix type, the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType. More...

#include <IsIdentity.h>

Inherits Type< And< IsUniLower< T >, IsUniUpper< T > >, TrueType, FalseType >.

Detailed Description

template<typename T>
struct blaze::IsIdentity< T >

Compile time check for identity matrices.

This type trait tests whether or not the given template parameter is an identity matrix type (i.e. a matrix type that is guaranteed to be an identity matrix at compile time). In case the type is an identity matrix type, the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType.

typedef blaze::DynamicMatrix<float,rowMajor> DynamicMatrixType;
typedef blaze::CompressedMatrix<int,rowMajor> CompressedMatrixType;
typedef blaze::IdentityMatrix<StaticMatrixType> IdentityStaticType;
typedef blaze::IdentityMatrix<DynamicMatrixType> IdentityDynamicType;
typedef blaze::IdentityMatrix<CompressedMatrixType> IdentityCompressedType;
typedef blaze::LowerMatrix<StaticMatrixType> LowerStaticType;
typedef blaze::UpperMatrix<DynamicMatrixType> UpperDynamicType;

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