summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-08-09 19:31:17 -0400
committerJoe Crayne <joe@jerkface.net>2019-08-09 19:31:17 -0400
commit421239ec7075bcff602b09192bbf0f0b9bff1a18 (patch)
treedafb93e7f9c1018b3268347cfc3f2fb4bab43576
parent45c2c85c3fbf3173df685bf3143af50e8569e40d (diff)
Factored Element specialization out of Matrix module.
-rw-r--r--packages/base/src/Internal/Matrix.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/base/src/Internal/Matrix.hs b/packages/base/src/Internal/Matrix.hs
index 5436e59..7c774ef 100644
--- a/packages/base/src/Internal/Matrix.hs
+++ b/packages/base/src/Internal/Matrix.hs
@@ -23,6 +23,7 @@ module Internal.Matrix where
23import Internal.Vector 23import Internal.Vector
24import Internal.Devel 24import Internal.Devel
25import Internal.Vectorized hiding ((#), (#!)) 25import Internal.Vectorized hiding ((#), (#!))
26import Internal.Specialized
26import Foreign.Marshal.Alloc ( free ) 27import Foreign.Marshal.Alloc ( free )
27import Foreign.Marshal.Array(newArray) 28import Foreign.Marshal.Array(newArray)
28import Foreign.Ptr ( Ptr ) 29import Foreign.Ptr ( Ptr )
@@ -285,6 +286,7 @@ liftMatrix2 f m1@(size->(r,c)) m2
285 286
286------------------------------------------------------------------ 287------------------------------------------------------------------
287 288
289{-
288-- | Supported matrix elements. 290-- | Supported matrix elements.
289class (Storable a) => Element a where 291class (Storable a) => Element a where
290 constantD :: a -> Int -> Vector a 292 constantD :: a -> Int -> Vector a
@@ -377,6 +379,7 @@ instance Element Z where
377 rowOp = rowOpAux c_rowOpL 379 rowOp = rowOpAux c_rowOpL
378 gemm = gemmg c_gemmL 380 gemm = gemmg c_gemmL
379 reorderV = reorderAux c_reorderL 381 reorderV = reorderAux c_reorderL
382-}
380 383
381------------------------------------------------------------------- 384-------------------------------------------------------------------
382 385