summaryrefslogtreecommitdiff
path: root/packages/base/src/Numeric/Sparse.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base/src/Numeric/Sparse.hs')
-rw-r--r--packages/base/src/Numeric/Sparse.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/base/src/Numeric/Sparse.hs b/packages/base/src/Numeric/Sparse.hs
index f1516ec..d856287 100644
--- a/packages/base/src/Numeric/Sparse.hs
+++ b/packages/base/src/Numeric/Sparse.hs
@@ -195,10 +195,12 @@ toDense asm = assoc (r+1,c+1) 0 asm
195instance Transposable CSR CSC 195instance Transposable CSR CSC
196 where 196 where
197 tr (CSR vs cs rs n m) = CSC vs cs rs m n 197 tr (CSR vs cs rs n m) = CSC vs cs rs m n
198 tr' = tr
198 199
199instance Transposable CSC CSR 200instance Transposable CSC CSR
200 where 201 where
201 tr (CSC vs rs cs n m) = CSR vs rs cs m n 202 tr (CSC vs rs cs n m) = CSR vs rs cs m n
203 tr' = tr
202 204
203instance Transposable GMatrix GMatrix 205instance Transposable GMatrix GMatrix
204 where 206 where
@@ -206,5 +208,5 @@ instance Transposable GMatrix GMatrix
206 tr (SparseC s n m) = SparseR (tr s) m n 208 tr (SparseC s n m) = SparseR (tr s) m n
207 tr (Diag v n m) = Diag v m n 209 tr (Diag v n m) = Diag v m n
208 tr (Dense a n m) = Dense (tr a) m n 210 tr (Dense a n m) = Dense (tr a) m n
209 211 tr' = tr
210 212