<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/minimum(_:)-4w8y3",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO7minimumySdxAA0A6BufferRzSd7ElementRtzlFZ"
  },
  "title" : "minimum(_:)"
}
-->

# minimum(_:)

Returns the double-precision minimum value of a vector.

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

## Parameters

`vector`

The input vector.

## Return Value

The minimum value of the vector.

## Discussion

This function calculates the minimum value of the first `N` elements of input vector `A`, and writes the result to output scalar `C`.

![A diagram showing the operation of this function. There are three rows. The top row represents the input vector, A, with three boxes. The middle row represents the operation a box that contains the minimum function. The bottom row represents the output scalar value C as a  box. The diagram has connecting lines from the input vector to the operation, and from the operation to the output scalar value.](images/com.apple.accelerate/media-4465974@2x.png)

The following code shows an example of using this function:

```swift
let a: [Double] = [-1.5, 2.25, 3.6,
                   0.2, -0.1, -4.3]

let minimum = vDSP.minimum(a)
print("minimum", minimum) // Prints "minimum -4.3".
```

---

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)