Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
midpointStencil :: (Fractional e, Index ix) => e -> Dim -> Int -> Stencil ix e emassiv Data.Massiv.Array.Numeric.Integral Midpoint Rule <math>
-
massiv Data.Massiv.Array.Numeric.Integral Use trapezoid rule to approximate an integral.
trapezoidStencil :: (Fractional e, Index ix) => e -> Dim -> Int -> Stencil ix e emassiv Data.Massiv.Array.Numeric.Integral Trapezoid Rule <math>
-
massiv Data.Massiv.Array.Unsafe No documentation available.
-
massiv Data.Massiv.Array.Unsafe Stride provides a way to ignore elements of an array if an index is divisible by a corresponding value in a stride. So, for a Stride (i :. j) only elements with indices will be kept around:
( 0 :. 0) ( 0 :. j) ( 0 :. 2j) ( 0 :. 3j) ... ( i :. 0) ( i :. j) ( i :. 2j) ( i :. 3j) ... (2i :. 0) (2i :. j) (2i :. 2j) (2i :. 3j) ... ...
Only positive strides make sense, so Stride pattern synonym constructor will prevent a user from creating a stride with negative or zero values, thus promoting safety of the library.Examples:
- If stride is Stride 2, then every 2nd element (i.e. with index 1, 3, 5, ..) will be skipped and only elemnts with indices divisible by 2 will be kept around.
- In case of two dimensions, if what you want is to keep all rows divisible by 5, but keep every column intact then you'd use Stride (5 :. 1).
class Load r ix e =>
StrideLoad r ix emassiv Data.Massiv.Core No documentation available.
-
massiv Data.Massiv.Core Load an array into memory with stride. Default implementation requires an instance of Source.
type family
IsDimValid ix (n :: Nat) :: Boolmassiv Data.Massiv.Core.Index No documentation available.
type family
ReportInvalidDim (dims :: Nat) (n :: Nat) (isNotZero :: Bool) (isLess :: Bool) :: Boolmassiv Data.Massiv.Core.Index No documentation available.
-
massiv Data.Massiv.Core.Index Stride provides a way to ignore elements of an array if an index is divisible by a corresponding value in a stride. So, for a Stride (i :. j) only elements with indices will be kept around:
( 0 :. 0) ( 0 :. j) ( 0 :. 2j) ( 0 :. 3j) ... ( i :. 0) ( i :. j) ( i :. 2j) ( i :. 3j) ... (2i :. 0) (2i :. j) (2i :. 2j) (2i :. 3j) ... ...
Only positive strides make sense, so Stride pattern synonym constructor will prevent a user from creating a stride with negative or zero values, thus promoting safety of the library.Examples:
- If stride is Stride 2, then every 2nd element (i.e. with index 1, 3, 5, ..) will be skipped and only elemnts with indices divisible by 2 will be kept around.
- In case of two dimensions, if what you want is to keep all rows divisible by 5, but keep every column intact then you'd use Stride (5 :. 1).