Auxiliary data structure for compatibility of symmetric matrix.
More...
#include <JKatoomba_t.hh>
|
void | resize (const size_t size) |
| Resize matrix. More...
|
|
void | reset () |
| Set matrix to the null matrix. More...
|
|
void | invert () |
| Invert matrix according SVD decomposition. More...
|
|
template<class JVectorND_t > |
void | solve (JVectorND_t &u) |
| Get solution of equation A x = b . More...
|
|
Auxiliary data structure for compatibility of symmetric matrix.
Inversion is based on SVD algorithm.
Definition at line 356 of file JKatoomba_t.hh.
◆ resize()
void JACOUSTICS::TMatrixDS::resize |
( |
const size_t |
size | ) |
|
|
inline |
Resize matrix.
Definition at line 364 of file JKatoomba_t.hh.
366 ResizeTo(size, size);
◆ reset()
void JACOUSTICS::TMatrixDS::reset |
( |
| ) |
|
|
inline |
◆ invert()
void JACOUSTICS::TMatrixDS::invert |
( |
| ) |
|
|
inline |
Invert matrix according SVD decomposition.
Definition at line 380 of file JKatoomba_t.hh.
385 unique_lock<mutex> lock(
mtx);
391 static_cast<TMatrixD&
>(*this) = svd.Invert(status);
static std::mutex mtx
TDecompSVD.
static constexpr double TOLERANCE
Tolerance for SVD.
◆ solve()
template<class JVectorND_t >
void JACOUSTICS::TMatrixDS::solve |
( |
JVectorND_t & |
u | ) |
|
|
inline |
Get solution of equation A x = b
.
- Parameters
-
u | column vector; b on input, x on output(I/O) |
Definition at line 400 of file JKatoomba_t.hh.
405 unique_lock<mutex> lock(
mtx);
409 TVectorD b(
u.size());
411 for (
size_t i = 0; i !=
u.size(); ++i) {
417 for (
size_t i = 0; i !=
u.size(); ++i) {
◆ TOLERANCE
constexpr double JACOUSTICS::TMatrixDS::TOLERANCE = 1.0e-8 |
|
staticconstexpr |
◆ mtx
std::mutex JACOUSTICS::TMatrixDS::mtx |
|
static |
The documentation for this struct was generated from the following files: