statsmodels.tsa.statespace.tools — statsmodels
www.statsmodels.org › stable › _modulesSource code for statsmodels.tsa.statespace.tools. [docs] def companion_matrix(polynomial): r""" Create a companion matrix Parameters ---------- polynomial : array_like or list If an iterable, interpreted as the coefficients of the polynomial from which to form the companion matrix. Polynomial coefficients are in order of increasing degree, and ...
MemoryView objects — Python 3.10.1 documentation
docs.python.org › 3 › c-api2 days ago · If memory is contiguous, the memoryview object points to the original memory. Otherwise, a copy is made and the memoryview points to a new bytes object. int PyMemoryView_Check (PyObject *obj) ¶ Return true if the object obj is a memoryview object. It is not currently allowed to create subclasses of memoryview. This function always succeeds.
Typed Memoryviews — Cython 3.0.0a9 documentation
cython.readthedocs.io › en › latestTyped memoryviews allow efficient access to memory buffers, such as those underlying NumPy arrays, without incurring any Python overhead. Memoryviews are similar to the current NumPy array buffer support ( np.ndarray [np.float64_t, ndim=2] ), but they have more features and cleaner syntax. Memoryviews are more general than the old NumPy array ...