Code Monkey home page Code Monkey logo

open-vector's Introduction

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

open-vector's People

Contributors

rish-16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.