---
title: MTLMathMode
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtlmathmode
---

# MTLMathMode

An indication of whether the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard.

## Declaration

```swift
enum MTLMathMode
```

## Topics

### Modes

- [MTLMathMode.fast](metal/mtlmathmode/fast.md)
- [MTLMathMode.relaxed](metal/mtlmathmode/relaxed.md)
- [MTLMathMode.safe](metal/mtlmathmode/safe.md)

### Initializers

- [init(rawValue:)](metal/mtlmathmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [MTLTensorError.Code](metal/mtltensorerror-swift.struct/code.md)
- [MTLArgumentBuffersTier](metal/mtlargumentbufferstier.md)
- [MTLLogStateError](metal/mtllogstateerror.md)
- [MTLMathFloatingPointFunctions](metal/mtlmathfloatingpointfunctions.md)
- [MTLMatrixLayout](metal/mtlmatrixlayout.md)
- [MTLReadWriteTextureTier](metal/mtlreadwritetexturetier.md)
- [MTLShaderValidation](metal/mtlshadervalidation.md)
- [MTLTransformType](metal/mtltransformtype.md)
