Download Help (Windows Only) 
Owning Class: linalgebra
Requires: MathScript RT Module
[S, T, Q, Z] = qz(A, B)
[S, T, Q, Z] = qz(A, B, type)
[S, T, Q, Z, R, L] = qz(A, B)
[S, T, Q, Z, R, L] = qz(A, B, type)
Performs the QZ decomposition of a pair of square matrices.
Name  Description  

A  Specifies a square matrix.  
B  Specifies a square matrix of the same size as A.  
type  Specifies the type of decomposition to perform.

Name  Description 

S  Returns an upper triangular matrix of the same size as A. If type is 'real', S returns a quasiupper triangular matrix of the same size as A. 
T  Returns an upper triangular matrix of the same size as A. 
Q  Returns a unitary matrix of the same size as A. 
Z  Returns a unitary matrix of the same size as A. 
R  Returns the right generalized eigenvectors. 
L  Returns the left generalized eigenvectors. 
qz performs the QZ decomposition of a matrix pair (A, B) such that Q*A*Z = S and Q*B*Z = T, where Q and Z are unitary matrices, and S and T are upper triangular matrices. The matrix pair (S, T) has the same generalized eigenvalues as the matrix pair (A, B). If S is an upper triangular matrix, the diagonal elements of S and T are the numerators and denominators, respectively, of the generalized eigenvalues of the matrix pair (A, B).
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
A = reshapemx(1:16, 4, 4);
B = magic(4);
[S, T, Q, Z] = qz(A, B)