CHROMA
Public Member Functions | Private Attributes | List of all members
Chroma::Givens Class Reference

#include <syssolver_linop_fgmres_dr.h>

Public Member Functions

 Givens (int col, const multi2d< DComplex > &H)
 
void operator() (int col, multi2d< DComplex > &H)
 
void operator() (multi1d< DComplex > &v)
 

Private Attributes

int col_
 
DComplex s_
 
DComplex c_
 
DComplex r_
 

Detailed Description

Definition at line 31 of file syssolver_linop_fgmres_dr.h.

Constructor & Destructor Documentation

◆ Givens()

Chroma::Givens::Givens ( int  col,
const multi2d< DComplex > &  H 
)
inline

Given a marix H, construct the rotator so that H(row,col) = r and H(row+1,col) = 0

Parameters
colthe column Input
Hthe Matrix Input

Definition at line 84 of file syssolver_linop_fgmres_dr.h.

References c_, col_, r_, s_, and t.

Member Function Documentation

◆ operator()() [1/2]

void Chroma::Givens::operator() ( int  col,
multi2d< DComplex > &  H 
)
inline

Apply the rotation to column col of the matrix H. The routine affects col and col+1.

Parameters
colthe columm
Hthe matrix

Definition at line 119 of file syssolver_linop_fgmres_dr.h.

References Chroma::a, Chroma::b, c_, col_, r_, and s_.

◆ operator()() [2/2]

void Chroma::Givens::operator() ( multi1d< DComplex > &  v)
inline

Apply rotation to Column Vector v

Definition at line 135 of file syssolver_linop_fgmres_dr.h.

References Chroma::a, Chroma::b, c_, col_, and s_.

Member Data Documentation

◆ c_

DComplex Chroma::Givens::c_
private

Definition at line 146 of file syssolver_linop_fgmres_dr.h.

Referenced by Givens(), and operator()().

◆ col_

int Chroma::Givens::col_
private

Definition at line 144 of file syssolver_linop_fgmres_dr.h.

Referenced by Givens(), and operator()().

◆ r_

DComplex Chroma::Givens::r_
private

Definition at line 147 of file syssolver_linop_fgmres_dr.h.

Referenced by Givens(), and operator()().

◆ s_

DComplex Chroma::Givens::s_
private

Definition at line 145 of file syssolver_linop_fgmres_dr.h.

Referenced by Givens(), and operator()().


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