Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhomble/yasml
A basic matrix library written in C
https://github.com/nhomble/yasml
Last synced: about 1 month ago
JSON representation
A basic matrix library written in C
- Host: GitHub
- URL: https://github.com/nhomble/yasml
- Owner: nhomble
- License: mit
- Created: 2013-03-22T16:25:16.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T04:55:10.000Z (over 3 years ago)
- Last Synced: 2023-05-17T23:45:41.490Z (over 1 year ago)
- Language: C
- Size: 62.5 KB
- Stars: 23
- Watchers: 4
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yet another simple Matrix Library - (yasML)
===========================================
![C CI](https://github.com/nhomble/yasML/workflows/C/C++%20CI/badge.svg?branch=master)# Usage
```c
#include "yasML.h"int main(void){
Matrix *i1, *m1, *res;i1 = identity(2);
m1 = constructor(2, 2);
m1->numbers[0][0] = 1;
m1->numbers[0][1] = 2;
m1->numbers[1][0] = 3;
m1->numbers[1][1] = 4;res = multiply(i1, m1);
print(res);return 0;
}
```
# Build
`yasML` needs `math.h` so remember to include `-lm`# Checkout
Don't forget
```bash
$ git submodule update --init
```