Hoogle Search
Within LTS Haskell 24.10 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
.- ) :: (Index ix, Numeric r e) => Array r ix e -> e -> Array r ix emassiv Data.Massiv.Array.Numeric Subtract a scalar from each element of the array. Array is on the left.
(
.-. ) :: (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.
(
./ ) :: (Index ix, NumericFloat r e) => Array r ix e -> e -> Array r ix emassiv 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 ]
-
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.
(
.>< ) :: (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.
(
.><. ) :: (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.
(
.^ ) :: (Index ix, Numeric r e) => Array r ix e -> Int -> Array r ix emassiv 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 ]
(
.^^ ) :: (Index ix, Numeric r e, Fractional e, Integral b) => Array r ix e -> b -> Array r ix emassiv Data.Massiv.Array.Numeric No documentation available.
(
... ) :: Index ix => ix -> ix -> Array D ix ixmassiv Data.Massiv.Vector Handy synonym for rangeInclusive Seq. Similar to .. for list.
>>> Ix1 4 ... 10 Array D Seq (Sz1 7) [ 4, 5, 6, 7, 8, 9, 10 ]
(
..: ) :: Index ix => ix -> ix -> Array D ix ixmassiv Data.Massiv.Vector >>> Ix1 4 ..: 10 Array D Seq (Sz1 6) [ 4, 5, 6, 7, 8, 9 ]