ivxj.split_mat_into_cells
Functions
|
Split matrix A into submatrices based on the lengths specified in Tlens. |
Module Contents
- ivxj.split_mat_into_cells.split_mat_into_cells(A, Tlens)[source]
Split matrix A into submatrices based on the lengths specified in Tlens.
This function divides the full dataset into individual submatrices, where the size of each submatrix is determined by the corresponding values in Tlens.
- Parameters:
A (2D array-like, dtype=float64) – The full dataset to be split into submatrices.
Tlens (1D array-like, dtype=int) – The lengths of each submatrix, indicating how many rows to include in each split.
- Returns:
A list of submatrices split from the full dataset according to Tlens.
- Return type:
list of 2D array-like