General Mathematical Operators
==============================


.. currentmodule:: brainpy.math
.. automodule:: brainpy.math


.. contents::
   :local:
   :depth: 1



BrainPy Array
-------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

    Array
    ShardedArray



Array Interoperability to JAX
-----------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   as_device_array
   as_jax




Array Interoperability to NumPy
-------------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   as_ndarray
   as_numpy



Array Interoperability to BrainPy
---------------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   as_variable
   asarray


Activation Functions
--------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:
   :template: classtemplate.rst

   celu
   elu
   gelu
   glu
   prelu
   silu
   selu
   relu
   relu6
   rrelu
   hard_silu
   leaky_relu
   hard_tanh
   hard_sigmoid
   tanh_shrink
   hard_swish
   hard_shrink
   soft_sign
   soft_shrink
   softmax
   softmin
   softplus
   swish
   mish
   log_sigmoid
   log_softmax
   one_hot
   normalize
   sigmoid
   identity
   tanh

