The use of np.r_ and np.c_

Rules:

1.np.r_:expand the size of rows,r is row;

require two matrix has the same size of columns

2.np.c_:expand the size of columns,c is columns;

require two matrix has the same size of rows

examples are as follows

1.np.c_

1.1 code

1.2 view variables

2.np.r_

2.1 code

2.2 view the variable 

 

猜你喜欢

转载自blog.csdn.net/qq_35147871/article/details/109330535
np