# Convenient function API

## Class OperatorFuncs

Sometimes we may want to use Serrano as a math library to do quick tensor arithmetic calculation. In this situation, declaring and configuring operator instances will be a little bit too much. Serrano supports a class OperatorFuncs which wraps all an operator's computation as a static function.

Example:

// log computation
let input = Tensor.randomTensor(TensorShape(dataType: .float, shape: [3, 3]))
let result = OperatorFuncs.log(input)