Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 numpy 中,有一个flatten操作允许您将矩阵展平为元素m x n数组,以及一个相反方向的操作。大多数情况下,这可以通过视图完成,而无需创建原始数据的副本。mnreshape
flatten
m x n
mn
reshape
Java 矩阵库 Parallel Colt 中是否存在这样的功能?我一直找不到。reshape一维矩阵有一种方法,但它似乎可以创建副本。