A lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).
Project description
================
conv
================
Description
=============
Conv is a simple Python >= 3 package, lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).
Installation
=============
::
pip install conv
Example Usage
=============
::
from conv import convolved
some_list = [1, 2, 3]
for kernel_hover in convolved(some_list, kernel_size=2, stride=1, padding=2, default_value=42):
print(kernel_hover)
Result:
----------
::
[42, 42]
[42, 1]
[1, 2]
[2, 3]
[3, 42]
[42, 42]
Unit Tests:
----------
::
python setup.py test
A ``convolved_2d`` function also exists. See tests for more examples.
Notes
=============
License: MIT
Author: Guillaume Chevalier
conv
================
Description
=============
Conv is a simple Python >= 3 package, lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).
Installation
=============
::
pip install conv
Example Usage
=============
::
from conv import convolved
some_list = [1, 2, 3]
for kernel_hover in convolved(some_list, kernel_size=2, stride=1, padding=2, default_value=42):
print(kernel_hover)
Result:
----------
::
[42, 42]
[42, 1]
[1, 2]
[2, 3]
[3, 42]
[42, 42]
Unit Tests:
----------
::
python setup.py test
A ``convolved_2d`` function also exists. See tests for more examples.
Notes
=============
License: MIT
Author: Guillaume Chevalier
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
conv-0.1-py3-none-any.whl
(6.2 kB
view details)
File details
Details for the file conv-0.1-py3-none-any.whl.
File metadata
- Download URL: conv-0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb8723f2ab717ff8050cb080c250276650b72d40dac1035b07e1d69a774397f
|
|
| MD5 |
62f3061a727afc3baeb95a47e081cb26
|
|
| BLAKE2b-256 |
539c67604d990498c576047a557f1da12781f161dbd65596dabe130494ecc3ce
|