Julia 中文文档. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652 47.5 Views (SubArrays 以及其它 view 类型) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658 47.6 Concatenation and permutation 类别数学符号中的一部分)。变量名的非首字符还允许使用惊叹号 !、数 字(包括 0-9 和其他 Nd/No 类别中的 Unicode 字符)以及其它 Unicode 字符:变音符号和其他修改标 记(Mn/Mc/Me/Sk 类别)、标点和连接符(Pc 类别)、引号和少许其他字符。 像 + 这样的运算符也是合法的标识符,但是它们会被特别地解析。在一些语境中,运算符可以像变 量一样使用,比如 (+) 表示加函数,语句 (+) = f 会把它重新赋值。大部分 前者是 Char 类型的单个字符值,后者是碰巧只有单个字符的字符串值。在 Julia 里面两者大不相同。 范围索引复制了原字符串的选定部分。此外,也可以用 SubString 类型创建字符串的 view,例如: julia> str = "long string" "long string" julia> substr = SubString(str, 1, 4) "long" julia>0 码力 | 1238 页 | 4.59 MB | 1 年前3
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
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













