<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vSgevv(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vSgevv"
  },
  "title" : "vSgevv(_:_:_:_:_:)"
}
-->

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

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)