main content

compute the value of x in the equation ax = b for real-凯发k8网页登录

compute the value of x in the equation ax = b for real-valued matrices using qr decomposition

since r2019b

  • real burst matrix solve using qr decomposition block

libraries:
fixed-point designer hdl support / matrices and linear algebra / linear system solvers

description

the real burst matrix solve using qr decomposition block solves the system of linear equations ax = b using qr decomposition, where a and b are real-valued matrices. to compute x = a-1, set b to be the identity matrix.

when regularization parameter is nonzero, the real burst matrix solve using qr decomposition block computes the matrix solution of real-valued [λina]x=[0n,pb] where λ is the regularization parameter, 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 real matrix a, specified as a vector. a is an m-by-n matrix where m ≥ 2 and mn. 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

rows of real 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

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 matrix x, returned as a scalar or vector.

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 the output port x(i,:) is valid. when this value is 1 (true), the block has successfully computed a row of matrix x. 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

number of rows in input 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

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

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: positive integer-valued scalar
default: 0

data type of the output matrix x, specified as fixdt(1,18,14), double, single, fixdt(1,16,0), or as a user-specified data type expression. the type can be specified directly, or expressed as a data type object such as simulink.numerictype.

programmatic use

block parameter: outputtype
type: character vector
values: 'fixdt(1,18,14)' | 'double' | 'single' | 'fixdt(1,16,0)' | ''
default: 'fixdt(1,18,14)'

tips

use fixed.getmatrixsolvemodel(a,b) to generate a template model containing a real burst matrix solve using qr decomposition block for real-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

    网站地图