NumPy Element Series Group function

Source: Internet
Author: User
Tags natural logarithm square root

unary functions
    • ABS, Fabs calculates the absolute value of an integer, floating point, or complex number. For non-complex values, a faster fabs can be used.
    • SQRT calculates the square root of each element. Equivalent to ARR * * 0.5
    • Sqare calculates the square of each element. Equivalent to arr * * 2
    • Exp calculates the e^x of each element
    • Log, log10, log2, log1p are the natural logarithm, the base is 10 log, the base is 2 log and log (1 + x).
    • Sign calculates the positive and negative numbers of each element: 1 (positive), 0 (0), 1 (negative).
    • Ceil computes the ceiling value of each element, which is the smallest integer greater than or equal to the value.
    • Floor calculates the floor value of each element, which is the smallest integer less than or equal to the value.
    • Rint rounds the values of each element to the nearest integer, preserving the Dtype.
    • MODF returns the fractional part of the array with the integer portion as two independent arrays.
    • isNaN returns a Boolean array that represents "which values are Nan (this is not a number)"
    • Isfinite, Isinf returns a representation of "which elements are finite (not inf, non-Nan)" or "which elements are
    • Infinite "Boolean array of type
    • Cos, cosh, sin, sinh, tan, tanh normal or hyperbolic trigonometric functions
    • Arccos, Arccosh, Arcsin, Arcsinh,
    • Arctan, Arctanh
    • Inverse trigonometric function
    • Logical_not calculates the true value of not x for each element. Equivalent to-arr.

Binary functions
    • Add adds the corresponding elements in the array
    • Subtract subtracts the elements from the second array from the first one
    • Multiply array element multiplication
    • Divide, Floor_divide division or down-divide method
    • Power calculates a^b for element B in the first array in the corresponding position in the elements a and the second array.
    • Maximum, Fmax the maximum value of the element-level calculation. Fmax will ignore Nan.
    • Minimum, the Fmin element-level minimum value calculation. Fmin will ignore Nan.
    • Modulo calculation of MoD element level
    • Copysign copy a symbol from the second array to the value in the first array
    • Greater, greater_equal, less,
    • Less_equal,equal, Not_equal
    • Performs an element-level comparison and eventually produces a Boolean array.
    • Logical_and, Logical_or,
    • Logical_xor
    • Performs an element-level truth-logic operation, resulting in a Boolean array

NumPy Element Series Group function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.