julia 1.10.10versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int"CHAPTER 12. METHODS 160 12.6 Design Patterns0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int"CHAPTER 12. METHODS 160 12.6 Design Patterns0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int" 13.6 Design Patterns with Parametric Methods0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationversions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int" 13.6 Design Patterns with Parametric Methods0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesversions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int" 13.6 Design Patterns with Parametric Methods0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.12.0 beta1versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages that use f(x): julia> g(x) = f(x) g (generic function with 1 method) julia> t = @async f(wait()); yield(); Now we add some new methods to f(x): julia> f(x::Int) = "definition for Int" f (generic function "definition for Int" julia> fetch(schedule(t, 1)) "original definition" julia> t = @async f(wait()); yield(); julia> fetch(schedule(t, 1)) "definition for Int" 13.6 Design Patterns with Parametric Methods0 码力 | 2047 页 | 7.41 MB | 3 月前3
julia 1.13.0 DEVversions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages represents a single multidimensional index. When combined with other index- ing forms and iterators that yield CartesianIndexes, however, this can produce very elegant and efficient code. See Iteration below tasks should avoid performing high latency operations, and if they are long duration tasks, should yield frequently. By default Julia starts with one interactive thread reserved to run interactive tasks0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages represents a single multidimensional index. When combined with other index- ing forms and iterators that yield CartesianIndexes, however, this can produce very elegant and efficient code. See Iteration below tasks should avoid performing high latency operations, and if they are long duration tasks, should yield frequently. By default Julia starts with one interactive thread reserved to run interactive tasks0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages represents a single multidimensional index. When combined with other index- ing forms and iterators that yield CartesianIndexes, however, this can produce very elegant and efficient code. See Iteration below tasks should avoid performing high latency operations, and if they are long duration tasks, should yield frequently. By default Julia starts with one interactive thread reserved to run interactive tasks0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3versions of functions, which simply apply a given function f(x) to each element of an array A to yield a new array via f(A). This kind of syntax is convenient for data processing, but in other languages represents a single multidimensional index. When combined with other index- ing forms and iterators that yield CartesianIndexes, however, this can produce very elegant and efficient code. See Iteration below tasks should avoid performing high latency operations, and if they are long duration tasks, should yield frequently. By default Julia starts with one interactive thread reserved to run interactive tasks0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 20 条
- 1
- 2













