main content

qr decomposition for complex-凯发k8网页登录

qr decomposition for complex-valued matrices

since r2019b

  • complex burst qr decomposition block

libraries:
fixed-point designer hdl support / matrices and linear algebra / matrix factorizations

description

the complex burst qr decomposition block uses qr decomposition to compute r and c = q'b, where qr = a, and a and b are complex-valued matrices. the least-squares solution to ax = b is x = r\c. r is an upper triangular matrix and q is an orthogonal matrix. to compute c = q', set b to be the identity matrix.

when regularization parameter is nonzero, the complex burst qr decomposition block transforms [λina] in-place to r=q'[λina] and [0n,pb] in-place to c=q'[0n,pb] where λ is the regularization parameter, qr is the economy size qr decomposition of [λina], a is an m-by-n matrix, p is the number of columns in b, in = eye(n), and 0n,p = zeros(n,p).

examples

ports

input

rows of matrix a, specified as a vector. a is an m-by-n matrix where m ≥ 2 and n ≥ 2. if b is single or double, a must be the same data type as b. if a is a fixed-point data type, a must be signed, use binary-point scaling, and have the same word length as b. slope-bias representation is not supported for fixed-point data types.

data types: single | double | fixed point
complex number support: yes

rows of matrix b, specified as a vector. b is an m-by-p matrix where m ≥ 2. if a is single or double, b must be the same data type as a. if b is a fixed-point data type, b must be signed, use binary-point scaling, and have the same word length as a. slope-bias representation is not supported for fixed-point data types.

data types: single | double | fixed point
complex number support: yes

whether inputs are valid, specified as a boolean scalar. this control signal indicates when the data from the a(i,:) and b(i,:) input ports are valid. when this value is 1 (true) and the value at ready is 1 (true), the block captures the values on the a(i,:) and b(i,:) input ports. when this value is 0 (false), the block ignores the input samples.

after sending a true validin signal, there may be some delay before ready is set to false. to ensure all data is processed, you must wait until ready is set to false before sending another true validin signal.

data types: boolean

whether to clear internal states, specified as a boolean scalar. when this value is 1 (true), the block stops the current calculation and clears all internal states. when this value is 0 (false), and the validin value is 1 (true), the block begins a new subframe.

data types: boolean

output

rows of the economy size qr decomposition matrix r, returned as a scalar or vector. r is an upper triangular matrix. the size of the matrix r is min(m,n)-by-n. r has the same data type as a.

data types: single | double | fixed point

rows of the economy size qr decomposition matrix c=q'b, returned as a scalar or vector. c has the same number of rows as r. c has the same data type as b.

data types: single | double | fixed point

whether the output data is valid, returned as a boolean scalar. this control signal indicates when the data at output ports r(i,:) and c(i,:) is valid. when this value is 1 (true), the block has successfully computed the r and c matrices. when this value is 0 (false), the output data is not valid.

data types: boolean

whether the block is ready, returned as a boolean scalar. this control signal indicates when the block is ready for new input data. when this value is 1 (true), and the validin value is 1 (true), the block accepts input data in the next time step. when this value is 0 (false), the block ignores input data in the next time step.

after sending a true validin signal, there may be some delay before ready is set to false. to ensure all data is processed, you must wait until ready is set to false before sending another true validin signal.

data types: boolean

parameters

the number of rows in matrices a and b, specified as a positive integer-valued scalar.

programmatic use

block parameter: m
type: character vector
values: positive integer-valued scalar
default: 4

the number of columns in input matrix a, specified as a positive integer-valued scalar.

programmatic use

block parameter: n
type: character vector
values: positive integer-valued scalar
default: 4

the number of columns in input matrix b, specified as a positive integer-valued scalar.

programmatic use

block parameter: p
type: character vector
values: positive integer-valued scalar
default: 1

regularization parameter, specified as a nonnegative scalar. small, positive values of the regularization parameter can improve the conditioning of the problem and reduce the variance of the estimates. while biased, the reduced variance of the estimate often results in a smaller mean squared error when compared to least-squares estimates.

programmatic use

block parameter: regularizationparameter
type: character vector
values: real nonnegative scalar
default: 0

tips

use fixed.getqrdecompositionmodel(a,b) to generate a template model containing a complex burst qr decomposition block for complex-valued input matrices a and b.

algorithms

references

[1] "amba axi and ace protocol specification version e."

extended capabilities

version history

introduced in r2019b

see also

blocks

  • | |

functions

topics

    网站地图