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


Download files

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

Source Distribution

simple_linear_algebra-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

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