[Scipy-svn] r4036 - trunk/scipy/sparse/sparsetools

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Mar 18 08:28:31 EDT 2008


Author: wnbell
Date: 2008-03-18 07:28:26 -0500 (Tue, 18 Mar 2008)
New Revision: 4036

Modified:
   trunk/scipy/sparse/sparsetools/coo.h
   trunk/scipy/sparse/sparsetools/csc.h
Log:
fixed minor sparsetools error


Modified: trunk/scipy/sparse/sparsetools/coo.h
===================================================================
--- trunk/scipy/sparse/sparsetools/coo.h	2008-03-18 11:48:06 UTC (rev 4035)
+++ trunk/scipy/sparse/sparsetools/coo.h	2008-03-18 12:28:26 UTC (rev 4036)
@@ -76,6 +76,17 @@
     //now Bp,Bj,Bx form a CSR representation (with possible duplicates)
 }
 
+template<class I, class T>
+void coo_tocsc(const I n_row,
+      	       const I n_col,
+      	       const I nnz,
+      	       const I Ai[],
+      	       const I Aj[],
+      	       const T Ax[],
+      	             I Bp[],
+      	             I Bi[],
+      	             T Bx[])
+{ coo_tocsr<I,T>(n_col, n_row, nnz, Aj, Ai, Ax, Bp, Bi, Bx); }
 
 /*
  * Compute B += A for COO matrix A, dense matrix B

Modified: trunk/scipy/sparse/sparsetools/csc.h
===================================================================
--- trunk/scipy/sparse/sparsetools/csc.h	2008-03-18 11:48:06 UTC (rev 4035)
+++ trunk/scipy/sparse/sparsetools/csc.h	2008-03-18 12:28:26 UTC (rev 4036)
@@ -97,17 +97,6 @@
 { csr_matmat_pass2(n_col, n_row, Bp, Bi, Bx, Ap, Ai, Ax, Cp, Ci, Cx); }
 
 
-template<class I, class T>
-void coo_tocsc(const I n_row,
-      	       const I n_col,
-      	       const I nnz,
-      	       const I Ai[],
-      	       const I Aj[],
-      	       const T Ax[],
-      	             I Bp[],
-      	             I Bi[],
-      	             T Bx[])
-{ coo_tocsr<I,T>(n_col, n_row, nnz, Aj, Ai, Ax, Bp, Bi, Bx); }
 
 
 




More information about the Scipy-svn mailing list