Skip to main content

VECTOR KIT

Vector Kit seeks to make vector arithmetic simple for everyone. It may serve as a utility in a large ecosystem of scientific libraries or, more simply, as a toy to be played with to understand Vector math. This is a work in progress, and may not yet be ready for large data munging.

INSTALLATION

$ sudo pip install vectorkit

RUN INTERACTIVE SHELL

$ vectorkit

=====================================================

        VECTORKIT :: v0.1.6
        Interactive Shell

=====================================================
>>>>
>>>>

IMPORTING

import vectorkit

OR,

from vectorkit import Vector, isovector, randvec

OVERVIEW

Properties

components - a list of the components of a vector

dimensions - the dimension of the vector, or count of its components

min - the minimum component

max - the maximum component

sum - the sum of the components of a vector

memsize - the size of a vector in memory

Methods

add - Adds two vectors

append - Appends new components to a vector

concat - Merges two vectors into a single vector

corr - Returns the correlation of two vectors

cov - Returns the covariance between two vectors

crossmul - Returs the cross product of two 3-dimensional vectors

describe - Returns a description of a vector, including its dimensions and memory size

distance - Returns the euclidean distance between two vectors

dotmul - Returns the dot product between two vectors

insert - Inserts a new component at a specified index

magnitude - Returns the magnitude of a vector

mean - Returns the mean of the components of a vector

minmax - Returns a variant of a vector which has been normalized using standard min-max feature scaling

minmaxmean - Returns a variant of a vector which has been normalized using standard mean and min-max feature scaling

mse - Returns the mean square error of two vectors

normalize - Returns a variant of a vector which has been normalized using the z-score or standard deviation

pad - Appends zeroes to vectors to a specified length, in-place

padded - Returns a new vector with zero appended to it to a specified length,

pop - Removes a component at a specified location

relu - Passes a vector through a Rectified Linear Unit function and returns a new vector

reverse - Reverses the direction of a vector in-place

reversed - Returns a variant of a vector with reversed direction

sdiv - Returns a new vector, which is the quotient from a scalar division of a vector

shuffle - Shuffles vector components in place

shuffled - Returns a new vector with shuffled version of a vector's components

sigmoid - Passes a vector through a logistic sigmoid function and returns a new vector

smul - Returns a new vector, which is the product from a scalar multiplication of a vector

softmax - Passes a vector through a softmax function and returns a new vector

std - Returns the standard deviation of the components of a vector

stdnorm - Returns a variant of a vector which has been normalized using the z-score or standard deviation

subtract - Returns a new vector, which is the result of the subtraction of one vector from another

subvec - Returns a new vector which is a slice from the original vector

tanh - Passes a vector through a TanH function and returns a new vector

to_list - Returns a list of the components of a vector

to_tuple - Returns a tuple of the components of a vector

unitvec - Returns a new vector which has been scaled to unit length

vector_eq - Returns the vector equation of a line between two vectors

Other

isovector - Returns a vector of a specified length containing the same component throughout

randvec - Generates a vector of specified length having random components

REGULAR USAGE

Read full detailed usage guidelines here

Metadata

Release files for vectorkit 0.1.9

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

Source distribution (sdist)

Source distribution for vectorkit 0.1.9
File Size Uploaded Provenance Actions
vectorkit-0.1.9.tar.gz 10.0 kB Without provenance Details for vectorkit-0.1.9.tar.gz

Built distribution (wheel)

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

Total release size: 20.0 kB

Release files / vectorkit-0.1.9.tar.gz

Download URL vectorkit-0.1.9.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9717901c2920a270a2e81f05b436bf0d12d801788a0c0b63f966e08f6d8c2828
BLAKE2b-256 checksum
How to use checksums
957ec64715ee861335277bef03e60882c187a7e4e88a69d09307fb811961ee98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Release files / vectorkit-0.1.9-py3-none-any.whl

Download URL vectorkit-0.1.9-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47f789326d873e64bd0c9ac5a667bdf3c04fed3cd9e2d78fe369c37130f5ce0e
BLAKE2b-256 checksum
How to use checksums
5f78db11f083b5dd22eb9f3eb11d23e690948888a26a85603c3af5ae0b1023a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Security for vectorkit 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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