Package com.github.fabianmurariu.unsafe
Class GRBCORE
- java.lang.Object
-
- com.github.fabianmurariu.unsafe.GRBCORE
-
public final class GRBCORE extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GRBCORE()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longclearMatrix(java.nio.Buffer mat)static longclearVec(java.nio.Buffer vec)static java.nio.BuffercreateDescriptor()static java.nio.BuffercreateMatrix(java.nio.Buffer tpe, long rows, long cols)static java.nio.BuffercreateSemiring(java.nio.Buffer monoidAdd, java.nio.Buffer binOpMul)static java.nio.BuffercreateVector(java.nio.Buffer tpe, long size)static java.nio.BufferdupMatrix(java.nio.Buffer mat)static java.nio.BufferdupVector(java.nio.Buffer vec)static longfreeDescriptor(java.nio.Buffer desc)static longfreeMatrix(java.nio.Buffer mat)static longfreeMonoid(java.nio.Buffer monoid)static longfreeSemiring(java.nio.Buffer semiring)static longfreeVector(java.nio.Buffer vec)static intgetDescriptorValue(java.nio.Buffer desc, int field)static intgetFormat(java.nio.Buffer mat)static doublegetGlobalDouble(int field)static intgetGlobalInt(int field)static doublegetHyperRatio(java.nio.Buffer mat)static longgrbFinalize()static longgrbWait()static longinitBlocking()static longinitNonBlocking()static longmakeCSC(java.nio.Buffer mat)static longmakeCSR(java.nio.Buffer mat)static longmatrixApply(java.nio.Buffer outMat, java.nio.Buffer mask, java.nio.Buffer accum, java.nio.Buffer op, java.nio.Buffer firstInput, java.nio.Buffer desc)static longmatrixWait(java.nio.Buffer mat)static longncols(java.nio.Buffer mat)static longneverHyper(java.nio.Buffer mat)static longnrows(java.nio.Buffer mat)static longnvalsMatrix(java.nio.Buffer mat)static longnvalsVector(java.nio.Buffer vec)static longremoveElementMatrix(java.nio.Buffer mat, long row, long col)static longremoveElementVector(java.nio.Buffer mat, long id)static longresizeMatrix(java.nio.Buffer mat, long rows, long cols)static longresizeVector(java.nio.Buffer vec, long size)static longsetDescriptorValue(java.nio.Buffer desc, int field, int value)static longsetGlobalDouble(int field, double value)static longsetGlobalInt(int field, int value)static longsetHyperRatio(java.nio.Buffer mat, double ratio)static longsize(java.nio.Buffer vec)static longvectorApply(java.nio.Buffer outVec, java.nio.Buffer mask, java.nio.Buffer accum, java.nio.Buffer op, java.nio.Buffer firstInput, java.nio.Buffer desc)static longvectorWait(java.nio.Buffer mat)
-
-
-
Field Detail
-
GrB_SUCCESS
public static int GrB_SUCCESS
-
GrB_NO_VALUE
public static int GrB_NO_VALUE
-
GrB_UNINITIALIZED_OBJECT
public static int GrB_UNINITIALIZED_OBJECT
-
GrB_INVALID_OBJECT
public static int GrB_INVALID_OBJECT
-
GrB_NULL_POINTER
public static int GrB_NULL_POINTER
-
GrB_INVALID_VALUE
public static int GrB_INVALID_VALUE
-
GrB_INVALID_INDEX
public static int GrB_INVALID_INDEX
-
GrB_DOMAIN_MISMATCH
public static int GrB_DOMAIN_MISMATCH
-
GrB_DIMENSION_MISMATCH
public static int GrB_DIMENSION_MISMATCH
-
GrB_OUTPUT_NOT_EMPTY
public static int GrB_OUTPUT_NOT_EMPTY
-
GrB_OUT_OF_MEMORY
public static int GrB_OUT_OF_MEMORY
-
GrB_INSUFFICIENT_SPACE
public static int GrB_INSUFFICIENT_SPACE
-
GrB_INDEX_OUT_OF_BOUNDS
public static int GrB_INDEX_OUT_OF_BOUNDS
-
GrB_PANIC
public static int GrB_PANIC
-
GxB_RANGE
public static long GxB_RANGE
-
GxB_STRIDE
public static long GxB_STRIDE
-
GxB_BACKWARDS
public static long GxB_BACKWARDS
-
NOT_REALLY_GRB_ALL
public static long NOT_REALLY_GRB_ALL
-
GrB_ALL
public static long[] GrB_ALL
-
GxB_HYPER
public static int GxB_HYPER
-
GxB_FORMAT
public static int GxB_FORMAT
-
GxB_NTHREADS
public static int GxB_NTHREADS
-
GxB_CHUNK
public static int GxB_CHUNK
-
GxB_MODE
public static int GxB_MODE
-
GxB_THREAD_SAFETY
public static int GxB_THREAD_SAFETY
-
GxB_THREADING
public static int GxB_THREADING
-
GxB_BY_ROW
public static int GxB_BY_ROW
-
GxB_BY_COL
public static int GxB_BY_COL
-
GxB_NO_FORMAT
public static int GxB_NO_FORMAT
-
GrB_NONBLOCKING
public static int GrB_NONBLOCKING
-
GrB_BLOCKING
public static int GrB_BLOCKING
-
GxB_THREAD_NONE
public static int GxB_THREAD_NONE
-
GxB_THREAD_OPENMP
public static int GxB_THREAD_OPENMP
-
GxB_THREAD_POSIX
public static int GxB_THREAD_POSIX
-
GxB_THREAD_WINDOWS
public static int GxB_THREAD_WINDOWS
-
GxB_THREAD_ANSI
public static int GxB_THREAD_ANSI
-
GrB_OUTP
public static int GrB_OUTP
-
GrB_MASK
public static int GrB_MASK
-
GrB_INP0
public static int GrB_INP0
-
GrB_INP1
public static int GrB_INP1
-
GxB_DESCRIPTOR_NTHREADS
public static int GxB_DESCRIPTOR_NTHREADS
-
GxB_DESCRIPTOR_CHUNK
public static int GxB_DESCRIPTOR_CHUNK
-
GxB_AxB_METHOD
public static int GxB_AxB_METHOD
-
GxB_DEFAULT
public static int GxB_DEFAULT
-
GrB_REPLACE
public static int GrB_REPLACE
-
GrB_COMP
public static int GrB_COMP
-
GrB_TRAN
public static int GrB_TRAN
-
GrB_STRUCTURE
public static int GrB_STRUCTURE
-
GxB_AxB_GUSTAVSON
public static int GxB_AxB_GUSTAVSON
-
GxB_AxB_HEAP
public static int GxB_AxB_HEAP
-
GxB_AxB_DOT
public static int GxB_AxB_DOT
-
GxB_AxB_HASH
public static int GxB_AxB_HASH
-
GxB_AxB_SAXPY
public static int GxB_AxB_SAXPY
-
-
Method Detail
-
initNonBlocking
public static long initNonBlocking()
-
initBlocking
public static long initBlocking()
-
grbWait
public static long grbWait()
-
grbFinalize
public static long grbFinalize()
-
createMatrix
public static java.nio.Buffer createMatrix(java.nio.Buffer tpe, long rows, long cols)
-
nvalsMatrix
public static long nvalsMatrix(java.nio.Buffer mat)
-
nrows
public static long nrows(java.nio.Buffer mat)
-
ncols
public static long ncols(java.nio.Buffer mat)
-
clearMatrix
public static long clearMatrix(java.nio.Buffer mat)
-
freeMatrix
public static long freeMatrix(java.nio.Buffer mat)
-
removeElementMatrix
public static long removeElementMatrix(java.nio.Buffer mat, long row, long col)
-
dupMatrix
public static java.nio.Buffer dupMatrix(java.nio.Buffer mat)
-
getFormat
public static int getFormat(java.nio.Buffer mat)
-
makeCSC
public static long makeCSC(java.nio.Buffer mat)
-
makeCSR
public static long makeCSR(java.nio.Buffer mat)
-
setHyperRatio
public static long setHyperRatio(java.nio.Buffer mat, double ratio)
-
getHyperRatio
public static double getHyperRatio(java.nio.Buffer mat)
-
neverHyper
public static long neverHyper(java.nio.Buffer mat)
-
resizeMatrix
public static long resizeMatrix(java.nio.Buffer mat, long rows, long cols)
-
matrixApply
public static long matrixApply(java.nio.Buffer outMat, java.nio.Buffer mask, java.nio.Buffer accum, java.nio.Buffer op, java.nio.Buffer firstInput, java.nio.Buffer desc)
-
matrixWait
public static long matrixWait(java.nio.Buffer mat)
-
createVector
public static java.nio.Buffer createVector(java.nio.Buffer tpe, long size)
-
nvalsVector
public static long nvalsVector(java.nio.Buffer vec)
-
size
public static long size(java.nio.Buffer vec)
-
freeVector
public static long freeVector(java.nio.Buffer vec)
-
clearVec
public static long clearVec(java.nio.Buffer vec)
-
resizeVector
public static long resizeVector(java.nio.Buffer vec, long size)
-
dupVector
public static java.nio.Buffer dupVector(java.nio.Buffer vec)
-
removeElementVector
public static long removeElementVector(java.nio.Buffer mat, long id)
-
vectorApply
public static long vectorApply(java.nio.Buffer outVec, java.nio.Buffer mask, java.nio.Buffer accum, java.nio.Buffer op, java.nio.Buffer firstInput, java.nio.Buffer desc)
-
vectorWait
public static long vectorWait(java.nio.Buffer mat)
-
createSemiring
public static java.nio.Buffer createSemiring(java.nio.Buffer monoidAdd, java.nio.Buffer binOpMul)
-
freeSemiring
public static long freeSemiring(java.nio.Buffer semiring)
-
freeMonoid
public static long freeMonoid(java.nio.Buffer monoid)
-
setGlobalInt
public static long setGlobalInt(int field, int value)
-
setGlobalDouble
public static long setGlobalDouble(int field, double value)
-
getGlobalInt
public static int getGlobalInt(int field)
-
getGlobalDouble
public static double getGlobalDouble(int field)
-
createDescriptor
public static java.nio.Buffer createDescriptor()
-
setDescriptorValue
public static long setDescriptorValue(java.nio.Buffer desc, int field, int value)
-
getDescriptorValue
public static int getDescriptorValue(java.nio.Buffer desc, int field)
-
freeDescriptor
public static long freeDescriptor(java.nio.Buffer desc)
-
-