Julia 1.11.4julia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3);CHAPTER row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________ 4 = elements in each 4d slice (4,) ⇒ shape = ((2, 1, 1), (3, 1), (4,), IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationjulia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3);CHAPTER row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________ 4 = elements in each 4d slice (4,) ⇒ shape = ((2, 1, 1), (3, 1), (4,), IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesjulia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3);CHAPTER row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________ 4 = elements in each 4d slice (4,) ⇒ shape = ((2, 1, 1), (3, 1), (4,), IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVjulia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3); julia> row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________ 4 = elements in each 4d slice (4,) ⇒ shape = ((2, 1, 1), (3, 1), (4,), IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1julia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3); julia> row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________CHAPTER 48. ARRAYS 1088 4 = elements in each 4d slice (4,) ⇒ shape = ((2 IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4julia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3); julia> row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________CHAPTER 48. ARRAYS 1087 4 = elements in each 4d slice (4,) ⇒ shape = ((2 IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3julia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3); julia> row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________CHAPTER 48. ARRAYS 1087 4 = elements in each 4d slice (4,) ⇒ shape = ((2 IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1julia> cat(a, b; dims=(1, 2)) 2×6 Matrix{Int64}: 1 2 3 0 0 0 0 0 0 4 5 6 Extended Help Concatenate 3D arrays: julia> a = ones(2, 2, 3); julia> b = ones(2, 2, 4); julia> c = cat(a, b; dims=3); julia> row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,) _____________CHAPTER 47. ARRAYS 1079 4 = elements in each 4d slice (4,) ⇒ shape = ((2 IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 2047 页 | 7.41 MB | 3 月前3
julia 1.10.10row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,)CHAPTER 46. ARRAYS 907 _____________ 4 = elements in each 4d slice (4,)⇒ shape = ((2, IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9row (2, 1, 1) _______ _ 3 1 = elements in each column (3, 1) _____________ 4 = elements in each 3d slice (4,)CHAPTER 46. ARRAYS 907 _____________ 4 = elements in each 4d slice (4,)⇒ shape = ((2, IndexLinear to the extent that it is possible. Index replacement Consider making 2d slices of a 3d array: julia> A = rand(2,3,4); julia> S1 = view(A, :, 1, 2:3) 2×2 view(::Array{Float64, 3}, :, 10 码力 | 1692 页 | 6.34 MB | 3 月前3
共 10 条
- 1













