``brainunit.math`` module
=========================

.. currentmodule:: brainunit.math 
.. automodule:: brainunit.math 

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

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

   relu
   relu6
   sigmoid
   softplus
   sparse_plus
   sparse_sigmoid
   soft_sign
   silu
   swish
   log_sigmoid
   leaky_relu
   hard_sigmoid
   hard_silu
   hard_swish
   hard_tanh
   elu
   celu
   selu
   gelu
   glu
   squareplus
   mish


Unit Processing
---------------

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

   is_dimensionless
   is_unitless
   get_dim
   get_unit
   get_mantissa
   get_magnitude
   display_in_unit
   maybe_decimal
   check_dims
   check_units
   fail_for_dimension_mismatch
   fail_for_unit_mismatch
   assert_quantity
   get_or_create_dimension


Einstein Operations
-------------------

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

   einreduce
   einrearrange
   einrepeat
   einshape
   einsum


Functions that Accepting Unitless
---------------------------------

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

   exprel
   set_exprel_order
   exp
   exp2
   expm1
   log
   log10
   log1p
   log2
   arccos
   arccosh
   arcsin
   arcsinh
   arctan
   arctanh
   cos
   cosh
   sin
   sinc
   sinh
   tan
   tanh
   deg2rad
   rad2deg
   degrees
   radians
   angle
   frexp
   hypot
   arctan2
   logaddexp
   logaddexp2
   corrcoef
   correlate
   cov
   ldexp
   bitwise_not
   invert
   bitwise_and
   bitwise_or
   bitwise_xor
   left_shift
   right_shift


Array Creation Functions
------------------------

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

   full
   eye
   identity
   tri
   empty
   ones
   zeros
   full_like
   diag
   tril
   triu
   empty_like
   ones_like
   zeros_like
   fill_diagonal
   array
   asarray
   arange
   linspace
   logspace
   meshgrid
   vander
   tril_indices
   tril_indices_from
   triu_indices
   triu_indices_from
   from_numpy
   as_numpy
   tree_ones_like
   tree_zeros_like


Functions that Changing Unit
----------------------------

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

   reciprocal
   prod
   product
   nancumprod
   nanprod
   cumprod
   cumproduct
   var
   nanvar
   cbrt
   square
   sqrt
   multiply
   divide
   power
   cross
   true_divide
   floor_divide
   float_power
   divmod
   convolve
   dot
   multi_dot
   vdot
   vecdot
   inner
   outer
   kron
   matmul
   tensordot
   matrix_power


Functions that Keeping Unit
---------------------------

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

   row_stack
   concatenate
   stack
   vstack
   hstack
   dstack
   column_stack
   block
   append
   split
   array_split
   dsplit
   hsplit
   vsplit
   atleast_1d
   atleast_2d
   atleast_3d
   broadcast_arrays
   broadcast_to
   reshape
   moveaxis
   transpose
   swapaxes
   tile
   repeat
   flip
   fliplr
   flipud
   roll
   expand_dims
   squeeze
   sort
   max
   min
   amax
   amin
   diagflat
   diagonal
   choose
   ravel
   flatten
   unflatten
   remove_diag
   astype
   real
   imag
   conj
   conjugate
   negative
   positive
   abs
   sum
   nancumsum
   nansum
   cumsum
   ediff1d
   absolute
   fabs
   median
   nanmin
   nanmax
   ptp
   average
   mean
   std
   nanmedian
   nanmean
   nanstd
   diff
   rot90
   intersect1d
   nan_to_num
   percentile
   nanpercentile
   quantile
   nanquantile
   round
   around
   rint
   floor
   ceil
   trunc
   fix
   modf
   fmod
   mod
   copysign
   remainder
   maximum
   minimum
   fmax
   fmin
   lcm
   gcd
   trace
   add
   subtract
   nextafter
   promote_dtypes
   interp
   clip
   histogram
   compress
   extract
   take
   select
   where
   unique
   gather


Functions that Removing Unit
----------------------------

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

   iscomplexobj
   heaviside
   signbit
   sign
   bincount
   digitize
   get_promote_dtypes
   all
   any
   logical_not
   equal
   not_equal
   greater
   greater_equal
   less
   less_equal
   array_equal
   isclose
   allclose
   logical_and
   logical_or
   logical_xor
   alltrue
   sometrue
   argsort
   argmax
   argmin
   nanargmax
   nanargmin
   argwhere
   nonzero
   flatnonzero
   searchsorted
   count_nonzero
   diag_indices_from


Other Functions
---------------

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

   finfo
   iinfo
   is_quantity
   issubdtype
   result_type
   ndim
   isreal
   isscalar
   isfinite
   isinf
   isnan
   shape
   size
   get_dtype
   is_float
   is_int
   broadcast_shapes
   gradient
   bartlett
   blackman
   hamming
   hanning
   kaiser
   bool_
   uint2
   uint4
   uint8
   uint16
   uint32
   uint64
   int2
   int4
   int8
   int16
   int32
   int64
   bfloat16
   float16
   float32
   float64
   complex64
   complex128
   int_
   uint
   float_
   complex_
   single
   double
   csingle
   cdouble
   inexact
   dtype
   e
   pi
   inf
   nan
   euler_gamma
   newaxis


