Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
masrul authored Apr 19, 2022
1 parent 9e8819b commit 271ff92
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 6,29 @@
This library contains various operator overloading that helps reducing unneccessary for-looping,

```cpp
#include "vmath.h"

// Without vmath
for (int i=0; i<n; i){
A[i] = B[i] C;
}

// With vmath
A = B C;

// Without vmath
for (int i=0,i<n1, i){
for (int j=0;j=n2; j){
A[i,j] = B[i,j] C;
}
}

// With vmath
A = B C;
```
```cpp
#include "vmath.h"
A = B C;
```

Following operators can be overloaded using vmath.h
Expand Down

0 comments on commit 271ff92

Please sign in to comment.