solveLinearSystem

Solves a system of linear equations Ax = B using Gaussian elimination with partial pivoting.

Return

The solution matrix X such that Ax = B.

Parameters

a

The coefficient matrix A.

b

The right-hand side matrix B.

Throws

if the matrix is singular or not square.