diff options
Diffstat (limited to 'packages/base')
-rw-r--r-- | packages/base/hmatrix.cabal | 2 | ||||
-rw-r--r-- | packages/base/src/Internal/Matrix.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/base/hmatrix.cabal b/packages/base/hmatrix.cabal index 89e5423..f1bc8e6 100644 --- a/packages/base/hmatrix.cabal +++ b/packages/base/hmatrix.cabal | |||
@@ -83,7 +83,7 @@ library | |||
83 | ghc-options: -Wall | 83 | ghc-options: -Wall |
84 | -fno-warn-missing-signatures | 84 | -fno-warn-missing-signatures |
85 | -fno-warn-orphans | 85 | -fno-warn-orphans |
86 | -fprof-auto | 86 | -fno-prof-auto |
87 | 87 | ||
88 | cc-options: -O4 -Wall | 88 | cc-options: -O4 -Wall |
89 | 89 | ||
diff --git a/packages/base/src/Internal/Matrix.hs b/packages/base/src/Internal/Matrix.hs index fbf8295..4905f61 100644 --- a/packages/base/src/Internal/Matrix.hs +++ b/packages/base/src/Internal/Matrix.hs | |||
@@ -604,7 +604,7 @@ foreign import ccall unsafe "reorderL" c_reorderL :: Reorder Z | |||
604 | 604 | ||
605 | -- | Transpose an array with dimensions @dims@ by making a copy using @strides@. For example, for an array with 3 indices, | 605 | -- | Transpose an array with dimensions @dims@ by making a copy using @strides@. For example, for an array with 3 indices, |
606 | -- @(reorderVector strides dims v) ! ((i * dims ! 1 + j) * dims ! 2 + k) == v ! (i * strides ! 0 + j * strides ! 1 + k * strides ! 2)@ | 606 | -- @(reorderVector strides dims v) ! ((i * dims ! 1 + j) * dims ! 2 + k) == v ! (i * strides ! 0 + j * strides ! 1 + k * strides ! 2)@ |
607 | -- This function is intended to be used internally by tensor libraries.. | 607 | -- This function is intended to be used internally by tensor libraries. |
608 | reorderVector :: Element a | 608 | reorderVector :: Element a |
609 | => Vector CInt -- ^ @strides@: array strides | 609 | => Vector CInt -- ^ @strides@: array strides |
610 | -> Vector CInt -- ^ @dims@: array dimensions of new array @v@ | 610 | -> Vector CInt -- ^ @dims@: array dimensions of new array @v@ |