diff options
Diffstat (limited to 'packages/base/src/Internal/Sparse.hs')
-rw-r--r-- | packages/base/src/Internal/Sparse.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/base/src/Internal/Sparse.hs b/packages/base/src/Internal/Sparse.hs index b365c15..eb4ee1b 100644 --- a/packages/base/src/Internal/Sparse.hs +++ b/packages/base/src/Internal/Sparse.hs | |||
@@ -145,13 +145,13 @@ gmXv :: GMatrix -> Vector Double -> Vector Double | |||
145 | gmXv SparseR { gmCSR = CSR{..}, .. } v = unsafePerformIO $ do | 145 | gmXv SparseR { gmCSR = CSR{..}, .. } v = unsafePerformIO $ do |
146 | dim v /= nCols ~!~ printf "gmXv (CSR): incorrect sizes: (%d,%d) x %d" nRows nCols (dim v) | 146 | dim v /= nCols ~!~ printf "gmXv (CSR): incorrect sizes: (%d,%d) x %d" nRows nCols (dim v) |
147 | r <- createVector nRows | 147 | r <- createVector nRows |
148 | app5 c_smXv vec csrVals vec csrCols vec csrRows vec v vec r "CSRXv" | 148 | c_smXv # csrVals # csrCols # csrRows # v # r #|"CSRXv" |
149 | return r | 149 | return r |
150 | 150 | ||
151 | gmXv SparseC { gmCSC = CSC{..}, .. } v = unsafePerformIO $ do | 151 | gmXv SparseC { gmCSC = CSC{..}, .. } v = unsafePerformIO $ do |
152 | dim v /= nCols ~!~ printf "gmXv (CSC): incorrect sizes: (%d,%d) x %d" nRows nCols (dim v) | 152 | dim v /= nCols ~!~ printf "gmXv (CSC): incorrect sizes: (%d,%d) x %d" nRows nCols (dim v) |
153 | r <- createVector nRows | 153 | r <- createVector nRows |
154 | app5 c_smTXv vec cscVals vec cscRows vec cscCols vec v vec r "CSCXv" | 154 | c_smTXv # cscVals # cscRows # cscCols # v # r #|"CSCXv" |
155 | return r | 155 | return r |
156 | 156 | ||
157 | gmXv Diag{..} v | 157 | gmXv Diag{..} v |