fixed.qrFixedpointTypes
Determine fixed-point types for transforming A and R and B to C=Q'B in-place, where QR=A is QR decomposition of A
Since R2021b
Syntax
Description
returns fixed-point types for A and B that guarantee
no overflow will occur in the QR algorithm.T = fixed.qrFixedpointTypes(m,max_abs_A,max_abs_B,precisionBits)
The QR algorithm transforms A in-place into upper-triangular R and transforms B in-place into C=Q'B, where QR=A is the QR decomposition of A.
returns fixed-point types for transforming in-place to and in-place to where λ is the
T = fixed.qrFixedpointTypes(m,max_abs_A,max_abs_B,precisionBits,regularizationParameter)regularizationParameter, QR is the economy size QR
decomposition of , A is an m-by-n
matrix, p is the number of columns in B,
In =
eye(n), and
0n,p =
zeros(n,p).
regularizationParameter is an optional parameter. If not supplied or
empty, then the default value is used.
specifies the maximum word length of the fixed-point types.
T = fixed.qrFixedpointTypes(___,maxWordLength)maxWordLength is an optional parameter. If not supplied or empty,
then the default value is used.
Examples
Input Arguments
Output Arguments
Tips
Use fixed.qrFixedpointTypes to compute fixed-point types for the
inputs of these functions and blocks.
Algorithms
The number of integer bits required to prevent overflow is derived from the following
bounds on the growth of R and C=Q'B [1]. The required number of integer bits is added to the number of bits of
precision, precisionBits, of the input, plus one for the sign bit, plus
one bit for intermediate CORDIC gain of approximately 1.6468 [2].
The elements of R are bounded in magnitude by
The elements of C=Q'B are bounded in magnitude by
References
[2] Voler, Jack E. "The CORDIC Trigonometric Computing Technique." IRE Transactions on Electronic Computers EC-8 (1959): 330-334.