TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::lapack::gelss_worker_hermitian

#include <nda/lapack/gelss_worker.hpp>

Detailed Description

Worker class for solving linear least square problems for hermitian tail-fitting.

Restrict the resulting vector of moment matrices to one of hermitian matrices.

See also nda::lapack::gelss_worker.

Definition at line 165 of file gelss_worker.hpp.

Public Member Functions

 gelss_worker_hermitian (matrix< dcomplex > A_)
 Construct a new worker object for a given matrix \( \mathbf{A} \).
 
int n_var () const
 Get the number of variables of the given problem.
 
std::pair< matrix< dcomplex >, double > operator() (matrix_const_view< dcomplex > B, std::optional< long > inner_matrix_dim={}) const
 Solve the least-square problem for a given right hand side matrix \( \mathbf{B} \).
 
array< double, 1 > const & S_vec () const
 Get the singular value array.
 

Constructor & Destructor Documentation

◆ gelss_worker_hermitian()

nda::lapack::gelss_worker_hermitian::gelss_worker_hermitian ( matrix< dcomplex > A_)
inline

Construct a new worker object for a given matrix \( \mathbf{A} \).

Parameters
A_Matrix to be decomposed by SVD.

Definition at line 196 of file gelss_worker.hpp.

Member Function Documentation

◆ n_var()

int nda::lapack::gelss_worker_hermitian::n_var ( ) const
inline

Get the number of variables of the given problem.

Returns
Number of columns of the matrix \( \mathbf{A} \).

Definition at line 184 of file gelss_worker.hpp.

◆ operator()()

std::pair< matrix< dcomplex >, double > nda::lapack::gelss_worker_hermitian::operator() ( matrix_const_view< dcomplex > B,
std::optional< long > inner_matrix_dim = {} ) const
inline

Solve the least-square problem for a given right hand side matrix \( \mathbf{B} \).

Parameters
BRight hand side matrix.
inner_matrix_dimInner matrix dimension for hermitian least square fitting.
Returns
A std::pair containing the solution matrix \( \mathbf{X} \) and the error of the least square problem.

Definition at line 204 of file gelss_worker.hpp.

◆ S_vec()

array< double, 1 > const & nda::lapack::gelss_worker_hermitian::S_vec ( ) const
inline

Get the singular value array.

Returns
1-dimensional array containing the singular values.

Definition at line 190 of file gelss_worker.hpp.


The documentation for this struct was generated from the following file: