Expedite array circulation
Project description
加速数组循环库(Accelerated array loop library)
1. 简介(abstract)
由于python语言的自身特性,导致其在循环上的效率很低,因此得采取一定措施提升速度。本库依托于numba库和tqdm库,加速数组循环的同时显示循环进度,目的是避免重复编写加速代码。
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 and tqdm library to accelerate the array loop while showing the loop progress, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for michaelPanExpediteLib-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e25bb69c9d6607eb1e261527ce5bb8e03379605c44919eaf0fd23200eb5c40b5 |
|
MD5 | 472eb53fa3bbb73a3e2c4b774b992610 |
|
BLAKE2b-256 | c3ced6a6e3f3aac36c73c482d0bcbb07469d4c7167516d5be72b7336e00096cd |
Close
Hashes for michaelPanExpediteLib-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35188f531948caddbc85106888dcbad256953a744ef1f7d3b0c9321a02389960 |
|
MD5 | 52f746a1f1650420c0182087e7ac6cc5 |
|
BLAKE2b-256 | b3fc77e4731c4c7d965eade9d295b658ec1e3a8c0296b6565181260b880cb049 |