Julia 1.7.0 DEV Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 743 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 749 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1399 页 | 4.59 MB | 1 年前3
Julia 1.6.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 739 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 1.6.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 739 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia v1.6.6 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 713 CONTENTS x 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 714 CONTENTS x 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 720 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1325 页 | 4.54 MB | 1 年前3
Julia 1.6.7 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 713 46.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 46.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.4 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 713 CONTENTS x 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.2 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 713 CONTENTS x 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.3 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 714 CONTENTS x 47.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 720 47.6 Concatenation and permutation makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString, for example: julia> str = "long string" "long string" julia> array-indexing expression, e.g. X[begin+1:end] .= sin.(Y), then it translates to broadcast! on a view, e.g. broadcast!(sin, view(X, firstindex(X)+1:lastindex(X)), Y), so that the left-hand side is updated in-place0 码力 | 1325 页 | 4.54 MB | 1 年前3
julia 1.10.10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 886 46.5 Views (SubArrays and other view types) . . . . . . . . . . . . . . . . . . . . . . . . 894 46.6 Concatenation and permutation . makes a copy of the selected part of the original string. Alternatively, it is possible to create a view into a string using the type SubString. More simply, using the @views macro on a block of code converts mutated argument shares memory with another argument, a situation known as aliasing (e.g. when one is a view of the other). Unless the function docstring explicitly indicates that aliasing produces the expected0 码力 | 1692 页 | 6.34 MB | 3 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













