MutableArithmetics: An API for mutable operations

Benoît Legat
{"title":"MutableArithmetics: An API for mutable operations","authors":"Benoît Legat","doi":"10.21105/jcon.00093","DOIUrl":null,"url":null,"abstract":"Arithmetic operations defined in Julia do not modify their arguments. However, in many situations, a variable represents an ac-cumulator that can be modified in-place to contain the result, e.g., when summing the elements of an array. Moreover, for types that support mutation, mutating the value may have a significant performance benefit over creating a new instance. This paper presents an interface that allows algorithms to exploit mutability in arithmetic operations in a generic manner.","PeriodicalId":443465,"journal":{"name":"JuliaCon Proceedings","volume":" 12","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JuliaCon Proceedings","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.21105/jcon.00093","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Arithmetic operations defined in Julia do not modify their arguments. However, in many situations, a variable represents an ac-cumulator that can be modified in-place to contain the result, e.g., when summing the elements of an array. Moreover, for types that support mutation, mutating the value may have a significant performance benefit over creating a new instance. This paper presents an interface that allows algorithms to exploit mutability in arithmetic operations in a generic manner.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
可变运算可变运算 API
Julia 中定义的算术运算不会修改参数。然而,在许多情况下,变量代表一个累加器,可以就地修改累加器以包含结果,例如,在求数组元素的总和时。此外,对于支持突变的类型,与创建新实例相比,突变值可能会带来显著的性能优势。本文提出了一种接口,允许算法以通用方式利用算术运算中的可变性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
MutableArithmetics: An API for mutable operations Extending JumpProcesses.jl for fast point process simulation with time-varying intensities RangeEnclosures.jl: A framework to bound function ranges DeconvOptim.jl - Signal Deconvolution with Julia Computing Reachable Sets of Semi-Discrete Solid Dynamics Equations with ReachabilityAnalysis.jl
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1