Skip to main content

Expedite array circulation

Project description

加速数组循环库(Accelerated array loop library)

1. 简介(abstract)

由于python语言的自身特性,导致其在循环上的效率很低,因此得采取一定措施提升速度。本库依托于numba库,加速数组循环的同时完成求差、和、均值等功能,目的是避免重复编写加速代码。
Due to the characteristics of the python language, its efficiency in the loop is very low, so some measures must be taken to improve the speed. This library relies on numba library to accelerate the array cycle while completing the difference, sum, mean and other functions, the purpose is to avoid repeated writing of acceleration code.

2. 使用说明(Use Method)

  • install the lib: pip install michaelPanExpediteLib

  • import numpy as np
    from michaelPanExpediteLib.expedite_array_circulation import circulation_array
    
    
    arr1 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
    arr2 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
    temp_array = np.ones((3, 3))
    temp_array_num = np.zeros((3, 3))
    x_dim = 3
    y_dim = 3
    # circulation_array(data1, data2, temp_array, y_dim, x_dim, data_fill, method, temp_array_num=None)
    temp_array, temp_array_num = circulation_array(arr1, arr2, temp_array, y_dim, x_dim, 1, 'add', temp_array_num)
    

3.作者及联系方式

# ***************************************************************
# Maintainers:
#     chuntong pan <panzhang1314@gmail.com>
# Date:
#     2023.8
# ***************************************************************

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

michaelPanExpediteLib-0.0.3.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

michaelPanExpediteLib-0.0.3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file michaelPanExpediteLib-0.0.3.tar.gz.

File metadata

  • Download URL: michaelPanExpediteLib-0.0.3.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for michaelPanExpediteLib-0.0.3.tar.gz
Algorithm Hash digest
SHA256 22433f6eb6776340b0e549c48663537bdfd3e1c454f680cf5c6d4e1a1cf0db4b
MD5 57c9025a49ec84949f5ac1afc768e567
BLAKE2b-256 42bab907d353f8d4fde3d5d188799c1ad57d708f50d335530681884f7f210abe

See more details on using hashes here.

File details

Details for the file michaelPanExpediteLib-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for michaelPanExpediteLib-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a74475af82902e51c3c00a131753424c911413df3d1defcff0778f29948e87d1
MD5 482d59577f3d4627fea7a70e72e24830
BLAKE2b-256 20edb5a046527e69d8c4806a5fb09e34338a26e903a65225beffd6bb138a2815

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page