Skip to content

A simple matrix math lib, it is intended to be used in my homebrew nn framework. It uses generic numeric types for all computations

License

Notifications You must be signed in to change notification settings

ivario123/matrix_math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matrix_math

build run_tests

What is this?

This is my matrix math library, it is at worst linear memory and hopefully constant memory for everything that does not need instantiation of temporary variables. It is also written to allocate memory at compile time and not use dynamic memory allocation. This is done to optimize it for embedded systems and neural networks where we know the size of each layer, it is not good for neat tho, as that would require a lot of reallocating memory.

So you want to use this in your project?

Just add this line to your cargo.toml

matrs = "0.2.0"

How it works

Matrices and vectors support the basic linear algebra operations. Read through the docs for more information.

Future plans

  • Implement usage of tpu and gpus for faster computation.
  • Implement usage of multiple threads for faster computation.
  • Implement more optimized algorithms.
  • Implement for specific compile targets, such as RISC-v vector extensions.
  • Implement more mathematical operations
  • Implement more rigorous error handling.

License

This software is provided with zero warranty. And it is free to use. For more info please see the license

Contributing

Before contributing please read the entire docs to make sure you understand what the goal of the project is. Also, read the contributing guide ( Not done yet ), then if you have any questions please ask on the github issues. Finally when you have any code to submit feel free to fork the repo and submit a pull request.

About

A simple matrix math lib, it is intended to be used in my homebrew nn framework. It uses generic numeric types for all computations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages