Create a Leslie matrix.
Parameters : | f : array-like, 1D
s : array-like, 1D
|
---|---|
Returns : | L : ndarray, 2D
|
Notes
New in version 0.8.0.
Examples
>>> leslie([0.1, 2.0, 1.0, 0.1], [0.2, 0.8, 0.7])
array([[ 0.1, 2. , 1. , 0.1],
[ 0.2, 0. , 0. , 0. ],
[ 0. , 0.8, 0. , 0. ],
[ 0. , 0. , 0.7, 0. ]])