Calculates the rank-2 update of the upper or lower triangular component of a symmetric matrix.
N-element vector.
Input vector.
y must be the same size as x.
Symmetric matrix.
A must have dimensions greater than or equal to N × N, where N is the number of elements in x. If A is an empty matrix, this node initializes A to be an N × N matrix with all elements set to 0.
Triangular component of A that this node uses for the calculation.
Name | Value | Description |
---|---|---|
Lower Triangular | 2 | Uses the lower triangular component of A for the calculation. |
Upper Triangular | 3 | Uses the upper triangular component of A for the calculation. |
Default: Upper Triangular
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Scalar that scales x * y^{T} and y * x^{T}, where x^{T} and y^{T} represent x transposed and y transposed, respectively.
Default: 1
Matrix of the same dimensions as A.
For elements in the first N rows and N columns of the triangular component you select in matrix A type, dsyr2 returns the result of alpha * x * y^{T} + alpha * y * x^{T} + A, where x^{T} and y^{T} represent x and y transposed, respectively. For any remaining elements, dsyr2 returns the value of the element in A with the same index.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices