#include <Dinv.hh>
|
template<class Matrix > |
static bool | Dinv (Matrix &rhs) |
|
Invert<2>. $2\times2$ (sub-)matrix. Use Cramers rule.
- Author
- T. Glebe
◆ Dinv()
template<class Matrix >
static bool Invert< 2 >::Dinv |
( |
Matrix & |
rhs | ) |
|
|
inlinestatic |
131 {
132
133 typename Matrix::value_type*
a = rhs.Array();
134 typename Matrix::value_type det =
a[0] *
a[3] -
a[2] *
a[1];
135
136 if (det == 0.) { return false; }
137
138 typename Matrix::value_type
s = 1. / det;
139 typename Matrix::value_type c11 =
s *
a[3];
140
145 return true;
146 }
void a()
Definition: check_aligned.C:59
s
Definition: check_shower.C:55
The documentation for this class was generated from the following file:
- /home/antonio/fedra_doxygen/src/libVt++/smatrix/include/Dinv.hh