# Solve Linear Equations (Multiple) (G Dataflow)

Solves a triangular matrix problem with multiple right-hand sides.

## side

Position of A in the linear equation.

Name Value Description
Left 1 This node solves the linear equation op(A) * trsm = alpha * B, where trsm represents dtrsm or ztrsm.
Right 0 This node solves the linear equation trsm * op(A) = alpha * B, where trsm represents dtrsm or ztrsm.

Default: Left

## operation A

Operation this node performs on A.

Name Value Description
Direct 0 op(A) = A
Conjugated and Transposed 1 op(A) = conjugate transpose of A
Transposed 2 op(A) = transpose of A

Default: Direct

## A

Triangular matrix of at least K rows and K columns.

This node uses the first K rows and K columns in op(A) for the calculation.

This input accepts the following data types:

• 2D array of double-precision, floating-point numbers
• 2D array of complex double-precision, floating-point numbers

## B

K × N matrix, if side is Left, or N × K matrix, if side is Right.

This input accepts the following data types:

• 2D array of double-precision, floating-point numbers
• 2D array of complex double-precision, floating-point numbers

## matrix A type

Triangular matrix type of A.

Name Value Description
Lower Triangular 2 A is a lower triangular matrix.
Upper Triangular 3 A is an upper triangular matrix.

Default: Upper Triangular

## error in

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

## alpha

Scalar that scales B.

This input accepts the following data types:

• Double-precision, floating-point numbers
• Complex double-precision, floating-point numbers

Default: The default value is 1 if alpha is a double-precision, floating-point number. The default value is 1+0i if alpha is a complex double-precision, floating-point number.

## diagonal

Value that determines how to use the diagonal elements of A.

Name Value Description
Non-unit 0 Uses the original diagonal elements of A.
Unit 1 Uses 1 as the value for all diagonal elements of A.

Default: Non-unit

## dtrsm

Matrix of the same size as B.

If side is Left, this output returns the result of op(A) * dtrsm = alpha * B solved for dtrsm. If side is Right, this output returns the result of dtrsm * op(A) = alpha * B solved for dtrsm.

This input is available only if you wire a 2D array of double-precision, floating-point numbers to A or B.

## ztrsm

Matrix of the same size as B.

If side is Left, this output returns the result of op(A) * ztrsm = alpha * B solved for ztrsm. If side is Right, this output returns the result of ztrsm * op(A) = alpha * B solved for ztrsm.

This input is available only if you wire a 2D array of complex double-precision, floating-point numbers to A or B.

## error out

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

Web Server: Not supported in VIs that run in a web application