---
title: cos()
framework: accelerate
role: symbol
role_heading: Instance Method
path: accelerate/bnnsgraph/builder/tensor/cos()
---

# cos()

Adds an element-wise cos operation to the current graph.

## Declaration

```swift
func cos() -> BNNSGraph.Builder.Tensor<T>
```
