Git Product home page Git Product logo

Lightkeeper's Projects

qmsolve icon qmsolve

⚛️ A module for solving and visualizing the Schrödinger equation.

udacitymatrixclass icon udacitymatrixclass

Implementing a Matrix Class In this project you will implement a Matrix class in Python. Specifically, you will implement the following methods: class Matrix: def determinant(self): # your code def trace(self): # your code def inverse(self): # your code def transpose(self): # your code # Overloaded operators def __add__(self,other): # your code def __sub__(self,other): # your code def __mul__(self,other): # your code When your class is working properly you will be able to manipulate matrices in code as if they were regular numbers (for the most part). For example: > A = Matrix([ [2,4], [3,1] ]) > print( A.transpose()) 2.0 3.0 4.0 1.0 > > I = Matrix([ [1,0], [0,1] ]) > > print(A*I) 2.0 4.0 3.0 1.0 > > print(A * A.inverse()) 1.0 0.0 0.0 1.0 Project Instruction Your project workspace will contain several files. On the next page, you will see something like this: notebook screenshot We recommend that you open all of these files in new tabs (except datagenerator.py and test.py, which you won't need to modify) so that your browser looks something like this: jupyter multiple tabs matrix.py - This contains the beginnings of a Matrix class (which you will complete) as well as some helper functions zeroes and identity. This is the file you will be doing most of your work in. matrix_playground.ipynb - A notebook that imports your Matrix class and calls the test code. You may find it useful to use this notebook as a place to use the matrix math code you will write in matrix.py. matrix_cheat_sheet.ipynb - A Jupyter notebook with a glossary, explanation of matrix notation and list of matrix equations. Use this as a reference when filling out the methods in the Matrix class! kalman_filter_demo.ipynb - You don't need to do anything with this notebook but you may find it interesting. Once your matrix class is working properly, the KF implemented here will actually work! Other Files (feel free to ignore). test.py - Contains test code which demonstrates the expected functionality of your code. datagenerator.py - this just contains some helper code which is used by the Kalman Filter.

vue.d3.tree icon vue.d3.tree

Vue component to display tree based on D3.js layout.

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.