...
首页> 外文期刊>SIAM Review >Introduction to automatic differentiation and MATLAB object-oriented programming
【24h】

Introduction to automatic differentiation and MATLAB object-oriented programming

机译:自动微分和MATLAB面向对象编程简介

获取原文
获取原文并翻译 | 示例

摘要

An introduction to both automatic differentiation and object-oriented programming can enrich a numerical analysis course that typically incorporates numerical differentiation and basic MATLAB computation. Automatic differentiation consists of exact algorithms on floating-point arguments. This implementation overloads standard elementary operators and functions in MATLAB with a derivative rule in addition to the function value; for example, sin u will also compute (cos u) * u′, w here u and u′ are numerical values. These methods are mostly one-line programs that operate on a class of value-and-derivative objects, providing a simple example of object-oriented programming in MATLAB using the new(as of release 2008a) class definition structure. The resulting powerful tool computes derivative values and multivariable gradients, and is applied to Newton's method for rootfinding in both single and multivariable settings. To compute higher-order derivatives of a single-variable function, another class of series objects keeps Taylor polynomial coefficients up to some order. Overloading multiplication on series objects is a combination (discrete convolution) of coefficients. This idea leads to algorithms for other operations and functions on series objects. A survey of more advanced topics in automatic differentiation includes an introduction to the reverse mode (our implementation is forward mode) and considerations in arbitrary-order multivariable series computation.
机译:对自动微分和面向对象编程的介绍可以丰富通常包含数值微分和基本MATLAB计算的数值分析课程。自动微分包含浮点参数的精确算法。除了函数值之外,此实现还使用派生规则重载了MATLAB中的标准基本运算符和函数;例如,sin u也将计算(cos u)* u',其中u和u'是数值。这些方法大部分是单行程序,可对一类值和导数对象进行操作,提供了使用新的(自2008a版开始)类定义结构在MATLAB中进行面向对象编程的简单示例。生成的功能强大的工具可计算导数值和多变量梯度,并应用于牛顿方法在单变量和多变量设置中进行寻根。为了计算单变量函数的高阶导数,另一类级联对象将泰勒多项式系数保持在某个阶数。序列对象上的重载乘法是系数的组合(离散卷积)。这个想法导致了系列对象上其他操作和功能的算法。对自动微分的更高级主题的概述包括对反向模式的介绍(我们的实现是正向模式)和任意阶多变量序列计算的注意事项。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号