vSgemtx(_:_:_:_:_:_:)
Forms the transpose of a matrix, multiplies it by a scalar and then by a vector, and adds the resulting vector to a second vector.
Declaration
func vSgemtx(_ m: Int32, _ n: Int32, _ alpha: Float, _ a: UnsafePointer<vFloat>, _ x: UnsafePointer<vFloat>, _ y: UnsafeMutablePointer<vFloat>)Parameters
- m:
Number of rows in
a, and the length of vectory; must be a multiple of 4. - n:
Number of columns in
a, and the length of vectorx; must be a multiple of 4. - alpha:
Scalar multiplier for matrix
a. - a:
mbynmatrix with elements of typefloat. - x:
Vector with elements of type
float. - y:
Destination vector with
nelements of typefloat.
Discussion
The transpose of matrix a is multiplied by alpha and then by vector x; the resulting vector is added to vector y, and the results are stored in y.