标签:http io ar os sp for on div cti
---恢复内容开始---
https://developer.apple.com/library/ios/documentation/Accelerate/Reference/BLAS_Ref/index.html#//apple_ref/c/func/catlas_sset
Modifies a vector (single-precision) in place, setting each element to a given value.
SWIFT
func catlas_sset(_
N
: Int32,
_ alpha
: Float,
_ X
: UnsafeMutablePointer<Float>,
_ incX
: Int32)
OBJECTIVE-C
void catlas_sset ( const int __N, const float __alpha, float *__X, const int __incX );
N |
The number of elements in the vector. |
alpha |
The new value. |
X |
The vector to modify. |
incX |
Stride within |
import Accelerate
Available in iOS 4.0 and later.
Computes a constant times a vector plus a vector (single-precision).
SWIFT
func cblas_saxpy(_
N
: Int32,
_ alpha
: Float,
_ X
: UnsafePointer<Float>,
_ incX
: Int32,
_ Y
: UnsafeMutablePointer<Float>,
_ incY
: Int32)
OBJECTIVE-C
void cblas_saxpy ( const int __N,
const float __alpha,
const float *__X,
const int __incX,
float *__Y,
const int __incY
);
N |
Number of elements in the vectors. |
alpha |
Scaling factor for the values in |
X |
Input vector |
incX |
Stride within |
Y |
Input vector |
incY |
Stride within |
On return, the contents of vector Y are replaced with the result. The value computed is (alpha * X[i]) + Y[i]
.
import Accelerate
Available in iOS 4.0 and later.
---恢复内容结束---
标签:http io ar os sp for on div cti
原文地址:http://www.cnblogs.com/love-IT-happy/p/4121034.html