Python: Differentiating between row and column vectors

前端 未结 12 1551
不知归路
不知归路 2020-12-07 08:56

Is there a good way of differentiating between row and column vectors in python? So far I\'m using numpy and scipy and what I see so far is that If I was to give one a vecto

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 09:22

    row vectors are (1,0) tensor, vectors are (0, 1) tensor. if using v = np.array([[1,2,3]]), v become (0,2) tensor. Sorry, i am confused.

提交回复
热议问题