Skip to main content

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


Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
conv-0.1-py3-none-any.whl (6.2 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page