Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
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
43
#include <
blaze/math/sparse/IdentityMatrix.h
>
44
#include <
blaze/math/CompressedMatrix.h
>
45
#include <
blaze/math/CompressedVector.h
>
46
#include <
blaze/util/Random.h
>
47
#include <
blaze/util/Types.h
>
48
49
50
namespace
blaze {
51
52
//=================================================================================================
53
//
54
// RAND SPECIALIZATION
55
//
56
//=================================================================================================
57
58
//*************************************************************************************************
65
template
<
typename
Type
// Data type of the matrix
66
,
bool
SO
// Storage order
67
,
typename
Tag >
// Type tag
68
class
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
CompressedMatrix.h
Header file for the complete CompressedMatrix implementation.
CompressedVector.h
Header file for the complete CompressedVector implementation.
blaze::IdentityMatrix
Efficient implementation of an identity matrix.
Definition
IdentityMatrix.h:197
blaze::IdentityMatrix::IdentityMatrix
constexpr IdentityMatrix() noexcept
The default constructor for IdentityMatrix.
Definition
IdentityMatrix.h:517
blaze::Rand
Default implementation of the Rand class.
Definition
Random.h:230
blaze::Type
blaze::generate
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
IdentityMatrix.h
Implementation of an identity matrix.
Random.h
Implementation of a random number generator.
Types.h
Header file for basic type definitions.
Generated by
1.18.0