Python循环矩阵-scipy.linalg.circulant

2023-12-13 13:05:57

scipy.linalg.circulant

scipy.linalg.circulant?[source]

Construct a circulant matrix.

Parameters:

c(N,) array_like
1-D array, the first column of the matrix.

Returns:

A(N, N) ndarray
A circulant matrix whose first column is c.

See also

toeplitz
Toeplitz matrix

hankel
Hankel matrix

solve_circulant
Solve a circulant system.

Examples

from scipy.linalg import circulant
circulant([1, 2, 3])
array([[1, 3, 2],
       [2, 1, 3],
       [3, 2, 1]])

See https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.circulant.html

https://math.stackexchange.com/questions/4610870/generating-doubly-block-circulant-matrices-which-are-also-symmetric-positive-def

文章来源:https://blog.csdn.net/y15520833229/article/details/134848105
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。