vSgevv(_:_:_:_:_:)
Produces the outer product of two vectors and places the results into a matrix.
Declaration
func vSgevv(_ l: Int32, _ n: Int32, _ A: UnsafePointer<vFloat>, _ B: UnsafePointer<vFloat>, _ M: UnsafeMutablePointer<vFloat>)Parameters
- l:
Number of elements in vector
Aand the number of rows in matrixM; must be a multiple of 4. - n:
Number of elements in vector
Band the number of columns in matrixM; must be a multiple of 4. - A:
Vector with
lelements. - B:
Vector with
nelements. - M:
Matrix with
lrows andncolumns.
Discussion
The vectors A and B are multiplied and the result is stored in matrix M, that is, for 0 <= i < l and 0 <= j < n, C[i*n + j] = A[i] * B[j]..