linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
linalg::mult_rz Interface Reference

Multiplies a general matrix by the orthogonal matrix Z from an RZ factorization. More...

Public Member Functions

 mult_rz_mtx
 
 mult_rz_mtx_cmplx
 
 mult_rz_vec
 
 mult_rz_vec_cmplx
 

Detailed Description

Multiplies a general matrix by the orthogonal matrix Z from an RZ factorization.

Syntax 1
Multiplies a general matrix by the orthogonal matrix Z from an RZ factorization such that: \( C = op(Z) C \) , or \( C = C op(Z) \).
subroutine mult_rz(logical lside, logical trans, integer(int32) l, real(real64) a(:,:), real(real64) tau(:), real(real64) c(:,:), optional real(real64) work(:), optional integer(int32) olwork, optional class(errors) err)
subroutine mult_rz(logical lside, logical trans, integer(int32) l, complex(real64) a(:,:), complex(real64) tau(:), complex(real64) c(:,:), optional complex(real64) work(:), optional integer(int32) olwork, optional class(errors) err)
Parameters
[in]lsideSet to true to apply \( Z \) or \( Z^T \) from the left; else, set to false to apply \( Z \) or \( Z^T \) from the right.
[in]transSet to true to apply \( Z^T \) ( \( Z^H \) in the complex case); else, set to false.
[in]lThe number of columns in matrix a containing the meaningful part of the Householder vectors. If lside is true, M >= L >= 0; else, if lside is false, N >= L >= 0.
[in,out]aOn input the K-by-LTA matrix Z, where LTA = M if lside is true; else, LTA = N if lside is false. The I-th row must contain the Householder vector in the last k rows. Notice, the contents of this matrix are restored on exit.
[in]tauA K-element array containing the scalar factors of the elementary reflectors, where M >= K >= 0 if lside is true; else, N >= K >= 0 if lside is false.
[in,out]cOn input, the M-by-N matrix C. On output, the product of the orthogonal matrix Z and the original matrix C.
[out]workAn optional input, that if provided, prevents any local memory allocation. If not provided, the memory required is allocated within. If provided, the length of the array must be at least olwork.
[out]olworkAn optional output used to determine workspace size. If supplied, the routine determines the optimal size for work, and returns without performing any actual calculations.
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • LA_ARRAY_SIZE_ERROR: Occurs if any of the input arrays are not sized appropriately.
  • LA_OUT_OF_MEMORY_ERROR: Occurs if local memory must be allocated, and there is insufficient memory available.
Syntax 2
Multiplies a general matrix by the orthogonal matrix Z from an RZ factorization such that: \( C = op(Z) C \), or \( C = C op(Z) \).
subroutine mult_rz(logical trans, integer(int32) l, real(real64) a(:,:), real(real64) tau(:), real(real64) c(:), optional real(real64) work(:), optional integer(int32) olwork, optional class(errors) err)
subroutine mult_rz(logical trans, integer(int32) l, complex(real64) a(:,:), complex(real64) tau(:), complex(real64) c(:), optional complex(real64) work(:), optional integer(int32) olwork, optional class(errors) err)
Parameters
[in]transSet to true to apply \( Z^T \) ( \( Z^H \) in the complex case); else, set to false.
[in]lThe number of columns in matrix a containing the meaningful part of the Householder vectors. If lside is true, M >= L >= 0; else, if lside is false, N >= L >= 0.
[in,out]aOn input the K-by-LTA matrix Z, where LTA = M if lside is true; else, LTA = N if lside is false. The I-th row must contain the Householder vector in the last k rows. Notice, the contents of this matrix are restored on exit.
[in]tauA K-element array containing the scalar factors of the elementary reflectors, where M >= K >= 0 if lside is true; else, N >= K >= 0 if lside is false.
[in,out]cOn input, the M-element array C. On output, the product of the orthogonal matrix Z and the original array C.
[out]workAn optional input, that if provided, prevents any local memory allocation. If not provided, the memory required is allocated within. If provided, the length of the array must be at least olwork.
[out]olworkAn optional output used to determine workspace size. If supplied, the routine determines the optimal size for work, and returns without performing any actual calculations.
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • LA_ARRAY_SIZE_ERROR: Occurs if any of the input arrays are not sized appropriately.
  • LA_OUT_OF_MEMORY_ERROR: Occurs if local memory must be allocated, and there is insufficient memory available.
Notes
This routine utilizes the LAPACK routine DORMRZ (ZUNMRZ in the complex case).

Definition at line 2057 of file linalg.f90.


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