Hoogle Search
Within LTS Haskell 24.20 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
-. ) :: (Index ix, Numeric r e) => e -> Array r ix e -> Array r ix emassiv Data.Massiv.Array.Numeric Subtract each element of the array from a scalar. Array is on the right.
(
/. ) :: (Index ix, NumericFloat r e) => e -> Array r ix e -> Array r ix emassiv Data.Massiv.Array.Numeric Divide a scalar value by each element of the array.
e /. arr == e *. recipA arr
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 ] >>> 100 /. arr Array D Seq (Sz1 5) [ 5.0, 4.7619047, 4.5454545, 4.347826, 4.1666665 ]
(
><. ) :: (MonadThrow m, Numeric r e, Manifest r e) => Vector r e -> Matrix r e -> m (Vector r e)massiv Data.Massiv.Array.Numeric Multiply a row vector by a matrix. Same as ><! but produces monadic computation that allows for handling failure. Throws Exception: SizeMismatchException when inner dimensions of arrays do not match.
-
massiv Data.Massiv.Core.Index No documentation available.
-
monoid-extras Data.Semigroup.Coproduct m :+. n is the coproduct of semigroups m and n. Values of type m :+. n consist of alternating non-empty lists of m and n values. Composition is list concatenation, with appropriate combining of adjacent elements
newtype ((f :: k2 -> Type)
:.: (g :: k1 -> k2)) (p :: k1)protolude Protolude Composition of functors
(
<.> ) :: Semiring m => m -> m -> mprotolude Protolude.Semiring No documentation available.
(
*. ) :: (Integral i, RealFrac r) => DecimalRaw i -> r -> DecimalRaw iDecimal Data.Decimal Multiply a DecimalRaw by a RealFrac value.
(
<*>.+ ) :: C x => T (v, v) (x -> a) -> (v -> x) -> T (v, v) anumeric-prelude Algebra.Additive addPair :: (Additive.C a, Additive.C b) => (a,b) -> (a,b) -> (a,b) addPair = Elem.run2 $ Elem.with (,) <*>.+ fst <*>.+ snd
(
<*>.- ) :: C x => T (v, v) (x -> a) -> (v -> x) -> T (v, v) anumeric-prelude Algebra.Additive No documentation available.