 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.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.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.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.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 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 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 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.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.1.0 Documentationexpression A[5] returns the value 5. Julia allows you to combine these styles of indexing: for example, a 3d array A3 can be indexed as A3[i,j], in which case i is interpreted as a cartesian index for the first terms of cartesian, rather than linear, indexing. 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}, :, 1,0 码力 | 1214 页 | 4.21 MB | 1 年前3 Julia 1.1.0 Documentationexpression A[5] returns the value 5. Julia allows you to combine these styles of indexing: for example, a 3d array A3 can be indexed as A3[i,j], in which case i is interpreted as a cartesian index for the first terms of cartesian, rather than linear, indexing. 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}, :, 1,0 码力 | 1214 页 | 4.21 MB | 1 年前3
 Julia 1.11.0-rc4 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 码力 | 1985 页 | 6.67 MB | 10 月前3 Julia 1.11.0-rc4 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 码力 | 1985 页 | 6.67 MB | 10 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













