julia> x = Vector(0:11)
12-element Vector{Int64}:
0
1
2
3
4
5
6
7
8
9
10
11
julia> reshape(x, 3,
3×4 Matrix{Int64}:
0 3 6 9
1 4 7 10
2 5 8 11
numpy中:
X = x.reshape(3, 4)
array([[ 0., 1., 2., 3.],
[ 4., 5., 6., 7.],
[ 8., 9., 10., 11.]])