MCPcopy Create free account
hub / github.com/ml-explore/mlx / tan

Function tan

mlx/ops.cpp:3013–3017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3011}
3012
3013array tan(const array& a, StreamOrDevice s /* = {} */) {
3014 auto dtype = at_least_float(a.dtype());
3015 auto input = astype(a, dtype, s);
3016 return array(a.shape(), dtype, std::make_shared<Tan>(to_stream(s)), {input});
3017}
3018
3019array arcsin(const array& a, StreamOrDevice s /* = {} */) {
3020 auto dtype = at_least_float(a.dtype());

Callers 4

init_opsFunction · 0.85
vmapMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 4

astypeFunction · 0.85
to_streamFunction · 0.85
at_least_floatFunction · 0.70
arrayFunction · 0.70

Tested by

no test coverage detected