cyjax.util.insert_col#
- cyjax.util.insert_col(mat, col, index)#
Insert a column or column of sub-rows into a 2D matrix.
- Parameters:
mat (
Union
[Array
,ndarray
,bool_
,number
]) – Original 2-dimensional array.col (
Union
[Array
,ndarray
,bool_
,number
]) – New column to insert.index (
int
) – New index of column to be inserted.
- Return type:
Union
[Array
,ndarray
,bool_
,number
]- Returns:
Combined array.