julia 1.13.0 DEVexisting global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi)CHAPTER 13. METHODS 173 # this is wrong, since depending on the return value # of type-inference0 码力 | 2047 页 | 7.41 MB | 3 月前3
julia 1.10.10existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * biCHAPTER 12. METHODS 163 ## this is insufficient because it assumes `one(eltype(a))` `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * biCHAPTER 12. METHODS 163 ## this is insufficient because it assumes `one(eltype(a))` `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi) # this is wrong, since depending on the return value # of type-inference is very brittle (as0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4existing global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi)CHAPTER 13. METHODS 172 # this is wrong, since depending on the return value # of type-inference0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationexisting global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi)CHAPTER 13. METHODS 172 # this is wrong, since depending on the return value # of type-inference0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesexisting global variable. This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be pseudo-code might look like: function matmul(a::AbstractMatrix, b::AbstractMatrix) op = (ai, bi) -> ai * bi + ai * bi ## this is insufficient because it assumes `one(eltype(a))` is constructable: # R `+` calls `promote_type` ## but this is not true for some types, such as Bool: # R = promote_type(ai, bi)CHAPTER 13. METHODS 172 # this is wrong, since depending on the return value # of type-inference0 码力 | 2007 页 | 6.73 MB | 3 月前3
共 20 条
- 1
- 2













