russell_sparse 2.6.0

Sparse matrix calculations and solvers for linear systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import numpy as np
import scipy.linalg as la

a = np.array([
    [ 2, 3, 0, 0, 0],
    [ 3, 0, 4, 0, 6],
    [ 0,-1,-3, 2, 0],
    [ 0, 0, 1, 0, 0],
    [ 0, 4, 2, 0, 1]
], dtype=float)

print(a)
print(f"determinant(a) = {la.det(a)}")