Skip to main content

No project description provided

Project description

This library contains 3 functions that are meant to be used for tensor transformations. Mostly they are built using standard python library with some functionalities of numpy.

The 3 functions in question:

-transpose2d(tensor): takes a tensor in the format "list[list[float]]". This tensor will then be transposed. Returns a list.

-window1d(array, size, *shift, *stride): "array" takes an array in format list or np.ndarray; "size", of which size you want to get your windows; "shift" (default = 1) optional argument, which determines step in between window calculations; "stride" (default = 1) optional argument, which represents the step size. Returns a list.

-convolution2d(matrix, kernel, *stride): "matrix" takes an np.ndarray that you would like to make calculations on; "kernel" takes an np.ndarray that will be used to do calculations on original matrix; "stride" (default = 1) optional argument that represents the step size, when generating result. Returns np.ndarray.

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

ndtransform-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

ndtransform-0.1.2-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

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