]> granicus.if.org Git - graphviz/commitdiff
new
authoryifanhu <devnull@localhost>
Thu, 11 Oct 2007 12:20:42 +0000 (12:20 +0000)
committeryifanhu <devnull@localhost>
Thu, 11 Oct 2007 12:20:42 +0000 (12:20 +0000)
lib/sfdpgen/SparseMatrix.h [new file with mode: 0644]

diff --git a/lib/sfdpgen/SparseMatrix.h b/lib/sfdpgen/SparseMatrix.h
new file mode 100644 (file)
index 0000000..c803344
--- /dev/null
@@ -0,0 +1,12 @@
+struct {
+  int m; /* row dimension */
+  int n; /* column dimension */
+  int nz; /* the current length of ja and a (if exists) allocated. The actual length used is ia[m] */
+  int type; /* whether it is real/complex matrix, or pattern only */
+  int *ia; /* row pointer */
+  int *ja; /* column indices. 1-based */
+  real *a; /* entry values. If NULL, pattern matrix */
+} SparseMatrix_struct;
+
+typedef SparseMatrix_struct* SparseMatrix;
+