zoukankan      html  css  js  c++  java
  • NumPy Introduction

    原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12243889.html

    Introduction

    NumPy is the fundamental package for scientific computing with Python. It contains among other things:

    • a powerful N-dimensional array object
    • sophisticated (broadcasting) functions
    • tools for integrating C/C++ and Fortran code
    • useful linear algebra, Fourier transform, and random number capabilities

    Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases.

    Why NumPy is so important?

    One of the reasons NumPy is so important for numerical computations in Python is because it is designed for efficiency on large arrays of data.

    There are a number of reasons for this:

    • NumPy internally stores data in a contiguous block of memory, independent of other built-in Python objects. NumPy’s library of algorithms written in the C language can operate on this memory without any type checking or other overhead. NumPy arrays also use much less memory than built-in Python sequences.
    • NumPy operations perform complex computations on entire arrays without the need for Python for loops.

    e.g.

    Conclusion

    NumPy-based algorithms are generally 10 to 100 times faster (or more) than their pure Python counterparts and use significantly less memory.

    Reference

    Python for Data Analysis Second Edition

    https://numpy.org/

  • 相关阅读:
    VB与SQL Server实现文件上传下载
    rszl数据表和crjsj数据表的关联查询
    网吧忘关QQ的后果
    走 近 WSH
    形容长得丑的30句经典句子
    关机VBS脚本
    C51单片机中断定义
    .NET架构的核心技术
    SQL SERVER的命令行工具Osql的用法
    七七情人节
  • 原文地址:https://www.cnblogs.com/agilestyle/p/12243889.html
Copyright © 2011-2022 走看看