cupyx.scipy.linalg.leslie#
- cupyx.scipy.linalg.leslie(f, s)[source]#
Create a Leslie matrix.
Given the length n array of fecundity coefficients
f
and the length n-1 array of survival coefficientss
, return the associated Leslie matrix.- Parameters:
f (cupy.ndarray) – The “fecundity” coefficients.
s (cupy.ndarray) – The “survival” coefficients, has to be 1-D. The length of
s
must be one less than the length off
, and it must be at least 1.
- Returns:
The array is zero except for the first row, which is
f
, and the first sub-diagonal, which iss
. The data-type of the array will be the data-type off[0]+s[0]
.- Return type:
See also