Package com.aparapi.examples.matrix
Class CorrMatrixHost
java.lang.Object
com.aparapi.examples.matrix.CorrMatrixHost
public class CorrMatrixHost extends Object
GPU calculations using OpenBitSet Intersection for OpenBitSets
Based on code from:
apache.lucene.util.BitUtil.java
- Author:
- ryan.lamothe at gmail.com, sedillard at gmail.com
-
Constructor Summary
Constructors Constructor Description CorrMatrixHost()
-
Method Summary
Modifier and Type Method Description static int[][]
intersectionMatrix(long[][] matrixA, long[][] matrixB, com.aparapi.Kernel.EXECUTION_MODE executionMode)
Perform matrix intersection for two lists of Lucene OpenBitSet-based packed longs
-
Constructor Details
-
CorrMatrixHost
public CorrMatrixHost()
-
-
Method Details
-
intersectionMatrix
public static int[][] intersectionMatrix(long[][] matrixA, long[][] matrixB, com.aparapi.Kernel.EXECUTION_MODE executionMode)Perform matrix intersection for two lists of Lucene OpenBitSet-based packed longs- Parameters:
matrixA
- The first term-document matrixmatrixB
- The second term-document matrixexecutionMode
- EXECUTION_MODE- Returns:
- result Matrix
-