logsumexp.logsumexp

Params a = input slice b = scaling factor slice for exp(a) must have the same shape to b

  1. auto logsumexp(A a)
  2. auto logsumexp(A a, B b)
    template logsumexp(sumTemplateArgs...)
    nothrow @nogc nothrow @nogc
    logsumexp
    (
    A
    B
    )
    (
    A a
    ,
    B b
    )
    if (
    isSlice!A &&
    isSlice!B
    )

Return Value

Type: auto

log-sum-exp value. if a is empty, this function returns -inf as mir.math.sum([]) does too.

Meta