---
title: "init(arithmetic_function:arithmetic_function_fields:activation:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnnslayerparametersarithmetic/init(arithmetic_function:arithmetic_function_fields:activation:)"
---

# init(arithmetic_function:arithmetic_function_fields:activation:)

Returns a new arithmetic layer parameters structure.

## Declaration

```swift
init(arithmetic_function: BNNSArithmeticFunction, arithmetic_function_fields: UnsafeMutableRawPointer, activation: BNNSActivation)
```

## Parameters

- `arithmetic_function`: The arithmetic function.
- `arithmetic_function_fields`: A pointer to an arithmetic function field structure.
- `activation`: The activation function that the layer applies to the output.
