https://github.com/michelp/ssgbcpp
https://github.com/michelp/ssgbcpp
Last synced: about 1 hour ago
JSON representation
- Host: GitHub
- URL: https://github.com/michelp/ssgbcpp
- Owner: michelp
- Created: 2021-03-29T16:29:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-31T16:45:23.000Z (about 5 years ago)
- Last Synced: 2025-02-27T05:14:29.184Z (over 1 year ago)
- Language: C++
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssgbcpp
C++ Classes around SuiteSparse::GraphBLAS.
This is a header-only library that you include in your C++ that will
generate C++ wrapper classes around the SuiteSparse GraphBLAS C API.
```
#include
#include
Matrix A(GrB_UINT64);
A.setElement (42, 1, 2);
assert (A.nvals () == 1);
A.print ();
Matrix B(GrB_UINT64, 10, 20);
B.setElement (42, 4, 2);
assert (B.nrows () == 10);
assert (B.ncols () == 20);
assert (B.nvals () == 1);
B.print ();
```