# package phantom-algebra

Legend:
Library
Module
Module type
Parameter
Class
Class type

Usual mathematical operations extended to tensors

As general rules these functions operates element-wise.

`val cos : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

Trignonometric functions

`val sin : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val tan : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val acos : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val asin : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val atan : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

## Hyperbolic functions

`val cosh : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val sinh : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val tanh : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val atanh : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

## Exponential and logarithm

`val log : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val expm1 : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

## Order functions

`val max : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val min : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

## Truncation function

`val ceil : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val floor : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

## Bit manipulation

```val copysign : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t```
```val ldexp : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t```

## Miscellaneous

`val sqrt : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`
`val fmod : ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t -> ('dim, 'rank) Core.t`

Innovation. Community. Security.

##### Ecosystem
Packages Community Events OCaml Planet Jobs
##### Policies
Carbon Footprint Governance Privacy Code of Conduct