<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vForce/log(_:)-2gh9a",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vForceO3logySaySdGxAA0A6BufferRzSd7ElementRtzlFZ"
  },
  "title" : "log(_:)"
}
-->

# log(_:)

Returns the natural logarithm for each element in a vector of double-precision values.

```
static func log<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
```

## Parameters

`vector`

The input vector.

---

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)