diff options
Diffstat (limited to 'packages/base/src/Internal/Matrix.hs')
-rw-r--r-- | packages/base/src/Internal/Matrix.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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@ |