<!--
{
  "availability" : [
    "iOS: 8.0.0 - 14.0.0",
    "iPadOS: 8.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.10.0 - 11.0.0",
    "tvOS: 8.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 1.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/la_outer_product(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@la_outer_product"
  },
  "title" : "la_outer_product(_:_:)"
}
-->

# la_outer_product(_:_:)

```
func la_outer_product(_ vector_left: la_object_t, _ vector_right: la_object_t) -> la_object_t
```

## Discussion\abstract Compute the outer product of two vectors.
\discussion Splats are not supported by this function.  If either operand
is a splat, the result has status LA_INVALID_PARAMETER_ERROR.

If either operand is a matrix that is not 1xn or nx1, the result has the
status LA_INVALID_PARAMETER_ERROR.

If either operand is not a vector or matrix, the result has the status
LA_INVALID_PARAMETER_ERROR.

Otherwise the result is a matrix containg the outer product.  It has
length(vector_left) rows and length(vector_right) columns.  The i,jth
element of the matrix is vector_left[i] * vector_right[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)