#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 |
133 typename Matrix::value_type*
a = rhs.Array();
134 typename Matrix::value_type det =
a[0] *
a[3] -
a[2] *
a[1];
136 if (det == 0.) {
return false; }
138 typename Matrix::value_type
s = 1. / det;
139 typename Matrix::value_type c11 =
s *
a[3];
void a()
Definition: check_aligned.C:59
EdbSegP * s
Definition: tlg2pattern.C:32
The documentation for this class was generated from the following file:
- src/libVt++/smatrix/include/Dinv.hh