Giter Site home page Giter Site logo

prithvitewatia / matrix_h Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 11.01 MB

Matrix_h hosts a fast, efficient and easy to use C linear algebra library

License: MIT License

C 62.61% Makefile 19.86% CMake 0.76% C++ 16.78%
libmatrix linear-algebra-library matrices c matrix

matrix_h's Introduction

Libmatrix

Libmatrix is a fast, efficient and easy to use C linear algerbra library.
Documentation Status License: MIT Contributor Covenant

MOTIVATION

This project was started to develop a linear algebra library written in the C programming language that is simple and easy to use without reducing the performance of the code

KEY FEATURES

  • Simple and easy to use
  • Fast and memory efficient
  • No explicit pointers
  • Error detection

INSTALLATION

Clone the repository into your computer by executing the following command in the terminal

git clone https://github.com/prithvitewatia/matrix_h

cd in the the repository

cd matrix_h

Run the following command

make libmatrix.a

If everything runs fine you will see files libmatrix.a and matrix.o generated in the directory. If not please make sure that you have gcc and make installed and set on the PATH. Link to
gcc: gcc
make: make

Congrats your library is now generated

Usage

  • Copy the matrix.h file and libmatrix.a to your project folder.
  • Include the library in your C file by using the include directive
#include "matrix.h"
  • To build your C file execute the command
gcc yourCfile.c  -L . -lmatrix -o yourOutputfile
  • Run your file by
./yourOutputfile

Happy coding!

EXAMPLES

A program to add to matrices and check if the result is equal to third matrix. example

The output of the above program example

Here is another example in which we calculate rank and determinant. example

Here is its output example

For official documentation visit matrix-h documentation

CAUTION

  • If x and y are two matrices do not use statements such as x=y to copy the contents of y into x. Rather use x=copy_matrix(y) to copy the contents. This is because statement x=y will make the references of x and y same and hence further changes in y will lead to changes in x.
  • Also since floating point numbers are not infinitely precise therefore ieee has two representation of number 0 ie 0 and -0 . This is not a bug. This is just a way of representation in which no information is lost.

FEEDBACK AND SUGGESTIONS

This library is still under development . Write your queries to [email protected]

matrix_h's People

Contributors

ashutoshvarma avatar prithvitewatia avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ashutoshvarma

matrix_h's Issues

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.