Skip to main content

加速数组循环库(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
# ***************************************************************

Release files for michaelPanExpediteLib 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for michaelPanExpediteLib 0.0.3
File Size Uploaded
michaelPanExpediteLib-0.0.3.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for michaelPanExpediteLib 0.0.3
File Interpreter ABI Platform
michaelPanExpediteLib-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / michaelPanExpediteLib-0.0.3.tar.gz

Download URL michaelPanExpediteLib-0.0.3.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22433f6eb6776340b0e549c48663537bdfd3e1c454f680cf5c6d4e1a1cf0db4b
BLAKE2b-256 checksum
How to use checksums
42bab907d353f8d4fde3d5d188799c1ad57d708f50d335530681884f7f210abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / michaelPanExpediteLib-0.0.3-py3-none-any.whl

Download URL michaelPanExpediteLib-0.0.3-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a74475af82902e51c3c00a131753424c911413df3d1defcff0778f29948e87d1
BLAKE2b-256 checksum
How to use checksums
20edb5a046527e69d8c4806a5fb09e34338a26e903a65225beffd6bb138a2815
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page