How to convert (n,) matrix to (1,n) matrix in python -


how convert (n,) matrix (1,n) numpy matrix in python

i tried using transpose makes (n,1) , not looking for

i guess you're referring numpy's ndarray.
can apply reshape:
x = np.reshape(x, (1, n))


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -