NULAPACK
NUmerical Linear Algebra PACKage
Loading...
Searching...
No Matches
Functions
python.crout Namespace Reference

Functions

 crout (np.ndarray a)
 

Function Documentation

◆ crout()

python.crout.crout ( np.ndarray  a)
Compute the LU Crout decomposition of a general matrix A.

Parameters
----------
a : ndarray
    Coefficient matrix (n x n) stored as a full matrix.

Returns
-------
L : ndarray
    Lower triangular matrix from the factorization.
U : ndarray
    Upper triangular matrix from the factorization (with ones on diagonal).
info : int
    0 if success, <0 if a zero diagonal in L was detected.

Definition at line 33 of file crout.py.