---
title: "vSgevv(_:_:_:_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vsgevv(_:_:_:_:_:)"
---

# vSgevv(_:_:_:_:_:)

Produces the outer product of two vectors and places the results into a matrix.

## Declaration

```swift
func vSgevv(_ l: Int32, _ n: Int32, _ A: UnsafePointer<vFloat>, _ B: UnsafePointer<vFloat>, _ M: UnsafeMutablePointer<vFloat>)
```

## Parameters

- `l`: Number of elements in vector A and the number of rows in matrix M; must be a multiple of 4.
- `n`: Number of elements in vector B and the number of columns in matrix M; must be a multiple of 4.
- `A`: Vector with l elements.
- `B`: Vector with n elements.
- `M`: Matrix with l rows and n columns.

## Discussion

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]..

## See Also

### Matrix Operations (from vectorOps.h)

- [vSgeadd(_:_:_:_:_:_:_:)](accelerate/vsgeadd(_:_:_:_:_:_:_:).md)
- [vSgesub(_:_:_:_:_:_:_:)](accelerate/vsgesub(_:_:_:_:_:_:_:).md)
- [vSgemul(_:_:_:_:_:_:_:_:)](accelerate/vsgemul(_:_:_:_:_:_:_:_:).md)
- [vSgemm(_:_:_:_:_:_:_:_:_:_:_:)](accelerate/vsgemm(_:_:_:_:_:_:_:_:_:_:_:).md)
- [vSgetmi(_:_:)](accelerate/vsgetmi(_:_:).md)
- [vSgetmo(_:_:_:_:)](accelerate/vsgetmo(_:_:_:_:).md)
