cupyx.scipy.linalg.leslie

cupyx.scipy.linalg.leslie(f, s)

Create a Leslie matrix.

Given the length n array of fecundity coefficients f and the length n-1 array of survival coefficients s, 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 of f, 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 is s. The data-type of the array will be the data-type of f[0]+s[0].

Return type

cupy.ndarray