Blaze  3.6
InvAdd.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_FUNCTORS_INVADD_H_
36 #define _BLAZE_MATH_FUNCTORS_INVADD_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 //*************************************************************************************************
59 struct InvAdd
60 {
61  //**********************************************************************************************
68  template< typename T1, typename T2 >
69  BLAZE_ALWAYS_INLINE decltype(auto) operator()( const T1& a, const T2& b ) const
70  {
71  return inv( a + b );
72  }
73  //**********************************************************************************************
74 };
75 //*************************************************************************************************
76 
77 } // namespace blaze
78 
79 #endif
Header file for the invert shim.
Generic wrapper for the inverted addition operator.
Definition: InvAdd.h:59
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
decltype(auto) inv(const DenseMatrix< MT, SO > &dm)
Calculation of the inverse of the given dense matrix.
Definition: DMatInvExpr.h:423
System settings for the inline keywords.