【24h】

An Adaptive Solver for Systems of Linear Equations

机译:用于线性方程系统的自适应求解器

获取原文

摘要

Computational implementations for solving systems of linear equations often rely on a one-size-fits-all approach based on LU decomposition of dense matrices stored in column-major format. Such solvers are typically implemented with the aid of the xGESV set of functions available in the low-level LAPACK software, with the aim of reducing development time by taking advantage of well-tested routines. However, this straight-forward approach does not take into account various matrix properties which can be exploited to reduce the computational effort and/or to increase numerical stability. Furthermore, direct use of LAPACK functions can be error-prone for non-expert users and results in source code that has little resemblance to originating mathematical expressions. We describe an adaptive solver that we have implemented inside recent versions of the high-level Armadillo C++ library for linear algebra. The solver automatically detects several common properties of a given system (banded, triangular, symmetric positive definite), followed by solving the system via mapping to a set of suitable LAPACK functions best matched to each property. The solver also detects poorly conditioned systems and automatically seeks a solution via singular value decomposition as a fallback. We show that the adaptive solver leads to notable speedups, while also freeing the user from using direct calls to cumbersome LAPACK functions.
机译:用于求解线性方程系统的计算实现通常依赖于基于LU分解存储在列 - 主要格式中的LU分解的单尺寸合适的方法。这种求解器通常借助于低级Lapack软件可用的XGESV功能,目的是通过利用经过良好测试的常规来降低开发时间。然而,这种直接方法不会考虑可以利用以减少计算工作和/或增加数值稳定性的各种矩阵特性。此外,直接使用Lapack功能可能会出现错误的非专家用户,并导致源代码中与始发数学表达式很少。我们描述了一种自适应求解器,我们在最近的最近版本的高级Armadillo C ++库中实现了线性代数。求解器自动检测给定系统(带状,三角形,对称正定)的几个公共属性,然后通过映射来解决系统的一组合适的Lapack函数,与每个属性最佳匹配。求解器还检测到条件不良系统,并通过单数值分解自动寻求解决方案作为回退。我们表明,自适应求解器会导致显着的加速,同时还释放用户使用直接呼叫对麻烦的Lapack功能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号