Blaze 3.9
IdentityMatrix.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_IDENTITYMATRIX_H_
36#define _BLAZE_MATH_IDENTITYMATRIX_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
46#include <blaze/util/Random.h>
47#include <blaze/util/Types.h>
48
49
50namespace blaze {
51
52//=================================================================================================
53//
54// RAND SPECIALIZATION
55//
56//=================================================================================================
57
58//*************************************************************************************************
65template< typename Type // Data type of the matrix
66 , bool SO // Storage order
67 , typename Tag > // Type tag
68class Rand< IdentityMatrix<Type,SO,Tag> >
69{
70 public:
71 //**********************************************************************************************
77 inline const IdentityMatrix<Type,SO,Tag> generate( size_t n ) const
78 {
79 return IdentityMatrix<Type,SO,Tag>( n );
80 }
81 //**********************************************************************************************
82};
84//*************************************************************************************************
85
86} // namespace blaze
87
88#endif
Header file for the complete CompressedMatrix implementation.
Header file for the complete CompressedVector implementation.
decltype(auto) generate(size_t m, size_t n, OP op)
Generates a new dense matrix filled via the given custom binary operation.
Definition: DMatGenExpr.h:675
Implementation of an identity matrix.
Implementation of a random number generator.
Header file for basic type definitions.