summaryrefslogtreecommitdiff
path: root/packages/base/src/Numeric/Sparse.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-05-26 20:14:56 +0200
committerAlberto Ruiz <aruiz@um.es>2015-05-26 20:14:56 +0200
commit9a640d084f3d950e37e054672c9bbbefe4af06d7 (patch)
treec9016bbf1f28848aeef61aae4c0d6715d188f296 /packages/base/src/Numeric/Sparse.hs
parentf38aba5c0086e662a9e49043f414d03a0dacb044 (diff)
tr' , documentation
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