NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
numerical::detail::qz_form Struct Reference

A complex pencil in generalized Schur form being formed: S and T (n × n, row-major) with A = Q S Zᴴ and B = Q T Zᴴ, Q and Z unitary (qt, zt). More...

#include <generalized.hpp>

Public Member Functions

std::complex< double > & h (std::size_t i, std::size_t j)
 S(i, j), from 1.
 
std::complex< double > & b (std::size_t i, std::size_t j)
 T(i, j), from 1.
 

Static Public Member Functions

static void rotate_rows (buffer< std::complex< double > > &m, std::size_t n, std::size_t i, std::size_t first, std::size_t last, double c, const std::complex< double > &sine)
 Rows i and i + 1 (from 1) of m over the columns from first (from 1) to last.
 
static void rotate_columns (buffer< std::complex< double > > &m, std::size_t n, std::size_t j, std::size_t k, std::size_t first, std::size_t last, double c, const std::complex< double > &sine)
 Columns j and k (from 1) of m over the rows from first to last (from 1), first ≤ last: every caller's span holds a row (its last a column index of at least 1).
 
static void rotate_vectors (buffer< std::complex< double > > &mt, std::size_t n, std::size_t j, std::size_t k, double c, const std::complex< double > &sine)
 Columns j and k (from 1) of Q or Z whole, rows j and k of mt, its transpose: rotate_columns's arithmetic, each column contiguous.
 

Public Attributes

std::size_t n {0}
 The order.
 
buffer< std::complex< double > > s
 S, upper Hessenberg, then triangular.
 
buffer< std::complex< double > > t
 T, upper triangular.
 
buffer< std::complex< double > > qt
 Qᵀ by rows: Q's columns, each contiguous for the rotations.
 
buffer< std::complex< double > > zt
 Zᵀ by rows.
 

Detailed Description

A complex pencil in generalized Schur form being formed: S and T (n × n, row-major) with A = Q S Zᴴ and B = Q T Zᴴ, Q and Z unitary (qt, zt).

Definition at line 44 of file generalized.hpp.

Member Function Documentation

◆ b()

std::complex< double > & numerical::detail::qz_form::b ( std::size_t  i,
std::size_t  j 
)
inline

T(i, j), from 1.

Definition at line 60 of file generalized.hpp.

◆ h()

std::complex< double > & numerical::detail::qz_form::h ( std::size_t  i,
std::size_t  j 
)
inline

S(i, j), from 1.

Definition at line 53 of file generalized.hpp.

◆ rotate_columns()

static void numerical::detail::qz_form::rotate_columns ( buffer< std::complex< double > > &  m,
std::size_t  n,
std::size_t  j,
std::size_t  k,
std::size_t  first,
std::size_t  last,
double  c,
const std::complex< double > &  sine 
)
inlinestatic

Columns j and k (from 1) of m over the rows from first to last (from 1), first ≤ last: every caller's span holds a row (its last a column index of at least 1).

Definition at line 82 of file generalized.hpp.

◆ rotate_rows()

static void numerical::detail::qz_form::rotate_rows ( buffer< std::complex< double > > &  m,
std::size_t  n,
std::size_t  i,
std::size_t  first,
std::size_t  last,
double  c,
const std::complex< double > &  sine 
)
inlinestatic

Rows i and i + 1 (from 1) of m over the columns from first (from 1) to last.

Definition at line 67 of file generalized.hpp.

◆ rotate_vectors()

static void numerical::detail::qz_form::rotate_vectors ( buffer< std::complex< double > > &  mt,
std::size_t  n,
std::size_t  j,
std::size_t  k,
double  c,
const std::complex< double > &  sine 
)
inlinestatic

Columns j and k (from 1) of Q or Z whole, rows j and k of mt, its transpose: rotate_columns's arithmetic, each column contiguous.

Definition at line 96 of file generalized.hpp.

Member Data Documentation

◆ n

std::size_t numerical::detail::qz_form::n {0}

The order.

Definition at line 46 of file generalized.hpp.

◆ qt

buffer<std::complex<double> > numerical::detail::qz_form::qt

Qᵀ by rows: Q's columns, each contiguous for the rotations.

Definition at line 49 of file generalized.hpp.

◆ s

buffer<std::complex<double> > numerical::detail::qz_form::s

S, upper Hessenberg, then triangular.

Definition at line 47 of file generalized.hpp.

◆ t

buffer<std::complex<double> > numerical::detail::qz_form::t

T, upper triangular.

Definition at line 48 of file generalized.hpp.

◆ zt

buffer<std::complex<double> > numerical::detail::qz_form::zt

Zᵀ by rows.

Definition at line 50 of file generalized.hpp.


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