DenseMatrix.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_EXPRESSIONS_DENSEMATRIX_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DENSEMATRIX_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 #include <blaze/system/Inline.h>
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
69 template< typename MT // Type of the dense matrix
70  , bool SO > // Storage order
71 struct DenseMatrix : public Matrix<MT,SO>
72 {};
73 //*************************************************************************************************
74 
75 
76 
77 
78 //=================================================================================================
79 //
80 // GLOBAL FUNCTIONS
81 //
82 //=================================================================================================
83 
84 //*************************************************************************************************
87 template< typename MT, bool SO >
88 BLAZE_ALWAYS_INLINE size_t spacing( const DenseMatrix<MT,SO>& dm ) noexcept;
90 //*************************************************************************************************
91 
92 
93 //*************************************************************************************************
100 template< typename MT // Type of the matrix
101  , bool SO > // Storage order of the matrix
102 BLAZE_ALWAYS_INLINE size_t spacing( const DenseMatrix<MT,SO>& dm ) noexcept
103 {
104  return (~dm).spacing();
105 }
106 //*************************************************************************************************
107 
108 } // namespace blaze
109 
110 #endif
BLAZE_ALWAYS_INLINE size_t spacing(const DenseMatrix< MT, SO > &dm) noexcept
Returns the spacing between the beginning of two rows/columns.
Definition: DenseMatrix.h:102
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:71
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the Matrix base class.
Base class for matrices.The Matrix class is a base class for all dense and sparse matrix classes with...
Definition: Forward.h:94
System settings for the inline keywords.