- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 BLAS 中有这样的例程
dscal scale a vector by a constant
dinit initialize a vector with given value
daxpy perform y = a*x + y
dinit
或
dscal
.
daxpy
与
a=1
或
a=-1
从给定的向量执行加法/减法,但这在我看来过于复杂。
最佳答案
要找到合理的解释,我们必须回到 BLAS history
在那里我们可以了解到,Level 1 是在 70 年代设计的,远早于 Level 2、3(
2 级是 1987 年,3 级是 1989 年)。
关于 1 级历史,在 1979 年的论文 Basic Linear Algebra Subprograms for Fortran Usage 中由 CL Lawson 等人撰写。我们可以阅读,第 3 页
The criterion for including an operation in the package was that it should involve just one level of looping and occur in the usual algorithms of numerical linear algebra, such as Gaussian elimination or the various elimination methods using orthogonal transformations.
For example, it has been found [Krogh (1)] that the use of assembly coded modules in a double precision program for solving linear equations based on Householder transfZormations with column scaling and column interchanges reduced the execution time on a Univac 1108 by 15% to 30% relative to the time required when carefully written Fortran modules were used.
The operations which we feel belong in Class I according to the above stated criteria are: (1) the dot product (inner product) of two vectors, elementary vector operation, y := ax + y where x and y are n-vectors and a is a scalar, and (3) the Givens 2 x 2 orthogonal transformation applied to a 2 x n submatrix.
关于blas - 为什么加减法没有BLAS例程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48666508/
使用 LESS 有没有一种方法可以设置基本字体大小,然后稍后引用它并输出它说 1em 更小?例如: @font-size: 3.025em; 然后在媒体查询或其他东西中: @media only sc
我是一名优秀的程序员,十分优秀!