A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.mateqn._check_shape.html below:

Website Navigation


control.mateqn._check_shape — Python Control Systems Library 0.10.2 documentation

control.mateqn._check_shape
control.mateqn._check_shape(M, n, m, square=False, symmetric=False, name='??')[source]

Check the shape and properties of a 2D array.

This function can be used to check to make sure a 2D array_like has the right shape, along with other properties. If not, an appropriate error message is generated.

Parameters:
Marray_like

Array to be checked.

nint

Expected number of rows.

mint

Expected number of columns.

squarebool, optional

If True, check to make sure the matrix is square.

symmetricbool, optional

If True, check to make sure the matrix is symmetric.

namestr

Name of the matrix (for use in error messages).

Returns:
M2D array

Input array, converted to 2D if needed.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4