Skip to main content

A small package to implement basic linear algebra operations

Project description

linear_algebra

Motivation

  • Review linear algebraby implementing concenpts in Python code
  • Learn OOP in Python

Installation

pip install

Features


Completed

  • Vector

    # Initialize vector 
    v_1 = Vector(1, 2, 3)
    v_2 = Vector(4, 5, 6)
    
  • Add (+)

  • [in]: Vector(1, 2, 3) + Vector(4, 5, 6)
    [out]: Vecotr(5, 7, 9)
    
  • Subtract (-)

  • [in]: Vector(3, 2, 1) - Vector(1, 1, 1)
    [out]: Vector(2, 1, 0) 
    
  • Multiply (*)

  • # scaler
    [in]: 2 * Vector(1, 2, 3)
    [out]: Vector(2, 4, 6)
    
    # inner product
    [in]: Vector(1, 2, 3) * Vector(1, 1, 1)
    [out]: 6
    
  • .norm

  • # .norm attribute of the vector is the length or magnitude of the 
    # vector
    [in]: Vector(1, 2, 3).norm
    [out]: 3.7419573
    

To be Implemented

  • Matrix

Project details


Release history Release notifications

This version

0.0.1

Download files

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

Files for simple-linear-algebra, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size simple_linear_algebra-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page