---
title: "vIsmax(_:_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/vismax(_:_:)"
---

# vIsmax(_:_:)

Finds the position of the first vector element having the maximum value.

## Declaration

```swift
func vIsmax(_ count: Int32, _ x: UnsafePointer<vFloat>) -> Int32
```

## Parameters

- `count`: Number of elements in the vector x; must be a multiple of 4.
- `x`: A vector array of float values.

## Return Value

Return Value The index of the first element having the maximum value in the vector.

## See Also

### Vector-Scalar Linear Algebra Functions (from vectorOps.h)

- [vIsamax(_:_:)](accelerate/visamax(_:_:).md)
- [vIsamin(_:_:)](accelerate/visamin(_:_:).md)
- [vIsmin(_:_:)](accelerate/vismin(_:_:).md)
- [vSasum(_:_:)](accelerate/vsasum(_:_:).md)
- [vSsum(_:_:)](accelerate/vssum(_:_:).md)
- [vSaxpy(_:_:_:_:)](accelerate/vsaxpy(_:_:_:_:).md)
- [vSnaxpy(_:_:_:_:_:)](accelerate/vsnaxpy(_:_:_:_:_:).md)
- [vScopy(_:_:_:)](accelerate/vscopy(_:_:_:).md)
- [vSdot(_:_:_:)](accelerate/vsdot(_:_:_:).md)
- [vSndot(_:_:_:_:_:_:)](accelerate/vsndot(_:_:_:_:_:_:).md)
- [vSnrm2(_:_:)](accelerate/vsnrm2(_:_:).md)
- [vSnorm2(_:_:)](accelerate/vsnorm2(_:_:).md)
- [vSrot(_:_:_:_:_:)](accelerate/vsrot(_:_:_:_:_:).md)
- [vSscal(_:_:_:)](accelerate/vsscal(_:_:_:).md)
- [vSswap(_:_:_:)](accelerate/vsswap(_:_:_:).md)
