{ } Raw JSON

bundles / scipy 1.17.1 / scipy / special / _basic / _factorialx_array_exact

function

scipy.special._basic:_factorialx_array_exact

source: /scipy/special/_basic.py :2663

Signature

def   _factorialx_array_exact ( n k = 1 )

Summary

Exact computation of factorial for an array.

Extended Summary

The factorials are computed in incremental fashion, by taking the sorted unique values of n and multiplying the intervening numbers between the different unique values.

In other words, the factorial for the largest input is only computed once, with each other result computed in the process.

k > 1 corresponds to the multifactorial.

Aliases

  • scipy.special._basic._factorialx_array_exact