使用 Accelerate 框架进行代数

发布于 2024-11-26 16:30:07 字数 363 浏览 3 评论 0原文

在观看关于加速框架的 WWDC 视频后,我看到它有两个包,分别称为 BLAS 和 LAPACK。当他们谈论 BLAS 时,听起来这不是我想要的,但是,LAPACK(他们的标题为“线性代数包”)听起来像是我想做的。

您可以使用这两个框架中的第二个框架 LAPACK 来执行解方程、因式分解和其他基本代数运算等功能吗? - 让我困惑的是,当我查看苹果文档时,他们对 LAPACK 的参考很少。

Apple Docs

正如你在这里看到的,他们有关于 BLAS 而不是 LAPACK 的文档,

如果有人了解加速框架可以启发我这个主题,因为我对此一无所知!

After watching the WWDC video on the accelerate framework, I saw that it had two packages called BLAS and LAPACK. When they talked about BLAS, it sounded like that wasn't what I wanted however, LAPACK, which they caption "Linear algebra package", sounds like it does what I want to do.

Could you use the second of these two frameworks, LAPACK, to perform functions such as solving equations, factorising, and other basic algebraic operations? - What puzzled me is when I looked in the apple docs, they have very little reference to LAPACK.

Apple Docs

As you can see here, they have docs on BLAS and not LAPACK

I would be grateful if someone who knows about the accelerate framework could enlighten me on the topic because I know nothing about it!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

前事休说 2024-12-03 16:30:07

LAPACK 和 BLAS 提供高性能数值线性代数例程。特别是,它们用于执行以下操作:

  • 两个矩阵相乘
  • 查找矩阵的特征值
  • 对线性方程组进行数值求解(即 Ax = b 形式的方程,其中 A 是矩阵,x 和 b 是向量)。

从你的问题中很难看出,但听起来你想做的是符号代数,比如将x^2 + 4x + 4分解为( x + 2)(x + 2)。是这样吗?如果是这样,BLAS 和 LAPACK 对你来说就没有多大用处了。如果没有,您能澄清一下您想要解决什么样的问题吗?

请注意,Apple 很少记录 BLAS 和 LAPACK,因为它们是高度标准化的接口;已经有大量的公共文档可以在线获取并以书籍形式提供。

LAPACK and BLAS provide high-performance numerical linear algebra routines. In particular, they are used to do things like:

  • Multiply two matrices
  • Find the eigenvalues of a matrix
  • Numerically solve a system of linear equations (i.e., an equation of the form Ax = b, where A is a matrix and x and b are vectors).

It's hard to tell from your question, but it sounds like what you want to do is symbolic algebra, things like factoring x^2 + 4x + 4 as (x + 2)(x + 2). Is that right? If so, BLAS and LAPACK will not be of much use to you. If not, can you clarify what sort of problems you do want to solve?

Note that BLAS and LAPACK are sparsely documented by Apple because they are highly standardized interfaces; there is an enormous amount of public documentation already available online and in book form.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文