Skip to content

A computation and visualisation library for vector operations

Notifications You must be signed in to change notification settings

rish-16/open-vector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-vector

A computation and visualisation library for vector operations and manipulation to simplify Machine Learning math.


Installation

To install openvector, you can simply use pip:

pip install openvector

Usage

To start visualising vectors, you first need to instantiate an OpenVectorSpace object that enables you to draw, manipulate and operate on vectors.

from openvector import OpenVectorSpace
import numpy as np

ovs = OpenVectorSpace()
a_ = np.array([1, 2, 3])
b_ = np.array([3, 5, 1])
c_ = ovs.cross(a_, b_) # cross product
d_ = ovs.kvecmul(2, c_) # multiplying scalar to vector

ovs.plot([a_, b_, d_])
ovs.add_legend(['a', 'b', 'd'])
ovs.show()

This should render a figure that looks like this:


Features

openvector comes with a range of functions and utilities to use to manipulate vectors. You can test theorems on vectors and can get their reflections. Some of these features include:

  1. Ratio Theorem
  2. Reflection
  3. Foot of a perpendicular from a line
  4. Foot of a perpendicular from a place
  5. Angles between lines, vectors, and planes

About

A computation and visualisation library for vector operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published