Code Monkey home page Code Monkey logo

linalg's Introduction

Linalg

C++ Implementation of A Linear Algebra Library

Table of contents

Overview

This library contains a basic implementation of three different classes on the real numbers domain: Polynomial, Vector and Matrix. Here, a brief overview of the functionalities for each kind of object is provided. To have a more precise idea of all the available methods just have a look to the header file linalg.hpp.

  • Polynomial

    • basic algebraic operations (addition, subtraction, multiplication and division)
    • evaluation in a specific point
    • evaluation of the derivative in a specific point
    • computation of the zeros (if all real)
  • Vector

    • basic algebraic operations (addition, subtraction)
    • multiplication by a scalar
    • Hadamard product (element-wise)
    • dot product
    • outer product
    • computation of the Lp norm (default: L2)
    • projection onto another Vector
  • Matrix

    • basic algebraic operations (addition, subtraction)
    • multiplication by a scalar
    • matrix multiplication
    • computation of the norm (L2, nuclear, default: Frobenius)
    • transposition
    • gaussian elimination
    • inversion
    • determination of the rank
    • computation of the trace
    • computation of the determinant by different methods (Laplace, default: Gauss)
    • eigendecomposition (only for symmetric matrices)
    • singular values decomposition (SVD) for rectangular matrices
    • QR decomposition
    • Cholesky decomposition for positive definite matrices
    • LU decomposition
    • computation of the characteristic Polynomial
  • Others

    • dot product between Matrix and Vector
    • Gram-Schmidt orthonormalization
    • 1D convolution between vectors
    • 2D convolution between matrices

Usage

First of all, you have to clone the repository and change directory:

git clone https://github.com/ryandoren/Linalg.git
cd linalg

Then, you can easily build the linalg library (on Linux system only) using CMake:

cmake .
make

Finally, you can run as an example the executable example.out simply typing:

./example.out

linalg's People

Contributors

randaldong 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.