Skip to main content

triangular_solve_matrix_in

Function triangular_solve_matrix_in 

Source
pub fn triangular_solve_matrix_in<T>(
    session: &mut dyn Engine,
    a: &Matrix<T>,
    b: &Matrix<T>,
    left_side: bool,
    lower: bool,
    transpose_a: bool,
    unit_diagonal: bool,
) -> Result<Matrix<T>, BackendLinalgError>
Expand description

Solve a triangular system on a caller-held engine.

Same kernel, conversion and validation as triangular_solve_matrix, entered through the given engine instead of the process-global context. Per scalar type: f64 and Complex64 are solved directly; f32 and Complex32 are promoted to f64 / Complex64, solved, and narrowed back, exactly as on the global route. The two routes therefore return bitwise identical results for all four types.

ยงErrors

Returns BackendLinalgError under the same conditions as triangular_solve_matrix.