https://github.com/fabianmurariu/graphblas-java-native
graphblas wrapper for java using JNI
https://github.com/fabianmurariu/graphblas-java-native
Last synced: 3 months ago
JSON representation
graphblas wrapper for java using JNI
- Host: GitHub
- URL: https://github.com/fabianmurariu/graphblas-java-native
- Owner: fabianmurariu
- License: apache-2.0
- Created: 2020-05-06T21:01:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T11:47:34.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T09:47:02.992Z (3 months ago)
- Language: C
- Size: 158 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JNI bindings for GraphBLAS
## Build and get the code
```bash
git clone --recurse-submodules https://github.com/fabianmurariu/graphblas-java-native.git# this will build GraphBLAS for you and build the maven java project
make graphblas-java# to install GraphBLAS
sudo make grb-install
# if you don't wish to install you need to set
# LD_LIBRARY_PATH=$(pwd)/GraphBLAS/build:$LD_LIBRARY_PATH
# before running the maven tests outside of make
```
## For usage check tests
in [GRAPHBLASSpec.scala](https://github.com/fabianmurariu/graphblas-java-native/blob/master/graphblas-java/src/test/scala/com/github/fabianmurariu/unsafe/GRAPHBLASSpec.scala)### Create a Matrix
```scala
Buffer mat = GRBCORE.createMatrix(GRAPHBLAS.booleanType(), rows, cols)
```