通用函数:快速的元素级数组函数

  通用函数(及ufunc)是一种对ndarray中的数据执行元素级运算的函数。你可以将其看作简单函数(接受一个或多个标量值,并产生一个或多个标量值)的矢量化包装器。

  https://zhuanlan.zhihu.com/p/33468084

  abs,fabs

  sqrt

  square

  exp

  log,log10,log2,log1p

  sign

  ceil

  floor

  rint

  modf

  isnan

  isfinite,isinf

  cos,cosh,sin,sinh

  tan,tanh

  arccos,arccosh,arcsin,aarcsinh,arctan,arctanh

  logical_not

  

  add

  subtract

  multiply

  divide,floor_divide

  power

  maximun,fmax

  minimun,fmin

  mod

  copysign

  greater,greater_equal,less,less_equal,equal,not_equal

  logical_and,logical_or,logical_xor

  

猜你喜欢

转载自www.cnblogs.com/654321cc/p/9074766.html