Data Handling¶
Adj2vec¶
Pyramid Cell2coeff¶
Repmatline¶
-
pygsp.data_handling.
repmatline
(A, ncol=1, nrow=1)[source]¶ Repeat the matrix A in a specific manner.
Parameters: A : ndarray
ncol : Integer
default is 1
nrow : Integer
default is 1
Returns: Ar : Matrix
Examples
For nrow=2 and ncol=3, the matrix
x = [1 2 ] [3 4 ]
becomes
[1 1 1 2 2 2 ] M = [1 1 1 2 2 2 ] [3 3 3 4 4 4 ] [3 3 3 4 4 4 ]
- with::
- M = np.repeat(np.repeat(x, nrow, axis=1), ncol, axis=0)