Docs/Sparse Direct Solver (SuperLU)/slu.solvers.solveMultipleRHS
Back to Sparse Direct Solver (SuperLU)

slu.solvers.solveMultipleRHS

Solve a sparse linear system AX = B with multiple right-hand sides.

Syntax

slu.solvers.solveMultipleRHS(A, B, nrhs, options?)

Description

Solve a sparse linear system AX = B with multiple right-hand sides. This function efficiently solves for multiple right-hand sides at once, which is more efficient than calling solveSparseCSC multiple times when the matrix A is the same for all systems.

Parameters

NameDescription
A- Sparse matrix in CSC format
B- Right-hand side matrix (column-major, m x nrhs)
nrhs- Number of right-hand sides (columns in B)
options(optional)- Solver options

Returns

BatchSolveResult