Skip to content

Commit a38d8ef

Browse files
author
counterclocker
committed
added CSCSparseMatrix
1 parent 2a7ecec commit a38d8ef

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

examples/csc_mat.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from sparse_lib.sparse.ll_mat import MakeLLSparseMatrix
2+
3+
import sys
4+
5+
ll_mat = MakeLLSparseMatrix(nrow=3, ncol=4)
6+
ll_mat[0, 0] = 3.4
7+
ll_mat[0, 1] = 3.7
8+
ll_mat[1, 0] = 2.8
9+
ll_mat[2, 2] = 4
10+
ll_mat[2, 3] = -10.4
11+
12+
13+
ll_mat.print_to(sys.stdout)
14+
15+
csc_mat = ll_mat.to_csc()
16+
17+
csc_mat.debug_print()

examples/umfpack.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@
1212
solver = umfpack.UmfpackSolver(matrix)
1313

1414
print solver.UMFPACK_VERSION
15+
16+
solver.create_symbolic()
17+
solver.create_numeric()
18+
19+
solver.report_control()
20+
21+
solver.report_info()

sparse_lib/sparse/csc_mat.pxd

Whitespace-only changes.

0 commit comments

Comments
 (0)