Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. (.+) :: (Index ix, Numeric r e) => Array r ix e -> e -> Array r ix e

    massiv Data.Massiv.Array.Numeric

    Add a scalar to each element of the array. Array is on the left.

  2. (.+.) :: (Index ix, Numeric r e, MonadThrow m) => Array r ix e -> Array r ix e -> m (Array r ix e)

    massiv Data.Massiv.Array.Numeric

    Add two arrays together pointwise. Same as !+! but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when array sizes do not match.

  3. (.-) :: (Index ix, Numeric r e) => Array r ix e -> e -> Array r ix e

    massiv Data.Massiv.Array.Numeric

    Subtract a scalar from each element of the array. Array is on the left.

  4. (.-.) :: (Index ix, Numeric r e, MonadThrow m) => Array r ix e -> Array r ix e -> m (Array r ix e)

    massiv Data.Massiv.Array.Numeric

    Subtract two arrays pointwise. Same as !-! but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when array sizes do not match.

  5. (./) :: (Index ix, NumericFloat r e) => Array r ix e -> e -> Array r ix e

    massiv Data.Massiv.Array.Numeric

    Divide each element of the array by a scalar value.

    Example

    >>> let arr = fromIntegral <$> (Ix1 20 ..: 25) :: Array D Ix1 Float
    
    >>> arr
    Array D Seq (Sz1 5)
    [ 20.0, 21.0, 22.0, 23.0, 24.0 ]
    
    >>> arr ./ 100
    Array D Seq (Sz1 5)
    [ 0.2, 0.21, 0.22, 0.23, 0.24 ]
    

  6. (./.) :: (Index ix, NumericFloat r e, MonadThrow m) => Array r ix e -> Array r ix e -> m (Array r ix e)

    massiv Data.Massiv.Array.Numeric

    Divide each element of one array by another pointwise. Same as !/! but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when array sizes do not match.

  7. (.><) :: (MonadThrow m, FoldNumeric r e, Source r e) => Matrix r e -> Vector r e -> m (Vector D e)

    massiv Data.Massiv.Array.Numeric

    Multiply a matrix by a column vector. Same as !>< but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when inner dimensions of arrays do not match.

  8. (.><.) :: (Numeric r e, Manifest r e, MonadThrow m) => Matrix r e -> Matrix r e -> m (Matrix r e)

    massiv Data.Massiv.Array.Numeric

    Matrix multiplication. Same as !><! but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when inner dimensions of arrays do not match.

  9. (.^) :: (Index ix, Numeric r e) => Array r ix e -> Int -> Array r ix e

    massiv Data.Massiv.Array.Numeric

    Raise each element of the array to a power.

    Example

    >>> let arr = Ix1 20 ..: 25
    
    >>> arr
    Array D Seq (Sz1 5)
    [ 20, 21, 22, 23, 24 ]
    
    >>> arr .^ 3
    Array D Seq (Sz1 5)
    [ 8000, 9261, 10648, 12167, 13824 ]
    

  10. (.^^) :: (Index ix, Numeric r e, Fractional e, Integral b) => Array r ix e -> b -> Array r ix e

    massiv Data.Massiv.Array.Numeric

    No documentation available.

Page 23 of many | Previous | Next