Utility Functions¶
- finds.util.split(mat)¶
Splits a matrix of shape (N,m) into two matrices of (N,m/2) and (N,m/2), or the top and bottom halves of the original matrix.
- Parameters:
mat (NDArray) – The original matrix of shape \((N,m)\).
- Returns:
The top and bottom halves of the matrix.
- Return type:
tuple[NDArray, NDArray]
- finds.util.rejoin(tophalf, bottomhalf)¶
Rejoins the top and bottom halves of a system matrix of similar. Requires that
tophalfandbottomhalfhave the same shape, \((N,6)\).- Parameters:
tophalf (NDArray) – The top half of the matrix.
bottomhalf (NDArray) – The bottom half of the matrix.
- Returns:
The rejoined matrix.
- Return type:
NDArray