diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOps.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOps.java index a99ef143d..c3942d0aa 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOps.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOps.java @@ -28,58 +28,14 @@ import org.nd4j.linalg.api.buffer.Utf8Buffer; * op execution on cpu * @author Adam Gibson */ -public abstract class NativeOps extends Pointer { - public NativeOps(Pointer p) { - super(p); - } - - public static int getCores(int totals) { - // that's special case for Xeon Phi - if (totals >= 256) - return 64; - - int ht_off = totals / 2; // we count off HyperThreading without any excuses - if (ht_off <= 4) - return 4; // special case for Intel i5. and nobody likes i3 anyway - - if (ht_off > 24) { - int rounds = 0; - while (ht_off > 24) { // we loop until final value gets below 24 cores, since that's reasonable threshold as of 2016 - if (ht_off > 24) { - ht_off /= 2; // we dont' have any cpus that has higher number then 24 physical cores - rounds++; - } - } - // 20 threads is special case in this branch - if (ht_off == 20 && rounds < 2) - ht_off /= 2; - } else { // low-core models are known, but there's a gap, between consumer cpus and xeons - if (ht_off <= 6) { - // that's more likely consumer-grade cpu, so leave this value alone - return ht_off; - } else { - if (isOdd(ht_off)) // if that's odd number, it's final result - return ht_off; - - // 20 threads & 16 threads are special case in this branch, where we go min value - if (ht_off == 20 || ht_off == 16) - ht_off /= 2; - } - } - return ht_off; - } - - private static boolean isOdd(int value) { - return (value % 2 != 0); - } - +public interface NativeOps { /** * This method allows you to specify minimal number of elements per thread/block during op call * PLEASE NOTE: Changing this value might and will affect performance. * * @param value */ - public native void setElementThreshold(int value); + void setElementThreshold(int value); /** * This method allows you to specify minimal number of TADs per thread/block during op call @@ -87,7 +43,7 @@ public abstract class NativeOps extends Pointer { * * @param value */ - public abstract void setTADThreshold(int value); + void setTADThreshold(int value); /** * @param opNum @@ -95,7 +51,7 @@ public abstract class NativeOps extends Pointer { * @param xShapeInfo * @param extraParams */ - public abstract void execIndexReduceScalar(PointerPointer extraPointers, + void execIndexReduceScalar(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -117,7 +73,7 @@ public abstract class NativeOps extends Pointer { * @param dimension * @param dimensionLength */ - public abstract void execIndexReduce(PointerPointer extraPointers, + void execIndexReduce(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -142,7 +98,7 @@ public abstract class NativeOps extends Pointer { * @param dimension * @param dimensionLength */ - public abstract void execBroadcast(PointerPointer extraPointers, + void execBroadcast(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -159,7 +115,7 @@ public abstract class NativeOps extends Pointer { Pointer hDimension, @Cast("Nd4jLong *") LongPointer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong *") LongPointer dDimensionShape); - public abstract void execBroadcastBool(PointerPointer extraPointers, + void execBroadcastBool(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -187,7 +143,7 @@ public abstract class NativeOps extends Pointer { * @param resultShapeInfo * @param extraParams */ - public abstract void execPairwiseTransform(PointerPointer extraPointers, + void execPairwiseTransform(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -203,7 +159,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer dresultShapeInfo, Pointer extraParams); - public abstract void execPairwiseTransformBool(PointerPointer extraPointers, + void execPairwiseTransformBool(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -227,7 +183,7 @@ public abstract class NativeOps extends Pointer { * @param result * @param resultShapeInfo */ - public abstract void execReduceFloat(PointerPointer extraPointers, + void execReduceFloat(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -240,7 +196,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer dresultShapeInfo); - public abstract void execReduceSame(PointerPointer extraPointers, + void execReduceSame(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -253,7 +209,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer dresultShapeInfo); - public abstract void execReduceBool(PointerPointer extraPointers, + void execReduceBool(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -266,7 +222,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer dresultShapeInfo); - public abstract void execReduceLong(PointerPointer extraPointers, + void execReduceLong(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -286,7 +242,7 @@ public abstract class NativeOps extends Pointer { * @param result * @param resultShapeInfo */ - public abstract void execReduceFloat(PointerPointer extraPointers, + void execReduceFloat2(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -301,7 +257,7 @@ public abstract class NativeOps extends Pointer { Pointer dDimension, @Cast("Nd4jLong *") LongPointer dDimensionShape); - public abstract void execReduceSame(PointerPointer extraPointers, + void execReduceSame2(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -315,7 +271,7 @@ public abstract class NativeOps extends Pointer { Pointer hDimension, @Cast("Nd4jLong *") LongPointer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong *") LongPointer dDimensionShape); - public abstract void execReduceBool(PointerPointer extraPointers, + void execReduceBool2(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -329,7 +285,7 @@ public abstract class NativeOps extends Pointer { Pointer hDimension, @Cast("Nd4jLong *") LongPointer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong *") LongPointer dDimensionShape); - public abstract void execReduceLong(PointerPointer extraPointers, + void execReduceLong2(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, @@ -353,7 +309,7 @@ public abstract class NativeOps extends Pointer { * @param result * @param resultShapeInfo */ - public abstract void execReduce3(PointerPointer extraPointers, + void execReduce3(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -371,7 +327,7 @@ public abstract class NativeOps extends Pointer { * @param y * @param yShapeInfo */ - public abstract void execReduce3Scalar(PointerPointer extraPointers, int opNum, + void execReduce3Scalar(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, Pointer extraParamsVals, @@ -392,7 +348,7 @@ public abstract class NativeOps extends Pointer { * @param dimension * @param dimensionLength */ - public abstract void execReduce3(PointerPointer extraPointers, + void execReduce3Tad(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -406,7 +362,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer tadOnlyShapeInfo, @Cast("Nd4jLong *") LongPointer tadOffsets, @Cast("Nd4jLong *") LongPointer yTadOnlyShapeInfo, @Cast("Nd4jLong *") LongPointer yTadOffsets); - public abstract void execReduce3All(PointerPointer extraPointers, + void execReduce3All(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -432,7 +388,7 @@ public abstract class NativeOps extends Pointer { * @param scalar * @param extraParams */ - public abstract void execScalar(PointerPointer extraPointers, + void execScalar(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -442,7 +398,7 @@ public abstract class NativeOps extends Pointer { Pointer dscalar, @Cast("Nd4jLong *") LongPointer dscalarShapeInfo, Pointer extraParams); - public abstract void execScalarBool(PointerPointer extraPointers, + void execScalarBool(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -459,7 +415,7 @@ public abstract class NativeOps extends Pointer { * @param extraParams * @param biasCorrected */ - public abstract void execSummaryStatsScalar(PointerPointer extraPointers, + void execSummaryStatsScalar(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -477,7 +433,7 @@ public abstract class NativeOps extends Pointer { * @param resultShapeInfo * @param biasCorrected */ - public abstract void execSummaryStats(PointerPointer extraPointers, + void execSummaryStats(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -496,7 +452,7 @@ public abstract class NativeOps extends Pointer { * @param dimension * @param dimensionLength */ - public abstract void execSummaryStats(PointerPointer extraPointers, + void execSummaryStatsTad(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -519,7 +475,7 @@ public abstract class NativeOps extends Pointer { * @param resultShapeInfo * @param extraParams */ - public abstract void execTransformFloat(PointerPointer extraPointers, + void execTransformFloat(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -527,7 +483,7 @@ public abstract class NativeOps extends Pointer { Pointer dresult, @Cast("Nd4jLong *") LongPointer dresultShapeInfo, Pointer extraParams); - public abstract void execTransformSame(PointerPointer extraPointers, + void execTransformSame(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -535,7 +491,7 @@ public abstract class NativeOps extends Pointer { Pointer dresult, @Cast("Nd4jLong *") LongPointer dresultShapeInfo, Pointer extraParams); - public abstract void execTransformStrict(PointerPointer extraPointers, + void execTransformStrict(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -543,7 +499,7 @@ public abstract class NativeOps extends Pointer { Pointer dresult, @Cast("Nd4jLong *") LongPointer dresultShapeInfo, Pointer extraParams); - public abstract void execTransformBool(PointerPointer extraPointers, + void execTransformBool(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -551,7 +507,7 @@ public abstract class NativeOps extends Pointer { Pointer dresult, @Cast("Nd4jLong *") LongPointer dresultShapeInfo, Pointer extraParams); - public abstract void execTransformAny(PointerPointer extraPointers, + void execTransformAny(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -573,7 +529,7 @@ public abstract class NativeOps extends Pointer { * @param dimension * @param dimensionLength */ - public abstract void execScalar(PointerPointer extraPointers, + void execScalarTad(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -587,7 +543,7 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer tadShapeInfo, @Cast("Nd4jLong *") LongPointer tadOffsets, @Cast("Nd4jLong *") LongPointer tadShapeInfoZ, @Cast("Nd4jLong *") LongPointer tadOffsetsZ); - public abstract void execScalarBool(PointerPointer extraPointers, + void execScalarBoolTad(PointerPointer extraPointers, int opNum, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, @@ -610,7 +566,7 @@ public abstract class NativeOps extends Pointer { * @param input * @param inputShapeInfo */ - public abstract void flatten(PointerPointer extraPointers, + void flatten(PointerPointer extraPointers, int offset, char order, Pointer results, @Cast("Nd4jLong *") LongPointer resultShapeInfo, @@ -629,7 +585,7 @@ public abstract class NativeOps extends Pointer { * @param tadPointers * @param tadOffsets */ - public abstract void concat(PointerPointer extraPointers, + void concat(PointerPointer extraPointers, int dimension, int numArrays, PointerPointer data, PointerPointer inputShapeInfo, @@ -639,7 +595,7 @@ public abstract class NativeOps extends Pointer { PointerPointer tadPointers, PointerPointer tadOffsets); - public abstract void specialConcat(PointerPointer extraPointers, + void specialConcat(PointerPointer extraPointers, int dimension, int numArrays, PointerPointer data, PointerPointer inputShapeInfo, @@ -653,99 +609,99 @@ public abstract class NativeOps extends Pointer { * * @return */ - public abstract int ompGetMaxThreads(); + int ompGetMaxThreads(); /** * Gets the number of open mp threads * * @return */ - public abstract int ompGetNumThreads(); + int ompGetNumThreads(); /** * Sets the number of openmp threads * * @param threads */ - public abstract void setOmpNumThreads(int threads); + void setOmpNumThreads(int threads); /** * Sets the minimal number of openmp threads for variative methods * * @param threads */ - public abstract void setOmpMinThreads(int threads); + void setOmpMinThreads(int threads); /** * NEVER EVER USE THIS METHOD OUTSIDE OF CUDA */ - public abstract void initializeDevicesAndFunctions(); + void initializeDevicesAndFunctions(); - public abstract void initializeFunctions(PointerPointer functions); + void initializeFunctions(PointerPointer functions); - public abstract Pointer mallocHost(long memorySize, int flags); + Pointer mallocHost(long memorySize, int flags); - public abstract Pointer mallocDevice(long memorySize, int ptrToDeviceId, int flags); + Pointer mallocDevice(long memorySize, int ptrToDeviceId, int flags); - public abstract int freeHost(Pointer pointer); + int freeHost(Pointer pointer); - public abstract int freeDevice(Pointer pointer, int deviceId); + int freeDevice(Pointer pointer, int deviceId); - public abstract Pointer createContext(); + Pointer createContext(); - public abstract Pointer createStream(); + Pointer createStream(); - public abstract Pointer createEvent(); + Pointer createEvent(); - public abstract int registerEvent(Pointer event, Pointer stream); + int registerEvent(Pointer event, Pointer stream); - public abstract int destroyEvent(Pointer event); + int destroyEvent(Pointer event); - public abstract int setDevice(int ptrToDeviceId); + int setDevice(int ptrToDeviceId); - public abstract int getDevice(); + int getDevice(); - public abstract int streamSynchronize(Pointer stream); + int streamSynchronize(Pointer stream); - public abstract int eventSynchronize(Pointer event); + int eventSynchronize(Pointer event); - public abstract long getDeviceFreeMemory(int ptrToDeviceId); + long getDeviceFreeMemory(int ptrToDeviceId); - public abstract long getDeviceFreeMemory(); + long getDeviceFreeMemoryDefault(); - public abstract long getDeviceTotalMemory(int ptrToDeviceId); + long getDeviceTotalMemory(int ptrToDeviceId); - public abstract int getDeviceMajor(int ptrToDeviceId); + int getDeviceMajor(int ptrToDeviceId); - public abstract int getDeviceMinor(int ptrToDeviceId); + int getDeviceMinor(int ptrToDeviceId); - public abstract String getDeviceName(int ptrToDeviceId); + String getDeviceName(int ptrToDeviceId); - public abstract int memcpy(Pointer dst, Pointer src, long size, int flags, Pointer reserved); + int memcpySync(Pointer dst, Pointer src, long size, int flags, Pointer reserved); - public abstract int memcpyAsync(Pointer dst, Pointer src, long size, int flags, Pointer reserved); + int memcpyAsync(Pointer dst, Pointer src, long size, int flags, Pointer reserved); - public abstract int memcpyConstantAsync(long dst, Pointer src, long size, int flags, Pointer reserved); + int memcpyConstantAsync(long dst, Pointer src, long size, int flags, Pointer reserved); - public abstract int memset(Pointer dst, int value, long size, int flags, Pointer reserved); + int memsetSync(Pointer dst, int value, long size, int flags, Pointer reserved); - public abstract int memsetAsync(Pointer dst, int value, long size, int flags, Pointer reserved); + int memsetAsync(Pointer dst, int value, long size, int flags, Pointer reserved); - public abstract Pointer getConstantSpace(); + Pointer getConstantSpace(); - public abstract int getAvailableDevices(); + int getAvailableDevices(); - public abstract void enableDebugMode(boolean reallyEnable); + void enableDebugMode(boolean reallyEnable); - public abstract void enableVerboseMode(boolean reallyEnable); + void enableVerboseMode(boolean reallyEnable); - public abstract void setGridLimit(int gridSize); + void setGridLimit(int gridSize); - public abstract Pointer tadOnlyShapeInfo(@Cast("Nd4jLong *") LongPointer shapeInfo, IntPointer dimension, int dimensionLength); + Pointer tadOnlyShapeInfo(@Cast("Nd4jLong *") LongPointer shapeInfo, IntPointer dimension, int dimensionLength); /////////////// - public abstract void pullRows(PointerPointer extraPointers, + void pullRows(PointerPointer extraPointers, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, Pointer z, @Cast("Nd4jLong *") LongPointer zShapeInfo, @@ -760,7 +716,7 @@ public abstract class NativeOps extends Pointer { /////////////////////// - public abstract void average(PointerPointer extraPointers, + void average(PointerPointer extraPointers, PointerPointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, PointerPointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, Pointer z, @Cast("Nd4jLong *") LongPointer zShapeInfo, @@ -771,7 +727,7 @@ public abstract class NativeOps extends Pointer { /////////////////////// - public abstract void accumulate(PointerPointer extraPointers, + void accumulate(PointerPointer extraPointers, PointerPointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, PointerPointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, Pointer z, @Cast("Nd4jLong *") LongPointer zShapeInfo, @@ -781,15 +737,15 @@ public abstract class NativeOps extends Pointer { /////////////////////// - public abstract void enableP2P(boolean reallyEnable); + void enableP2P(boolean reallyEnable); - public abstract void checkP2P(); + void checkP2P(); - public abstract boolean isP2PAvailable(); + boolean isP2PAvailable(); // - public abstract void shuffle(PointerPointer extraPointers, + void shuffle(PointerPointer extraPointers, PointerPointer x, @Cast("Nd4jLong *") PointerPointer xShapeInfo, PointerPointer dx, @Cast("Nd4jLong *") PointerPointer dxShapeInfo, PointerPointer z, @Cast("Nd4jLong *") PointerPointer zShapeInfo, @@ -802,15 +758,15 @@ public abstract class NativeOps extends Pointer { // opType conversion - public abstract void convertTypes(PointerPointer extras, int srcType, Pointer x, long N, int dstType, Pointer z); + void convertTypes(PointerPointer extras, int srcType, Pointer x, long N, int dstType, Pointer z); - public abstract boolean isExperimentalEnabled(); + boolean isExperimentalEnabled(); // GridOps /* // MetaOps - public abstract void execMetaPredicateShape(PointerPointer extras, + void execMetaPredicateShape(PointerPointer extras, int opTypeA, int opNumA, int opTypeB, int opNumB, long N, @@ -826,7 +782,7 @@ public abstract class NativeOps extends Pointer { */ ///////////////////////// - public abstract void execAggregate(PointerPointer extras, int opNum, + void execAggregate(PointerPointer extras, int opNum, PointerPointer arguments, int numArguments, @Cast("Nd4jLong **") PointerPointer shapes, @@ -839,20 +795,20 @@ public abstract class NativeOps extends Pointer { int numRealArguments, @Cast("nd4j::DataType") int dataType); - public abstract void execAggregateBatch(PointerPointer extras, int numAggregates, int opNum, int maxArgs, + void execAggregateBatch(PointerPointer extras, int numAggregates, int opNum, int maxArgs, int maxShapes, int maxIntArrays, int maxIntArraySize, int maxIdx, int maxReals, Pointer ptrToArguments, @Cast("nd4j::DataType") int dataType); ////////////// - public abstract void execRandom(PointerPointer extraPointers, + void execRandom(PointerPointer extraPointers, int opNum, Pointer state, Pointer z, @Cast("Nd4jLong *") LongPointer zShapeBuffer, Pointer dz, @Cast("Nd4jLong *") LongPointer dzShapeBuffer, Pointer extraArguments); - public abstract void execRandom(PointerPointer extraPointers, + void execRandom3(PointerPointer extraPointers, int opNum, Pointer state, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeBuffer, @@ -863,7 +819,7 @@ public abstract class NativeOps extends Pointer { Pointer dz, @Cast("Nd4jLong *") LongPointer dzShapeBuffer, Pointer extraArguments); - public abstract void execRandom(PointerPointer extraPointers, + void execRandom2(PointerPointer extraPointers, int opNum, Pointer state, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeBuffer, @@ -875,13 +831,13 @@ public abstract class NativeOps extends Pointer { //////////////////// - public abstract Pointer initRandom(PointerPointer extraPointers, long seed, long numberOfElements, Pointer pointerToBuffer); + Pointer initRandom(PointerPointer extraPointers, long seed, long numberOfElements, Pointer pointerToBuffer); - public abstract void refreshBuffer(PointerPointer extraPointers, long seed, Pointer pointer); + void refreshBuffer(PointerPointer extraPointers, long seed, Pointer pointer); - public abstract void reSeedBuffer(PointerPointer extraPointers, long seed, Pointer pointer); + void reSeedBuffer(PointerPointer extraPointers, long seed, Pointer pointer); - public abstract void destroyRandom(Pointer pointer); + void destroyRandom(Pointer pointer); /** @@ -893,7 +849,7 @@ public abstract class NativeOps extends Pointer { * @param wordSize the word size (4 for float, 8 for doubles) * @return a pointer to a numpy array */ - public abstract Pointer numpyFromNd4j(Pointer data, Pointer shapeBuffer, long wordSize); + Pointer numpyFromNd4j(Pointer data, Pointer shapeBuffer, long wordSize); /** @@ -903,14 +859,14 @@ public abstract class NativeOps extends Pointer { * to get the length for * @return */ - public abstract int elementSizeForNpyArrayHeader(Pointer npyArray); + int elementSizeForNpyArrayHeader(Pointer npyArray); /** * @param npyArrayStruct * @return */ - public abstract Pointer dataPointForNumpyStruct(Pointer npyArrayStruct); + Pointer dataPointForNumpyStruct(Pointer npyArrayStruct); /** @@ -921,7 +877,7 @@ public abstract class NativeOps extends Pointer { * @param wordSize the word size * @return */ - public abstract Pointer numpyHeaderForNd4j(Pointer data, Pointer shapeBuffer, long wordSize, LongPointer length); + Pointer numpyHeaderForNd4j(Pointer data, Pointer shapeBuffer, long wordSize, LongPointer length); /** * Load numpy from a header @@ -930,13 +886,13 @@ public abstract class NativeOps extends Pointer { * @param data the header data to parse * @return a pointer to a numpy cnpy:NpyArray struct */ - public abstract Pointer loadNpyFromHeader(Pointer data); + Pointer loadNpyFromHeader(Pointer data); /** * @param npyArray * @return */ - public abstract Pointer dataPointForNumpyHeader(Pointer npyArray); + Pointer dataPointForNumpyHeader(Pointer npyArray); /** * Get the shape buffer from a @@ -946,7 +902,7 @@ public abstract class NativeOps extends Pointer { * @param npyArray * @return */ - public abstract Pointer shapeBufferForNumpyHeader(Pointer npyArray); + Pointer shapeBufferForNumpyHeader(Pointer npyArray); /** * Used in {@link org.nd4j.linalg.factory.NDArrayFactory#createFromNpyPointer(Pointer)} @@ -956,7 +912,7 @@ public abstract class NativeOps extends Pointer { * @param npyArray the pointer to the numpy array to use * @return the pointer for the numpy array */ - public abstract Pointer dataPointForNumpy(Pointer npyArray); + Pointer dataPointForNumpy(Pointer npyArray); /** * Get a shape buffer for a numpy array. @@ -965,7 +921,7 @@ public abstract class NativeOps extends Pointer { * @param npyArray the numpy array to get the shape buffer for * @return a pointer representing the shape buffer for numpy */ - public abstract Pointer shapeBufferForNumpy(Pointer npyArray); + Pointer shapeBufferForNumpy(Pointer npyArray); /** * Thie method releases numpy pointer @@ -974,7 +930,7 @@ public abstract class NativeOps extends Pointer { * * @param npyArray */ - public abstract void releaseNumpy(Pointer npyArray); + void releaseNumpy(Pointer npyArray); /** @@ -984,7 +940,7 @@ public abstract class NativeOps extends Pointer { * @param path the path to the file * @return */ - public abstract Pointer numpyFromFile(BytePointer path); + Pointer numpyFromFile(BytePointer path); /** @@ -994,7 +950,7 @@ public abstract class NativeOps extends Pointer { * @param buffer the buffer pointer to check * @return */ - public abstract int lengthForShapeBufferPointer(Pointer buffer); + int lengthForShapeBufferPointer(Pointer buffer); /** * Calculate the element size @@ -1004,7 +960,7 @@ public abstract class NativeOps extends Pointer { * element size for * @return the element size for a given array */ - public abstract int elementSizeForNpyArray(Pointer npyArray); + int elementSizeForNpyArray(Pointer npyArray); /** @@ -1013,31 +969,31 @@ public abstract class NativeOps extends Pointer { * @param address the address to get the pointer * @return the pointer for the given address */ - public abstract Pointer pointerForAddress(long address); + Pointer pointerForAddress(long address); ////// NPZ /////// - public abstract Pointer mapFromNpzFile(BytePointer path); + Pointer mapFromNpzFile(BytePointer path); - public abstract int getNumNpyArraysInMap(Pointer map); + int getNumNpyArraysInMap(Pointer map); - public abstract String getNpyArrayNameFromMap(Pointer map, int index); + String getNpyArrayNameFromMap(Pointer map, int index); - public abstract Pointer getNpyArrayFromMap(Pointer map, int index); + Pointer getNpyArrayFromMap(Pointer map, int index); - public abstract Pointer getNpyArrayData(Pointer npArray); + Pointer getNpyArrayData(Pointer npArray); - public abstract LongPointer getNpyArrayShape(Pointer npArray); + LongPointer getNpyArrayShape(Pointer npArray); - public abstract int getNpyArrayRank(Pointer npArray); + int getNpyArrayRank(Pointer npArray); - public abstract char getNpyArrayOrder(Pointer npArray); + char getNpyArrayOrder(Pointer npArray); - public abstract int getNpyArrayElemSize(Pointer npArray); + int getNpyArrayElemSize(Pointer npArray); /////// - public abstract void tear(PointerPointer extras, + void tear(PointerPointer extras, Pointer tensor, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dtensor, @Cast("Nd4jLong *") LongPointer dxShapeInfo, PointerPointer targets, @Cast("Nd4jLong *") LongPointer zShapeInfo, @@ -1045,26 +1001,26 @@ public abstract class NativeOps extends Pointer { @Cast("Nd4jLong *") LongPointer tadOffsets); - public abstract long encodeBitmap(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, long N, IntPointer dz, float threshold); + long encodeBitmap(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, long N, IntPointer dz, float threshold); - public abstract void decodeBitmap(PointerPointer extraPointers, Pointer dx, long N, Pointer dz, LongPointer zShapeInfo); + void decodeBitmap(PointerPointer extraPointers, Pointer dx, long N, Pointer dz, LongPointer zShapeInfo); - public abstract void encodeThresholdP1(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, long N, IntPointer dz, float threshold); + void encodeThresholdP1(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, long N, IntPointer dz, float threshold); - public abstract void encodeThresholdP2Int(PointerPointer extraPointers, IntPointer dx, long N, IntPointer dz); + void encodeThresholdP2Int(PointerPointer extraPointers, IntPointer dx, long N, IntPointer dz); - public abstract void encodeThresholdP3(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, IntPointer offsets, long N, IntPointer dz); + void encodeThresholdP3(PointerPointer extraPointers, Pointer dx, LongPointer xShapeInfo, IntPointer offsets, long N, IntPointer dz); - public abstract void decodeThreshold(PointerPointer extraPointers, Pointer dx, long N, Pointer dz, LongPointer zShapeInfo); + void decodeThreshold(PointerPointer extraPointers, Pointer dx, long N, Pointer dz, LongPointer zShapeInfo); - public abstract void sort(PointerPointer extraPointers, + void sort(PointerPointer extraPointers, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, boolean descending); - public abstract void sortTad(PointerPointer extraPointers, + void sortTad(PointerPointer extraPointers, Pointer x, @Cast("Nd4jLong *") LongPointer xShapeInfo, Pointer dx, @Cast("Nd4jLong *") LongPointer dxShapeInfo, IntPointer dimension, @@ -1074,81 +1030,81 @@ public abstract class NativeOps extends Pointer { boolean descending); - public abstract void sortCooIndices(PointerPointer extraPointers, @Cast("Nd4jLong *") LongPointer indices, Pointer values, long length, int rank); + void sortCooIndices(PointerPointer extraPointers, @Cast("Nd4jLong *") LongPointer indices, Pointer values, long length, int rank); - public abstract LongPointer mmapFile(PointerPointer extraPointers, String fileName, long length); + LongPointer mmapFile(PointerPointer extraPointers, String fileName, long length); - public abstract void munmapFile(PointerPointer extraPointers, LongPointer ptrMap, long length); + void munmapFile(PointerPointer extraPointers, LongPointer ptrMap, long length); - public abstract ResultWrapperAbstraction executeFlatGraph(PointerPointer extraPointers, Pointer flatBufferPointer); + ResultWrapperAbstraction executeFlatGraph(PointerPointer extraPointers, Pointer flatBufferPointer); - public abstract String getAllCustomOps(); + String getAllCustomOps(); - public abstract String getAllOperations(); + String getAllOperations(); - public abstract int execCustomOp(PointerPointer extraPointers, long opHashCode, Pointer context); + int execCustomOp2(PointerPointer extraPointers, long opHashCode, Pointer context); - public abstract int execCustomOp(PointerPointer extraPointers, long opHashCode, PointerPointer inputBuffers, PointerPointer inputShapes, int numInput, PointerPointer outputBuffers, PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs, @Cast("bool *") BooleanPointer bArgs, int numBArgs, boolean isInplace); + int execCustomOp(PointerPointer extraPointers, long opHashCode, PointerPointer inputBuffers, PointerPointer inputShapes, int numInput, PointerPointer outputBuffers, PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs, @Cast("bool *") BooleanPointer bArgs, int numBArgs, boolean isInplace); - public abstract Pointer calculateOutputShapes(PointerPointer extraPointers, long hash, PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs); + Pointer calculateOutputShapes(PointerPointer extraPointers, long hash, PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs); - public abstract Pointer calculateOutputShapes(PointerPointer extraPointers, long hash, PointerPointer inputBunffers, PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs, @Cast("bool *") BooleanPointer bArgs, int numBArgs); + Pointer calculateOutputShapes2(PointerPointer extraPointers, long hash, PointerPointer inputBunffers, PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong *") LongPointer iArgs, int numIArgs, @Cast("bool *") BooleanPointer bArgs, int numBArgs); - public abstract int registerGraph(PointerPointer extraPointers, long graphId, Pointer flatBufferPointer); + int registerGraph(PointerPointer extraPointers, long graphId, Pointer flatBufferPointer); - public abstract Pointer executeStoredGraph(PointerPointer extraPointers, long graphId, PointerPointer inputBuffers, PointerPointer inputShapes, IntPointer inputIndices, int numInputs); + Pointer executeStoredGraph(PointerPointer extraPointers, long graphId, PointerPointer inputBuffers, PointerPointer inputShapes, IntPointer inputIndices, int numInputs); - public abstract void deleteResultWrapper(Pointer ptr); + void deleteResultWrapper(Pointer ptr); - public abstract void deleteShapeList(Pointer ptr); + void deleteShapeList(Pointer ptr); - public abstract int unregisterGraph(PointerPointer extraPointers, long graphId); + int unregisterGraph(PointerPointer extraPointers, long graphId); - public abstract void deleteIntArray(Pointer pointer); + void deleteIntArray(Pointer pointer); - public abstract void deleteLongArray(Pointer pointer); + void deleteLongArray(Pointer pointer); - public abstract void deletePointerArray(Pointer pointer); + void deletePointerArray(Pointer pointer); - public abstract void deleteNPArrayStruct(Pointer pointer); + void deleteNPArrayStruct(Pointer pointer); - public abstract void deleteNPArrayMap(Pointer pointer); + void deleteNPArrayMap(Pointer pointer); - public abstract void deleteVariablesSet(Pointer pointer); + void deleteVariablesSet(Pointer pointer); // GraphState creation - public abstract Pointer getGraphState(long id); + Pointer getGraphState(long id); - public abstract void deleteShapeBuffer(Pointer state); + void deleteShapeBuffer(Pointer state); - public abstract void deleteTadPack(Pointer pointer); + void deleteTadPack(Pointer pointer); - public abstract void deleteGraphState(Pointer state); + void deleteGraphState(Pointer state); - public abstract int estimateThreshold(PointerPointer extraPointers, Pointer x, LongPointer xShapeInfo, int N, float threshold); + int estimateThreshold(PointerPointer extraPointers, Pointer x, LongPointer xShapeInfo, int N, float threshold); // this method executes op that requires scope to be present: if/while/cond/whatever - public abstract int execCustomOpWithScope(PointerPointer extraPointers, Pointer state, long opHash, long[] scopes, int numScopes, PointerPointer inputBuffers, PointerPointer inputShapes, int numInputs, PointerPointer outputBuffers, PointerPointer outputShapes, int numOutputs); + int execCustomOpWithScope(PointerPointer extraPointers, Pointer state, long opHash, long[] scopes, int numScopes, PointerPointer inputBuffers, PointerPointer inputShapes, int numInputs, PointerPointer outputBuffers, PointerPointer outputShapes, int numOutputs); - public abstract void scatterUpdate(PointerPointer extraPointers, int opCode, int numOfUpdates, + void scatterUpdate(PointerPointer extraPointers, int opCode, int numOfUpdates, Pointer hX, @Cast("Nd4jLong *") LongPointer hXShapeInfo, @Cast("Nd4jLong *") LongPointer hxOffsets, Pointer dX, @Cast("Nd4jLong *") LongPointer dXShapeInfo, @Cast("Nd4jLong *") LongPointer dxOffsets, Pointer hY, @Cast("Nd4jLong *") LongPointer hYShapeInfo, @Cast("Nd4jLong *") LongPointer hyOffsets, Pointer dY, @Cast("Nd4jLong *") LongPointer dYShapeInfo, @Cast("Nd4jLong *") LongPointer dyOffsets, IntPointer hIndices, IntPointer dIndices); - //public abstract void fillUtf8String(PointerPointer extraPointers, String[] string, int numStrings, Pointer buffer); - public abstract Pointer createUtf8String(PointerPointer extraPointers, String string, int length); - public abstract void deleteUtf8String(PointerPointer extraPointers, Pointer ptr); + //void fillUtf8String(PointerPointer extraPointers, String[] string, int numStrings, Pointer buffer); + Pointer createUtf8String(PointerPointer extraPointers, String string, int length); + void deleteUtf8String(PointerPointer extraPointers, Pointer ptr); - public abstract void inspectArray(PointerPointer extraPointers, Pointer buffer, @Cast("Nd4jLong *") LongPointer shapeInfo, Pointer specialBuffer, @Cast("Nd4jLong *") LongPointer specialShapeInfo, @Cast("nd4j::DebugInfo *") Pointer debugInfo); + void inspectArray(PointerPointer extraPointers, Pointer buffer, @Cast("Nd4jLong *") LongPointer shapeInfo, Pointer specialBuffer, @Cast("Nd4jLong *") LongPointer specialShapeInfo, @Cast("nd4j::DebugInfo *") Pointer debugInfo); /** * this method tries to read numBytes bytes from buffer to provoke crash in certain scenarios */ - public abstract void tryPointer(Pointer extras, Pointer buffer, int numBytesToRead); + void tryPointer(Pointer extras, Pointer buffer, int numBytesToRead); /** @@ -1158,17 +1114,17 @@ public abstract class NativeOps extends Pointer { * @param numpyHeader * @return */ - public abstract int dataTypeFromNpyHeader(Pointer numpyHeader); + int dataTypeFromNpyHeader(Pointer numpyHeader); - public abstract Pointer shapeBuffer(int rank, @Cast("Nd4jLong *") LongPointer shape, @Cast("Nd4jLong *") LongPointer strides, int dtype, char order, long ews, boolean empty); + Pointer shapeBuffer(int rank, @Cast("Nd4jLong *") LongPointer shape, @Cast("Nd4jLong *") LongPointer strides, int dtype, char order, long ews, boolean empty); - public abstract Pointer constantBuffer(int dtype, DoublePointer data, int length); + Pointer constantBufferDouble(int dtype, DoublePointer data, int length); - public abstract Pointer constantBuffer(int dtype, @Cast("Nd4jLong *") LongPointer data, int length); + Pointer constantBufferLong(int dtype, @Cast("Nd4jLong *") LongPointer data, int length); - public abstract String runLightBenchmarkSuit(boolean printOut); + String runLightBenchmarkSuit(boolean printOut); - public abstract String runFullBenchmarkSuit(boolean printOut); + String runFullBenchmarkSuit(boolean printOut); - public abstract long getCachedMemory(int deviceId); + long getCachedMemory(int deviceId); } diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOpsHolder.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOpsHolder.java index 4dc07045d..98bdb90fa 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOpsHolder.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/NativeOpsHolder.java @@ -36,6 +36,46 @@ public class NativeOpsHolder { @Getter private final NativeOps deviceNativeOps; + public static int getCores(int totals) { + // that's special case for Xeon Phi + if (totals >= 256) + return 64; + + int ht_off = totals / 2; // we count off HyperThreading without any excuses + if (ht_off <= 4) + return 4; // special case for Intel i5. and nobody likes i3 anyway + + if (ht_off > 24) { + int rounds = 0; + while (ht_off > 24) { // we loop until final value gets below 24 cores, since that's reasonable threshold as of 2016 + if (ht_off > 24) { + ht_off /= 2; // we dont' have any cpus that has higher number then 24 physical cores + rounds++; + } + } + // 20 threads is special case in this branch + if (ht_off == 20 && rounds < 2) + ht_off /= 2; + } else { // low-core models are known, but there's a gap, between consumer cpus and xeons + if (ht_off <= 6) { + // that's more likely consumer-grade cpu, so leave this value alone + return ht_off; + } else { + if (isOdd(ht_off)) // if that's odd number, it's final result + return ht_off; + + // 20 threads & 16 threads are special case in this branch, where we go min value + if (ht_off == 20 || ht_off == 16) + ht_off /= 2; + } + } + return ht_off; + } + + private static boolean isOdd(int value) { + return (value % 2 != 0); + } + private NativeOpsHolder() { try { Properties props = Nd4jContext.getInstance().getConf(); @@ -57,7 +97,7 @@ public class NativeOpsHolder { deviceNativeOps.setOmpNumThreads(Math.max(1, cores / chips)); } else deviceNativeOps.setOmpNumThreads( - deviceNativeOps.getCores(Runtime.getRuntime().availableProcessors())); + getCores(Runtime.getRuntime().availableProcessors())); } //deviceNativeOps.setOmpNumThreads(4); diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/Nd4jBlas.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/Nd4jBlas.java index a38c3a907..23abf1d40 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/Nd4jBlas.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-native-api/src/main/java/org/nd4j/nativeblas/Nd4jBlas.java @@ -48,7 +48,7 @@ public abstract class Nd4jBlas implements Blas { if (cores > 0 && chips > 0) numThreads = Math.max(1, cores / chips); else - numThreads = NativeOps.getCores(Runtime.getRuntime().availableProcessors()); + numThreads = NativeOpsHolder.getCores(Runtime.getRuntime().availableProcessors()); setMaxThreads(numThreads); } log.info("Number of threads used for BLAS: {}", getMaxThreads()); diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/ops/executioner/CudaExecutioner.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/ops/executioner/CudaExecutioner.java index 3b06f2ec0..3d096bca2 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/ops/executioner/CudaExecutioner.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/linalg/jcublas/ops/executioner/CudaExecutioner.java @@ -318,7 +318,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { AtomicAllocator.getInstance().registerAction(context, op.z(), op.x(), op.y()); } else { - nativeOps.execSummaryStats(xShapeInfoHostPointer, op.opNum(), + nativeOps.execSummaryStatsTad(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -360,7 +360,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context)); AtomicAllocator.getInstance().registerAction(context, op.z(), op.x(), op.y()); } else { - nativeOps.execReduce3(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduce3Tad(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostYShapeInfo, AtomicAllocator.getInstance().getPointer(op.y(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.y().shapeInfoDataBuffer(), context), @@ -408,7 +408,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { } else { switch (op.getOpType()) { case REDUCE_FLOAT: - nativeOps.execReduceFloat(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceFloat2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -418,7 +418,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_BOOL: - nativeOps.execReduceBool(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceBool2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -428,7 +428,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_SAME: - nativeOps.execReduceSame(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceSame2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -438,7 +438,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_LONG: - nativeOps.execReduceLong(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceLong2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -1027,7 +1027,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { if (op.y() != null) { val y = AtomicAllocator.getInstance().getPointer(op.y(), context); val yShapeInfo = AtomicAllocator.getInstance().getPointer(op.y().shapeInfoDataBuffer(), context); - nativeOps.execReduce3(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduce3Tad(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostYShapeInfo, y, (LongPointer) yShapeInfo, @@ -1037,7 +1037,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { dimensionPointer, null, (LongPointer) devTadShapeInfo, (LongPointer) devTadOffsets, (LongPointer) yDevTadShapeInfo, (LongPointer) yDevTadOffsets); } else { if (op instanceof Variance) { - nativeOps.execSummaryStats(xShapeInfoHostPointer, op.opNum(), + nativeOps.execSummaryStatsTad(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, @@ -1051,7 +1051,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { } else { switch (op.getOpType()) { case REDUCE_FLOAT: - nativeOps.execReduceFloat(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceFloat2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, @@ -1061,7 +1061,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_SAME: - nativeOps.execReduceSame(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceSame2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, @@ -1071,7 +1071,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_BOOL: - nativeOps.execReduceBool(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceBool2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, @@ -1081,7 +1081,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_LONG: - nativeOps.execReduceLong(xShapeInfoHostPointer, op.opNum(), + nativeOps.execReduceLong2(xShapeInfoHostPointer, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, extraArgs, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, @@ -1159,7 +1159,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { switch (op.getOpType()) { case SCALAR: - nativeOps.execScalar(extraPointers, op.opNum(), + nativeOps.execScalarTad(extraPointers, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, null, (LongPointer) hostYShapeInfo, y, (LongPointer) yShapeInfo, @@ -1172,7 +1172,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { (LongPointer) devTadShapeInfoZ, (LongPointer) devTadOffsetsZ); break; case SCALAR_BOOL: - nativeOps.execScalarBool(extraPointers, op.opNum(), + nativeOps.execScalarBoolTad(extraPointers, op.opNum(), null, (LongPointer) hostXShapeInfo, x, (LongPointer) xShapeInfo, null, (LongPointer) hostZShapeInfo, z, (LongPointer) zShapeInfo, null, (LongPointer) hostYShapeInfo, y, (LongPointer) yShapeInfo, @@ -1777,7 +1777,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { if (op.x() != null && op.y() != null && op.z() != null) { // triple arg call - nativeOps.execRandom(extraZZ, op.opNum(), rng.getStatePointer(), // rng state ptr + nativeOps.execRandom3(extraZZ, op.opNum(), rng.getStatePointer(), // rng state ptr null, (LongPointer) hostXShapeInfo, AtomicAllocator.getInstance().getPointer(op.x(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.x().shapeInfoDataBuffer(), context), null, (LongPointer) hostYShapeInfo, AtomicAllocator.getInstance().getPointer(op.y(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.y().shapeInfoDataBuffer(), context), null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), @@ -1785,7 +1785,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { } else if (op.x() != null && op.z() != null) { //double arg call - nativeOps.execRandom(extraZZ, op.opNum(), rng.getStatePointer(), // rng state ptr + nativeOps.execRandom2(extraZZ, op.opNum(), rng.getStatePointer(), // rng state ptr null, (LongPointer) hostXShapeInfo, AtomicAllocator.getInstance().getPointer(op.x(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.x().shapeInfoDataBuffer(), context), null, (LongPointer) hostZShapeInfo, AtomicAllocator.getInstance().getPointer(op.z(), context), (LongPointer) AtomicAllocator.getInstance().getPointer(op.z().shapeInfoDataBuffer(), context), AtomicAllocator.getInstance().getPointer(op.extraArgsDataBuff(op.z().dataType()),context)); @@ -2208,7 +2208,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { for (val t: op.tArgs()) tArgs.put(cnt++, (float) t); - val ptrptr = (Nd4jCuda.ShapeList) nativeOps.calculateOutputShapes(null, hash, inputBuffers, inputShapes, op.inputArguments().length, tArgs, op.tArgs().length, iArgs, op.iArgs().length, bArgs, op.numBArguments()); + val ptrptr = (Nd4jCuda.ShapeList) nativeOps.calculateOutputShapes2(null, hash, inputBuffers, inputShapes, op.inputArguments().length, tArgs, op.tArgs().length, iArgs, op.iArgs().length, bArgs, op.numBArguments()); if (ptrptr == null) throw new RuntimeException(); @@ -2539,7 +2539,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { val ctx = (CudaContext) AtomicAllocator.getInstance().getDeviceContext().getContext(); ((CudaOpContext) context).setCudaStream(ctx.getOldStream(), ctx.getBufferReduction(), ctx.getBufferAllocation()); - nativeOps.execCustomOp(null, op.opHash(), context.contextPointer()); + nativeOps.execCustomOp2(null, op.opHash(), context.contextPointer()); if (context.getOutputArrays().isEmpty()) return new INDArray[0]; @@ -2607,7 +2607,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { @Override public DataBuffer createConstantBuffer(long[] values, DataType desiredType) { - val dbf = (Nd4jCuda.ConstantDataBuffer) nativeOps.constantBuffer(desiredType.toInt(), new LongPointer(values), values.length); + val dbf = (Nd4jCuda.ConstantDataBuffer) nativeOps.constantBufferLong(desiredType.toInt(), new LongPointer(values), values.length); val buffer = Nd4j.createBuffer(dbf.primary(), dbf.special(), values.length, desiredType); buffer.setConstant(true); @@ -2617,7 +2617,7 @@ public class CudaExecutioner extends DefaultOpExecutioner { @Override public DataBuffer createConstantBuffer(double[] values, DataType desiredType) { - val dbf = (Nd4jCuda.ConstantDataBuffer) nativeOps.constantBuffer(desiredType.toInt(), new DoublePointer(values), values.length); + val dbf = (Nd4jCuda.ConstantDataBuffer) nativeOps.constantBufferDouble(desiredType.toInt(), new DoublePointer(values), values.length); val buffer = Nd4j.createBuffer(dbf.primary(), dbf.special(), values.length, desiredType); buffer.setConstant(true); diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java index 6cc3516ed..934ba6537 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.1: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.2-SNAPSHOT: DO NOT EDIT THIS FILE package org.nd4j.nativeblas; @@ -6,7 +6,7 @@ import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; -public class Nd4jCuda extends org.nd4j.nativeblas.Nd4jCudaPresets { +public class Nd4jCuda extends org.nd4j.nativeblas.Nd4jCudaHelper { static { Loader.load(); } @Name("std::vector >") public static class IntVectorVector extends Pointer { @@ -688,1041 +688,1027 @@ bool verbose = false; // #include // #include -public static class NativeOps extends org.nd4j.nativeblas.NativeOps { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeOps(Pointer p) { super(p); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public NativeOps(long size) { super((Pointer)null); allocateArray(size); } - private native void allocateArray(long size); - @Override public NativeOps position(long position) { - return (NativeOps)super.position(position); - } +/** + * + * @param p + * @param len + */ +public native void tryPointer(@Cast("Nd4jPointer") Pointer extra, @Cast("Nd4jPointer") Pointer p, int len); - public NativeOps() { super((Pointer)null); allocate(); } - private native void allocate(); +/** + * + * @param num + */ +public native void setElementThreshold(int num); - /** - * - * @param p - * @param len - */ - public native void tryPointer(@Cast("Nd4jPointer") Pointer extra, @Cast("Nd4jPointer") Pointer p, int len); +/** + * + * @param num + */ +public native void setTADThreshold(int num); - /** - * - * @param num - */ - public native void setElementThreshold(int num); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + */ +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param num - */ - public native void setTADThreshold(int num); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - */ - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - * @param dimension - * @param dimensionLength - */ - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + * @param dimension + * @param dimensionLength + */ +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - /** - * - * @param opNum - * @param dx - * @param xShapeInfo - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - * @param extraParams - * @param n - */ - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +/** + * + * @param opNum + * @param dx + * @param xShapeInfo + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + * @param extraParams + * @param n + */ +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - */ - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - */ - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer yTadOffsets); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer yTadOffsets); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadOnlyShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] yTadOnlyShapeInfo, @Cast("Nd4jLong*") long[] yTadOffsets); - - - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer xTadShapeInfo, @Cast("Nd4jLong*") LongPointer xOffsets, - @Cast("Nd4jLong*") LongPointer yTadShapeInfo, @Cast("Nd4jLong*") LongPointer yOffsets); - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer xTadShapeInfo, @Cast("Nd4jLong*") LongBuffer xOffsets, - @Cast("Nd4jLong*") LongBuffer yTadShapeInfo, @Cast("Nd4jLong*") LongBuffer yOffsets); - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] xTadShapeInfo, @Cast("Nd4jLong*") long[] xOffsets, - @Cast("Nd4jLong*") long[] yTadShapeInfo, @Cast("Nd4jLong*") long[] yOffsets); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param result - * @param resultShapeInfo - * @param scalar - * @param extraParams - * @param n - */ - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, - Pointer extraParams); - - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, - Pointer extraParams); + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - */ - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - @Cast("bool") boolean biasCorrected); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - @Cast("bool") boolean biasCorrected); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param dx - * @param xShapeInfo - * @param result - * @param resultShapeInfo - * @param extraParams - * @param n - */ - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - - /** - * - * @param extraPointers - * @param opNum - * @param x - * @param xShapeInfo - * @param z - * @param zShapeInfo - * @param scalars - * @param extraParams - * @param dimension - * @param dimensionLength - */ - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); - - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + */ +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + */ +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + @Cast("Nd4jLong*") LongPointer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer yTadOffsets); +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, - Pointer extraParams, Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + @Cast("Nd4jLong*") LongBuffer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer yTadOffsets); +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, - Pointer extraParams, Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); + @Cast("Nd4jLong*") long[] tadOnlyShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] yTadOnlyShapeInfo, @Cast("Nd4jLong*") long[] yTadOffsets); + + +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer xTadShapeInfo, @Cast("Nd4jLong*") LongPointer xOffsets, + @Cast("Nd4jLong*") LongPointer yTadShapeInfo, @Cast("Nd4jLong*") LongPointer yOffsets); +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer xTadShapeInfo, @Cast("Nd4jLong*") LongBuffer xOffsets, + @Cast("Nd4jLong*") LongBuffer yTadShapeInfo, @Cast("Nd4jLong*") LongBuffer yOffsets); +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] xTadShapeInfo, @Cast("Nd4jLong*") long[] xOffsets, + @Cast("Nd4jLong*") long[] yTadShapeInfo, @Cast("Nd4jLong*") long[] yOffsets); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param result + * @param resultShapeInfo + * @param scalar + * @param extraParams + * @param n + */ +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, + Pointer extraParams); + +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, + Pointer extraParams); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + */ +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + @Cast("bool") boolean biasCorrected); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + @Cast("bool") boolean biasCorrected); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets); +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets); +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets); + +/** + * + * @param opNum + * @param dx + * @param xShapeInfo + * @param result + * @param resultShapeInfo + * @param extraParams + * @param n + */ +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +/** + * + * @param extraPointers + * @param opNum + * @param x + * @param xShapeInfo + * @param z + * @param zShapeInfo + * @param scalars + * @param extraParams + * @param dimension + * @param dimensionLength + */ +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); + +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); /** @@ -1736,910 +1722,922 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * @param input the input for the array * @param inputShapeInfo the shape information for that array */ - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") LongPointer inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") LongPointer dinputShapeInfo); - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") LongBuffer inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") LongBuffer dinputShapeInfo); - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") long[] inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") long[] dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") LongPointer inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") LongPointer dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") LongBuffer inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") LongBuffer dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") long[] inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") long[] dinputShapeInfo); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") LongPointer resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") long[] resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") LongPointer resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") long[] resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); - /** - * This method implementation exists only for cuda. - * The other backends should have dummy method for JNI compatibility reasons. - */ - public native void initializeDevicesAndFunctions(); +/** + * This method implementation exists only for cuda. + * The other backends should have dummy method for JNI compatibility reasons. + */ +public native void initializeDevicesAndFunctions(); - public native void initializeFunctions(@Cast("Nd4jPointer*") PointerPointer functions); +public native void initializeFunctions(@Cast("Nd4jPointer*") PointerPointer functions); - /** - * This method acquires memory chunk of requested size on host side - * - * @param pointer pointer that'll be used for allocation - * @param memorySize memory size, in bytes - * @param flags optional parameter - */ - public native @Cast("Nd4jPointer") Pointer mallocHost(@Cast("Nd4jLong") long memorySize, int flags); +/** + * This method acquires memory chunk of requested size on host side + * + * @param pointer pointer that'll be used for allocation + * @param memorySize memory size, in bytes + * @param flags optional parameter + */ +public native @Cast("Nd4jPointer") Pointer mallocHost(@Cast("Nd4jLong") long memorySize, int flags); - /** - * This method acquires memory chunk of requested size on specified device - * - * @param pointer pointer that'll be used for allocation - * @param memorySize memory size, in bytes - * @param ptrToDeviceId pointer to deviceId. For cuda that's just and int, for OpenCL that's pointer to device_id, etc - * @param flags optional parameter - */ - public native @Cast("Nd4jPointer") Pointer mallocDevice(@Cast("Nd4jLong") long memorySize, int deviceId, int flags); +/** + * This method acquires memory chunk of requested size on specified device + * + * @param pointer pointer that'll be used for allocation + * @param memorySize memory size, in bytes + * @param ptrToDeviceId pointer to deviceId. For cuda that's just and int, for OpenCL that's pointer to device_id, etc + * @param flags optional parameter + */ +public native @Cast("Nd4jPointer") Pointer mallocDevice(@Cast("Nd4jLong") long memorySize, int deviceId, int flags); - /** - * This method releases previously allocated host memory space - * - * @param pointer pointer that'll be freed - */ - public native int freeHost(@Cast("Nd4jPointer") Pointer pointer); +/** + * This method releases previously allocated host memory space + * + * @param pointer pointer that'll be freed + */ +public native int freeHost(@Cast("Nd4jPointer") Pointer pointer); - /** - * This method releases previously allocated memory space on device - * - * @param pointer pointer that'll be freed - * @param ptrToDeviceId pointer to deviceId. - */ - public native int freeDevice(@Cast("Nd4jPointer") Pointer pointer, int deviceId); +/** + * This method releases previously allocated memory space on device + * + * @param pointer pointer that'll be freed + * @param ptrToDeviceId pointer to deviceId. + */ +public native int freeDevice(@Cast("Nd4jPointer") Pointer pointer, int deviceId); - /** - * - * @return - */ - public native int ompGetMaxThreads(); +/** + * + * @return + */ +public native int ompGetMaxThreads(); - /** - * - * @return - */ - public native int ompGetNumThreads(); +/** + * + * @return + */ +public native int ompGetNumThreads(); - /** - * - * @param threads - */ - public native void setOmpNumThreads(int threads); +/** + * + * @param threads + */ +public native void setOmpNumThreads(int threads); - /** - * - * @param threads - */ - public native void setOmpMinThreads(int threads); +/** + * + * @param threads + */ +public native void setOmpMinThreads(int threads); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createContext(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createContext(); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createStream(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createStream(); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createEvent(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createEvent(); - /** - * - * @param event - * @param stream - * @return - */ - public native int registerEvent(@Cast("Nd4jPointer") Pointer event, @Cast("Nd4jPointer") Pointer stream); +/** + * + * @param event + * @param stream + * @return + */ +public native int registerEvent(@Cast("Nd4jPointer") Pointer event, @Cast("Nd4jPointer") Pointer stream); - /** - * - * @param event - * @return - */ - public native int destroyEvent(@Cast("Nd4jPointer") Pointer event); +/** + * + * @param event + * @return + */ +public native int destroyEvent(@Cast("Nd4jPointer") Pointer event); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int setDevice(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int setDevice(int deviceId); - /** - * - * @return - */ - public native int getDevice(); +/** + * + * @return + */ +public native int getDevice(); - /** - * - * @param stream - * @return - */ - public native int streamSynchronize(@Cast("Nd4jPointer") Pointer stream); +/** + * + * @param stream + * @return + */ +public native int streamSynchronize(@Cast("Nd4jPointer") Pointer stream); - /** - * - * @param event - * @return - */ - public native int eventSynchronize(@Cast("Nd4jPointer") Pointer event); +/** + * + * @param event + * @return + */ +public native int eventSynchronize(@Cast("Nd4jPointer") Pointer event); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("Nd4jLong") long getDeviceFreeMemory(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("Nd4jLong") long getDeviceFreeMemory(int deviceId); - /** - * Returns amount of free memory for current device - * @return - */ - public native @Cast("Nd4jLong") long getDeviceFreeMemory(); +/** + * Returns amount of free memory for current device + * @return + */ +public native @Cast("Nd4jLong") long getDeviceFreeMemoryDefault(); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("Nd4jLong") long getDeviceTotalMemory(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("Nd4jLong") long getDeviceTotalMemory(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int getDeviceMajor(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int getDeviceMajor(int deviceId); - /** - * This method returns amount of cached memory - * @param deviceId - * @return - */ - public native @Cast("Nd4jLong") long getCachedMemory(int deviceId); +/** + * This method returns amount of cached memory + * @param deviceId + * @return + */ +public native @Cast("Nd4jLong") long getCachedMemory(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int getDeviceMinor(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int getDeviceMinor(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("char*") String getDeviceName(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("char*") String getDeviceName(int deviceId); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpy(@Cast("Nd4jPointer") Pointer dst, - @Cast("Nd4jPointer") Pointer src, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpySync(@Cast("Nd4jPointer") Pointer dst, + @Cast("Nd4jPointer") Pointer src, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpyAsync(@Cast("Nd4jPointer") Pointer dst, +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpyAsync(@Cast("Nd4jPointer") Pointer dst, + @Cast("Nd4jPointer") Pointer src, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param value + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memsetSync(@Cast("Nd4jPointer") Pointer dst, + int value, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param value + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memsetAsync(@Cast("Nd4jPointer") Pointer dst, + int value, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpyConstantAsync(@Cast("Nd4jLong") long dst, @Cast("Nd4jPointer") Pointer src, @Cast("Nd4jLong") long size, int flags, @Cast("Nd4jPointer") Pointer reserved); - /** - * - * @param dst - * @param value - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memset(@Cast("Nd4jPointer") Pointer dst, - int value, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer getConstantSpace(); - /** - * - * @param dst - * @param value - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memsetAsync(@Cast("Nd4jPointer") Pointer dst, - int value, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @return + */ +public native int getAvailableDevices(); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpyConstantAsync(@Cast("Nd4jLong") long dst, - @Cast("Nd4jPointer") Pointer src, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @param reallyEnable + */ +public native void enableDebugMode(@Cast("bool") boolean reallyEnable); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer getConstantSpace(); +/** + * + * @param reallyEnable + */ +public native void enableVerboseMode(@Cast("bool") boolean reallyEnable); - /** - * - * @return - */ - public native int getAvailableDevices(); +/** + * + * @param gridSize + */ +public native void setGridLimit(int gridSize); - /** - * - * @param reallyEnable - */ - public native void enableDebugMode(@Cast("bool") boolean reallyEnable); +/** + * + * @param xShapeInfo + * @param dimension + * @param dimensionLength + * @param targetBuffer + * @param offsetsBuffer + */ +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongPointer xShapeInfo, + IntPointer dimension, + int dimensionLength); +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongBuffer xShapeInfo, + IntBuffer dimension, + int dimensionLength); +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") long[] xShapeInfo, + int[] dimension, + int dimensionLength); - /** - * - * @param reallyEnable - */ - public native void enableVerboseMode(@Cast("bool") boolean reallyEnable); +/* + * PullRow special op + */ - /** - * - * @param gridSize - */ - public native void setGridLimit(int gridSize); +/** + * + * @param extraPointers + * @param x + * @param xShapeInfo + * @param z + * @param zShapeInfo + * @param n + * @param indexes + * @param tadShapeInfo + * @param tadOffsets + * @param zTadShapeInfo + * @param zTadOffsets + */ +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") LongPointer indexes, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer zTadShapeInfo, + @Cast("Nd4jLong*") LongPointer zTadOffsets); +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") LongBuffer indexes, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer zTadShapeInfo, + @Cast("Nd4jLong*") LongBuffer zTadOffsets); +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") long[] indexes, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] zTadShapeInfo, + @Cast("Nd4jLong*") long[] zTadOffsets); - /** - * - * @param xShapeInfo - * @param dimension - * @param dimensionLength - * @param targetBuffer - * @param offsetsBuffer - */ - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongPointer xShapeInfo, - IntPointer dimension, - int dimensionLength); - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongBuffer xShapeInfo, - IntBuffer dimension, - int dimensionLength); - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") long[] xShapeInfo, - int[] dimension, - int dimensionLength); - - /* - * PullRow special op - */ - - /** - * - * @param extraPointers - * @param x - * @param xShapeInfo - * @param z - * @param zShapeInfo - * @param n - * @param indexes - * @param tadShapeInfo - * @param tadOffsets - * @param zTadShapeInfo - * @param zTadOffsets - */ - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") LongPointer indexes, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer zTadShapeInfo, - @Cast("Nd4jLong*") LongPointer zTadOffsets); - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") LongBuffer indexes, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer zTadShapeInfo, - @Cast("Nd4jLong*") LongBuffer zTadOffsets); - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") long[] indexes, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] zTadShapeInfo, - @Cast("Nd4jLong*") long[] zTadOffsets); - - /** - * - * @param extras - * @param dx - * @param dz - * @param n - * @param length - * @param propagate - */ - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); +/** + * + * @param extras + * @param dx + * @param dz + * @param n + * @param length + * @param propagate + */ +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); - /** - * P2P enabler - */ - /** - * - * @param enable - */ - public native void enableP2P(@Cast("bool") boolean enable); +/** + * P2P enabler + */ +/** + * + * @param enable + */ +public native void enableP2P(@Cast("bool") boolean enable); - /** - * - */ - public native void checkP2P(); +/** + * + */ +public native void checkP2P(); - /** - * - * @return - */ - public native @Cast("bool") boolean isP2PAvailable(); +/** + * + * @return + */ +public native @Cast("bool") boolean isP2PAvailable(); - /** - * Shuffle methods - */ +/** + * Shuffle methods + */ - /** - * - * @param extras - * @param dx - * @param xShapeInfo - * @param dz - * @param zShapeInfo - * @param N - * @param shuffleMap - * @param tadShapeInfo - * @param tadOffsets - */ - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - IntPointer shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - IntBuffer shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - int[] shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); +/** + * + * @param extras + * @param dx + * @param xShapeInfo + * @param dz + * @param zShapeInfo + * @param N + * @param shuffleMap + * @param tadShapeInfo + * @param tadOffsets + */ +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + IntPointer shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + IntBuffer shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + int[] shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); - /** - * Type Conversions - */ +/** + * Type Conversions + */ - /** - * - * @param extras - * @param srcType - * @param x - * @param N - * @param dstType - * @param z - */ - public native void convertTypes(@Cast("Nd4jPointer*") PointerPointer extras, int srcType, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong") long N, int dstType, @Cast("Nd4jPointer") Pointer z); +/** + * + * @param extras + * @param srcType + * @param x + * @param N + * @param dstType + * @param z + */ +public native void convertTypes(@Cast("Nd4jPointer*") PointerPointer extras, int srcType, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong") long N, int dstType, @Cast("Nd4jPointer") Pointer z); - /** - * - * @return - */ - public native @Cast("bool") boolean isExperimentalEnabled(); +/** + * + * @return + */ +public native @Cast("bool") boolean isExperimentalEnabled(); - /** - * Aggregate - */ +/** + * Aggregate + */ - /** - * - * @param extraPointers - * @param opNum - * @param arguments - * @param numArguments - * @param shapeArguments - * @param numShapeArguments - * @param indexArguments - * @param numIndexArguments - * @param intArrays - * @param numIntArrays - * @param realArguments - * @param numRealArguments - */ - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") PointerPointer arguments, - int numArguments, - @Cast("Nd4jLong**") PointerPointer shapeArguments, - int numShapeArguments, - IntPointer indexArguments, - int numIndexArguments, - @Cast("int**") PointerPointer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr LongPointer shapeArguments, - int numShapeArguments, - IntPointer indexArguments, - int numIndexArguments, - @ByPtrPtr IntPointer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr LongBuffer shapeArguments, - int numShapeArguments, - IntBuffer indexArguments, - int numIndexArguments, - @ByPtrPtr IntBuffer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr long[] shapeArguments, - int numShapeArguments, - int[] indexArguments, - int numIndexArguments, - @ByPtrPtr int[] intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); +/** + * + * @param extraPointers + * @param opNum + * @param arguments + * @param numArguments + * @param shapeArguments + * @param numShapeArguments + * @param indexArguments + * @param numIndexArguments + * @param intArrays + * @param numIntArrays + * @param realArguments + * @param numRealArguments + */ +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") PointerPointer arguments, + int numArguments, + @Cast("Nd4jLong**") PointerPointer shapeArguments, + int numShapeArguments, + IntPointer indexArguments, + int numIndexArguments, + @Cast("int**") PointerPointer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr LongPointer shapeArguments, + int numShapeArguments, + IntPointer indexArguments, + int numIndexArguments, + @ByPtrPtr IntPointer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr LongBuffer shapeArguments, + int numShapeArguments, + IntBuffer indexArguments, + int numIndexArguments, + @ByPtrPtr IntBuffer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr long[] shapeArguments, + int numShapeArguments, + int[] indexArguments, + int numIndexArguments, + @ByPtrPtr int[] intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); - public native void execAggregateBatch(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int numAggregates, - int opNum, - int maxArgs, - int maxShapes, - int maxIntArrays, - int maxIntArraySize, - int maxIdx, - int maxReals, - Pointer ptrToArguments, - @Cast("nd4j::DataType") int dtype); - /** - * Random operations - */ +public native void batchExecutor(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int numAggregates, + int opNum, + int maxArgs, + int maxShapes, + int maxIntArrays, + int maxIntArraySize, + int maxIdx, + int maxReals, + Pointer ptrToArguments, + @Cast("nd4j::DataType") int dtype); - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, +public native void execAggregateBatch(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int numAggregates, int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); + int maxArgs, + int maxShapes, + int maxIntArrays, + int maxIntArraySize, + int maxIdx, + int maxReals, + Pointer ptrToArguments, + @Cast("nd4j::DataType") int dtype); - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param x - * @param xShapeBuffer - * @param y - * @param yShapeBuffer - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); +/** + * Random operations + */ - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param x - * @param xShapeBuffer - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); + +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param x + * @param xShapeBuffer + * @param y + * @param yShapeBuffer + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); + +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param x + * @param xShapeBuffer + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); - /** - * - * @param extraPointers - * @param seed - * @param bufferSize - * @param ptrToBuffer - * @return - */ - public native @Cast("Nd4jPointer") Pointer initRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - long bufferSize, - @Cast("Nd4jPointer") Pointer ptrToBuffer); +/** + * + * @param extraPointers + * @param seed + * @param bufferSize + * @param ptrToBuffer + * @return + */ +public native @Cast("Nd4jPointer") Pointer initRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + long bufferSize, + @Cast("Nd4jPointer") Pointer ptrToBuffer); - /** - * - * @param extraPointers - * @param seed - * @param ptrRandom - */ - public native void refreshBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - @Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param extraPointers + * @param seed + * @param ptrRandom + */ +public native void refreshBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + @Cast("Nd4jPointer") Pointer ptrRandom); - /** - * - * @param extraPointers - * @param seed - * @param ptrRandom - */ - public native void reSeedBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - @Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param extraPointers + * @param seed + * @param ptrRandom + */ +public native void reSeedBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + @Cast("Nd4jPointer") Pointer ptrRandom); - /** - * - * @param ptrRandom - */ - public native void destroyRandom(@Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param ptrRandom + */ +public native void destroyRandom(@Cast("Nd4jPointer") Pointer ptrRandom); - /** - * Grid operations - */ +/** + * Grid operations + */ - /** - * - * @param extras - * @param opTypeA - * @param opNumA - * @param opTypeB - * @param opNumB - * @param N - * @param dx - * @param xShapeInfo - * @param dy - * @param yShapeInfo - * @param dz - * @param zShapeInfo - * @param extraA - * @param extraB - * @param scalarA - * @param scalarB - */ - /* - void execMetaPredicateShape(Nd4jPointer *extras, - const int opTypeA, - const int opNumA, - const int opTypeB, - const int opNumB, - Nd4jLong N, - void *hX, Nd4jLong *hXShapeBuffer, - void *dX, Nd4jLong *dXShapeBuffer, - void *hY, Nd4jLong *hYShapeBuffer, - void *dY, Nd4jLong *dYShapeBuffer, - void *hZ, Nd4jLong *hZShapeBuffer, - void *dZ, Nd4jLong *dZShapeBuffer, - void *extraA, - void *extraB, - double scalarA, - double scalarB); +/** + * + * @param extras + * @param opTypeA + * @param opNumA + * @param opTypeB + * @param opNumB + * @param N + * @param dx + * @param xShapeInfo + * @param dy + * @param yShapeInfo + * @param dz + * @param zShapeInfo + * @param extraA + * @param extraB + * @param scalarA + * @param scalarB + */ + /* +ND4J_EXPORT void execMetaPredicateShape(Nd4jPointer *extras, + const int opTypeA, + const int opNumA, + const int opTypeB, + const int opNumB, + Nd4jLong N, + void *hX, Nd4jLong *hXShapeBuffer, + void *dX, Nd4jLong *dXShapeBuffer, + void *hY, Nd4jLong *hYShapeBuffer, + void *dY, Nd4jLong *dYShapeBuffer, + void *hZ, Nd4jLong *hZShapeBuffer, + void *dZ, Nd4jLong *dZShapeBuffer, + void *extraA, + void *extraB, + double scalarA, + double scalarB); */ -/** - * - * @param data - * @param shapeBuffer - * @param wordSize - * @param headerSize - * @return - */ - - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongPointer headerSize); - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongBuffer headerSize); - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") long[] headerSize); /** - * Load numpy from a header - * based on the cnpy parse from header method. - * @param data the header data to parse - * @return a pointer to a numpy cnpy:NpyArray struct - */ - public native @Cast("Nd4jPointer") Pointer loadNpyFromHeader(@Cast("Nd4jPointer") Pointer data); +* +* @param data +* @param shapeBuffer +* @param wordSize +* @param headerSize +* @return +*/ + +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongPointer headerSize); +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongBuffer headerSize); +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") long[] headerSize); + +/** +* Load numpy from a header +* based on the cnpy parse from header method. +* @param data the header data to parse +* @return a pointer to a numpy cnpy:NpyArray struct +*/ +public native @Cast("Nd4jPointer") Pointer loadNpyFromHeader(@Cast("Nd4jPointer") Pointer data); + +/** +* Create a numpy array from an nd4j +* array +* @param data a pointer to the data +* @param shapeBuffer the shapebuffer for the nd4j array +* @param wordSize the word size (4 for float, 8 for doubles) +* @return a pointer to a numpy array +*/ + +public native @Cast("Nd4jPointer") Pointer numpyFromNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize); /** - * Create a numpy array from an nd4j - * array - * @param data a pointer to the data - * @param shapeBuffer the shapebuffer for the nd4j array - * @param wordSize the word size (4 for float, 8 for doubles) - * @return a pointer to a numpy array - */ - - - public native @Cast("Nd4jPointer") Pointer numpyFromNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize); - - -/** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpy(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpy(@Cast("Nd4jPointer") Pointer npyArray); /** @@ -2649,78 +2647,78 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * @param npyArray * @return */ - public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); +public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); /** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); /** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpyStruct(@Cast("Nd4jPointer") Pointer npyArrayStruct); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpyStruct(@Cast("Nd4jPointer") Pointer npyArrayStruct); /** - * - * @param npyArray - * @param fromFile - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpy(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @param fromFile +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpy(@Cast("Nd4jPointer") Pointer npyArray); /** - * Load a numpy array from a file - * and return it as an Nd4jPointer - * @param path - * @return - */ - public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString BytePointer path); - public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString String path); +* Load a numpy array from a file +* and return it as an Nd4jPointer +* @param path +* @return +*/ +public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString BytePointer path); +public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString String path); - ////// NPZ ////// +////// NPZ ////// - public native Pointer mapFromNpzFile(@StdString BytePointer path); - public native Pointer mapFromNpzFile(@StdString String path); +public native Pointer mapFromNpzFile(@StdString BytePointer path); +public native Pointer mapFromNpzFile(@StdString String path); - public native int getNumNpyArraysInMap(Pointer map); +public native int getNumNpyArraysInMap(Pointer map); - public native @Cast("char*") String getNpyArrayNameFromMap(Pointer map, int index); +public native @Cast("char*") String getNpyArrayNameFromMap(Pointer map, int index); - public native Pointer getNpyArrayFromMap(Pointer map, int index); +public native Pointer getNpyArrayFromMap(Pointer map, int index); - public native int dataTypeFromNpyHeader(Pointer header); +public native int dataTypeFromNpyHeader(Pointer header); - public native Pointer getNpyArrayData(Pointer npArray); +public native Pointer getNpyArrayData(Pointer npArray); - public native int getNpyArrayRank(Pointer npArray); +public native int getNpyArrayRank(Pointer npArray); - public native @Cast("Nd4jLong*") LongPointer getNpyArrayShape(Pointer npArray); +public native @Cast("Nd4jLong*") LongPointer getNpyArrayShape(Pointer npArray); - public native char getNpyArrayOrder(Pointer npArray); +public native char getNpyArrayOrder(Pointer npArray); - public native int getNpyArrayElemSize(Pointer npArray); +public native int getNpyArrayElemSize(Pointer npArray); - public native void deleteNPArrayStruct(Pointer npArray); +public native void deleteNPArrayStruct(Pointer npArray); - public native void deleteNPArrayMap(Pointer map); - ////// +public native void deleteNPArrayMap(Pointer map); +////// /** - * Get the element size for a numpy array - * @param npyArray the numpy array's address - * to get the length for - * @return - */ - public native int elementSizeForNpyArray(@Cast("Nd4jPointer") Pointer npyArray); +* Get the element size for a numpy array +* @param npyArray the numpy array's address +* to get the length for +* @return +*/ +public native int elementSizeForNpyArray(@Cast("Nd4jPointer") Pointer npyArray); /** @@ -2729,335 +2727,327 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * to get the length for * @return */ - public native int elementSizeForNpyArrayHeader(@Cast("Nd4jPointer") Pointer npyArray); +public native int elementSizeForNpyArrayHeader(@Cast("Nd4jPointer") Pointer npyArray); - public native void releaseNumpy(@Cast("Nd4jPointer") Pointer npyArray); +public native void releaseNumpy(@Cast("Nd4jPointer") Pointer npyArray); - /** - * Return the length of a shape buffer - * based on the pointer - * @param buffer the buffer pointer to check - * @return - */ - public native int lengthForShapeBufferPointer(@Cast("Nd4jPointer") Pointer buffer); +/** + * Return the length of a shape buffer + * based on the pointer + * @param buffer the buffer pointer to check + * @return + */ +public native int lengthForShapeBufferPointer(@Cast("Nd4jPointer") Pointer buffer); - /** - * The pointer to get the address for - * - * @param address the address to get the pointer - * @return the pointer for the given address - */ + /** +* The pointer to get the address for +* +* @param address the address to get the pointer +* @return the pointer for the given address +*/ - public native @Cast("Nd4jPointer") Pointer pointerForAddress(@Cast("Nd4jLong") long address); +public native @Cast("Nd4jPointer") Pointer pointerForAddress(@Cast("Nd4jLong") long address); - /** - * This method takes single N-dimensional tensor, and copies its TADs to target arrays - * - * @param x - * @param xShapeInfo - * @param targets - * @param zShapeInfo - * @return - */ - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongPointer zShapeInfo, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets); - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets); - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") long[] zShapeInfo, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets); +/** + * This method takes single N-dimensional tensor, and copies its TADs to target arrays + * + * @param x + * @param xShapeInfo + * @param targets + * @param zShapeInfo + * @return + */ +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongPointer zShapeInfo, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets); +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets); +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") long[] zShapeInfo, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntPointer dx, @Cast("Nd4jLong") long N, IntPointer dz); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntBuffer dx, @Cast("Nd4jLong") long N, IntBuffer dz); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, int[] dx, @Cast("Nd4jLong") long N, int[] dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, IntPointer offsets, @Cast("Nd4jLong") long N, IntPointer dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, IntBuffer offsets, @Cast("Nd4jLong") long N, IntBuffer dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, int[] offsets, @Cast("Nd4jLong") long N, int[] dz); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntPointer dx, @Cast("Nd4jLong") long N, IntPointer dz); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntBuffer dx, @Cast("Nd4jLong") long N, IntBuffer dz); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, int[] dx, @Cast("Nd4jLong") long N, int[] dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, IntPointer offsets, @Cast("Nd4jLong") long N, IntPointer dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, IntBuffer offsets, @Cast("Nd4jLong") long N, IntBuffer dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, int[] offsets, @Cast("Nd4jLong") long N, int[] dz); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - @Cast("bool") boolean descending); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - @Cast("bool") boolean descending); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("bool") boolean descending); - // special sort impl for sorting out COO indices and values - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +// special sort impl for sorting out COO indices and values +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native @Cast("Nd4jLong*") LongPointer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String fileName, @Cast("Nd4jLong") long length); - public native @Cast("Nd4jLong*") LongBuffer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer fileName, @Cast("Nd4jLong") long length); +public native @Cast("Nd4jLong*") LongPointer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String fileName, @Cast("Nd4jLong") long length); +public native @Cast("Nd4jLong*") LongBuffer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer fileName, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer ptrMap, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer ptrMap, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] ptrMap, @Cast("Nd4jLong") long length); - // flatbuffers execution - public native ResultWrapper executeFlatGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer flatBufferPointer); +// flatbuffers execution +public native ResultWrapper executeFlatGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer flatBufferPointer); - public native @Cast("char*") String getAllCustomOps(); +public native @Cast("char*") String getAllCustomOps(); - public native @Cast("char*") String getAllOperations(); +public native @Cast("char*") String getAllOperations(); - // customOp executioner - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer") Pointer opContext); +// customOp executioner +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer") Pointer opContext); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native void deleteShapeList(@Cast("Nd4jPointer") Pointer shapeList); +public native void deleteShapeList(@Cast("Nd4jPointer") Pointer shapeList); - public native int registerGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer") Pointer flatBufferPointer); +public native int registerGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer") Pointer flatBufferPointer); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntPointer inputIndices, int numInputs); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntBuffer inputIndices, int numInputs); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int[] inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntPointer inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntBuffer inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int[] inputIndices, int numInputs); - public native int unregisterGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId); +public native int unregisterGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId); - public native void deleteCharArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteIntArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteLongArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deletePointerArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteCharArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteIntArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteLongArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deletePointerArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteVariablesSet(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteVariablesSet(@Cast("Nd4jPointer") Pointer pointer); - // GraphState creation - public native @Cast("Nd4jPointer") Pointer getGraphState(@Cast("Nd4jLong") long id); +// GraphState creation +public native @Cast("Nd4jPointer") Pointer getGraphState(@Cast("Nd4jLong") long id); - public native void deleteGraphState(@Cast("Nd4jPointer") Pointer state); +public native void deleteGraphState(@Cast("Nd4jPointer") Pointer state); - public native void deleteResultWrapper(@Cast("Nd4jPointer") Pointer ptr); +public native void deleteResultWrapper(@Cast("Nd4jPointer") Pointer ptr); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, int N, float threshold); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, int N, float threshold); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, int N, float threshold); - // this method executes op that requires scope to be present: if/while/cond/whatever - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongPointer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongBuffer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") long[] scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +// this method executes op that requires scope to be present: if/while/cond/whatever +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongPointer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongBuffer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") long[] scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - //void fillUtf8String(Nd4jPointer *extraPointers, const char **string, int numStrings, Nd4jPointer buffer); - public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String string, int length); - public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer string, int length); - public native void deleteUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer ptr); +//void fillUtf8String(Nd4jPointer *extraPointers, const char **string, int numStrings, Nd4jPointer buffer); +public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String string, int length); +public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer string, int length); +public native void deleteUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer ptr); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, @Cast("Nd4jLong*") LongPointer hXOffsets, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, @Cast("Nd4jLong*") LongPointer dXOffsets, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, @Cast("Nd4jLong*") LongPointer hYOffsets, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, @Cast("Nd4jLong*") LongPointer dYOffsets, - IntPointer hIindexes, IntPointer dIindexes); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, @Cast("Nd4jLong*") LongBuffer hXOffsets, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, @Cast("Nd4jLong*") LongBuffer dXOffsets, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, @Cast("Nd4jLong*") LongBuffer hYOffsets, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, @Cast("Nd4jLong*") LongBuffer dYOffsets, - IntBuffer hIindexes, IntBuffer dIindexes); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, @Cast("Nd4jLong*") long[] hXOffsets, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, @Cast("Nd4jLong*") long[] dXOffsets, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, @Cast("Nd4jLong*") long[] hYOffsets, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, @Cast("Nd4jLong*") long[] dYOffsets, - int[] hIindexes, int[] dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, @Cast("Nd4jLong*") LongPointer hXOffsets, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, @Cast("Nd4jLong*") LongPointer dXOffsets, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, @Cast("Nd4jLong*") LongPointer hYOffsets, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, @Cast("Nd4jLong*") LongPointer dYOffsets, + IntPointer hIindexes, IntPointer dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, @Cast("Nd4jLong*") LongBuffer hXOffsets, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, @Cast("Nd4jLong*") LongBuffer dXOffsets, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, @Cast("Nd4jLong*") LongBuffer hYOffsets, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, @Cast("Nd4jLong*") LongBuffer dYOffsets, + IntBuffer hIindexes, IntBuffer dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, @Cast("Nd4jLong*") long[] hXOffsets, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, @Cast("Nd4jLong*") long[] dXOffsets, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, @Cast("Nd4jLong*") long[] hYOffsets, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, @Cast("Nd4jLong*") long[] dYOffsets, + int[] hIindexes, int[] dIindexes); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongPointer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongPointer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongBuffer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongBuffer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") long[] shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") long[] specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - - - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongPointer shape, @Cast("Nd4jLong*") LongPointer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongBuffer shape, @Cast("Nd4jLong*") LongBuffer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") long[] shape, @Cast("Nd4jLong*") long[] strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongPointer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongBuffer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") long[] data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, DoublePointer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, DoubleBuffer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, double[] data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, ConstantDescriptor descriptor); - - public native void deleteShapeBuffer(@Cast("Nd4jPointer") Pointer ptr); - public native void deleteTadPack(@Cast("Nd4jPointer") Pointer ptr); - - public native @Cast("char*") String runLightBenchmarkSuit(@Cast("bool") boolean printOut); - public native @Cast("char*") String runFullBenchmarkSuit(@Cast("bool") boolean printOut); -} +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongPointer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongPointer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongBuffer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongBuffer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") long[] shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") long[] specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongPointer shape, @Cast("Nd4jLong*") LongPointer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongBuffer shape, @Cast("Nd4jLong*") LongBuffer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") long[] shape, @Cast("Nd4jLong*") long[] strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongPointer data, int length); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongBuffer data, int length); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") long[] data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, DoublePointer data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, DoubleBuffer data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, double[] data, int length); +public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, ConstantDescriptor descriptor); +public native @Cast("char*") String runLightBenchmarkSuit(@Cast("bool") boolean printOut); +public native @Cast("char*") String runFullBenchmarkSuit(@Cast("bool") boolean printOut); // #endif //NATIVEOPERATIONS_NATIVEOPS_H diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaHelper.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaHelper.java new file mode 100644 index 000000000..f1877d707 --- /dev/null +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaHelper.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2015-2019 Skymind, Inc. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +package org.nd4j.nativeblas; + +public abstract class Nd4jCudaHelper extends Nd4jCudaPresets implements NativeOps { +} diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaPresets.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaPresets.java index 02bb994f1..7df0abd1c 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaPresets.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCudaPresets.java @@ -26,7 +26,7 @@ import org.bytedeco.javacpp.tools.InfoMapper; * * @author saudet */ -@Properties(target = "org.nd4j.nativeblas.Nd4jCuda", +@Properties(target = "org.nd4j.nativeblas.Nd4jCuda", helper = "org.nd4j.nativeblas.Nd4jCudaHelper", value = {@Platform(define = "LIBND4J_ALL_OPS", include = { "array/DataType.h", "array/ConstantDescriptor.h", @@ -112,7 +112,7 @@ public class Nd4jCudaPresets implements InfoMapper { public void map(InfoMap infoMap) { infoMap.put(new Info("thread_local", "ND4J_EXPORT", "INLINEDEF", "CUBLASWINAPI", "FORCEINLINE", "_CUDA_H", "_CUDA_D", "_CUDA_G", "_CUDA_HD", "LIBND4J_ALL_OPS", "NOT_EXCLUDED").cppTypes().annotations()) - .put(new Info("NativeOps").base("org.nd4j.nativeblas.NativeOps")) + .put(new Info("NativeOps.h").objectify()) .put(new Info("const char").valueTypes("byte").pointerTypes("@Cast(\"char*\") String", "@Cast(\"char*\") BytePointer")) .put(new Info("char").valueTypes("char").pointerTypes("@Cast(\"char*\") BytePointer", diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/resources/nd4j-jcublas.properties b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/resources/nd4j-jcublas.properties index 0525077a7..3ed95d140 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/resources/nd4j-jcublas.properties +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/resources/nd4j-jcublas.properties @@ -20,7 +20,7 @@ dtype = float complex.double.class = org.nd4j.linalg.jcublas.complex.ComplexDouble complex.float.class = org.nd4j.linalg.jcublas.complex.ComplexFloat blas.ops= org.nd4j.linalg.jcublas.JCublasWrapper -native.ops= org.nd4j.nativeblas.Nd4jCuda$NativeOps +native.ops= org.nd4j.nativeblas.Nd4jCuda ndarrayfactory.class = org.nd4j.linalg.jcublas.JCublasNDArrayFactory affinitymanager = org.nd4j.jita.concurrency.CudaAffinityManager memorymanager = org.nd4j.jita.memory.CudaMemoryManager diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java index cfccac828..e84f82186 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java @@ -392,7 +392,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { } else { Variance var = (Variance) op; try { - loop.execSummaryStats(null, op.opNum(), + loop.execSummaryStatsTad(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.z().dataType()), @@ -445,7 +445,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { null, null); } else { try { - loop.execReduce3(null, op.opNum(), + loop.execReduce3Tad(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.z().dataType()), @@ -505,7 +505,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { } else { switch (op.getOpType()) { case REDUCE_FLOAT: - loop.execReduceFloat(null, op.opNum(), + loop.execReduceFloat2(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.z().dataType()), @@ -517,7 +517,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_LONG: - loop.execReduceLong(null, op.opNum(), + loop.execReduceLong2(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.x().dataType()), @@ -529,7 +529,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_SAME: - loop.execReduceSame(null, op.opNum(), + loop.execReduceSame2(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.z().dataType()), @@ -541,7 +541,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { null); break; case REDUCE_BOOL: - loop.execReduceBool(null, op.opNum(), + loop.execReduceBool2(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, getPointerForExtraArgs(op, op.x().dataType()), @@ -604,7 +604,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { switch (op.getOpType()) { case SCALAR: - loop.execScalar(null, op.opNum(), + loop.execScalarTad(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, op.z().data().addressPointer(), (LongPointer) op.z().shapeInfoDataBuffer().addressPointer(), @@ -620,7 +620,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { (LongPointer) devTadShapeInfoZ, (LongPointer) devTadOffsetsZ); break; case SCALAR_BOOL: - loop.execScalarBool(null, op.opNum(), + loop.execScalarBoolTad(null, op.opNum(), op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, op.z().data().addressPointer(), (LongPointer) op.z().shapeInfoDataBuffer().addressPointer(), @@ -1255,7 +1255,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { if (op.x() != null && op.y() != null && op.z() != null) { // triple arg call - loop.execRandom(null, op.opNum(), rng.getStatePointer(), // rng state ptr + loop.execRandom3(null, op.opNum(), rng.getStatePointer(), // rng state ptr op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, op.y().data().addressPointer(), (LongPointer) op.y().shapeInfoDataBuffer().addressPointer(), @@ -1265,7 +1265,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { op.extraArgsDataBuff(op.z().dataType()).addressPointer()); } else if (op.x() != null && op.z() != null) { //double arg call - loop.execRandom(null, op.opNum(), rng.getStatePointer(), // rng state ptr + loop.execRandom2(null, op.opNum(), rng.getStatePointer(), // rng state ptr op.x().data().addressPointer(), (LongPointer) op.x().shapeInfoDataBuffer().addressPointer(), null, null, op.z().data().addressPointer(), (LongPointer) op.z().shapeInfoDataBuffer().addressPointer(), @@ -1862,7 +1862,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { Nd4jCpu.ShapeList ptrptr; try { - ptrptr = (Nd4jCpu.ShapeList) loop.calculateOutputShapes(null, + ptrptr = (Nd4jCpu.ShapeList) loop.calculateOutputShapes2(null, hash, inputBuffers, inputShapes, op.numInputArguments(), tArgs, op.numTArguments(), iArgs, op.numIArguments(), bArgs, op.numBArguments()); } catch (Throwable t){ @@ -2070,7 +2070,7 @@ public class NativeOpExecutioner extends DefaultOpExecutioner { } } - loop.execCustomOp(null, op.opHash(), context.contextPointer()); + loop.execCustomOp2(null, op.opHash(), context.contextPointer()); if (context.getOutputArrays().isEmpty()) return new INDArray[0]; diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java index 0ce6fc210..d93d0f759 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.1: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.2-SNAPSHOT: DO NOT EDIT THIS FILE package org.nd4j.nativeblas; @@ -6,7 +6,7 @@ import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; -public class Nd4jCpu extends org.nd4j.nativeblas.Nd4jCpuPresets { +public class Nd4jCpu extends org.nd4j.nativeblas.Nd4jCpuHelper { static { Loader.load(); } @Name("std::vector >") public static class IntVectorVector extends Pointer { @@ -688,1041 +688,1027 @@ bool verbose = false; // #include // #include -public static class NativeOps extends org.nd4j.nativeblas.NativeOps { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeOps(Pointer p) { super(p); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public NativeOps(long size) { super((Pointer)null); allocateArray(size); } - private native void allocateArray(long size); - @Override public NativeOps position(long position) { - return (NativeOps)super.position(position); - } +/** + * + * @param p + * @param len + */ +public native void tryPointer(@Cast("Nd4jPointer") Pointer extra, @Cast("Nd4jPointer") Pointer p, int len); - public NativeOps() { super((Pointer)null); allocate(); } - private native void allocate(); +/** + * + * @param num + */ +public native void setElementThreshold(int num); - /** - * - * @param p - * @param len - */ - public native void tryPointer(@Cast("Nd4jPointer") Pointer extra, @Cast("Nd4jPointer") Pointer p, int len); +/** + * + * @param num + */ +public native void setTADThreshold(int num); - /** - * - * @param num - */ - public native void setElementThreshold(int num); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + */ +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param num - */ - public native void setTADThreshold(int num); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - */ - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execIndexReduceScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execIndexReduce(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - * @param dimension - * @param dimensionLength - */ - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execBroadcast( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + * @param dimension + * @param dimensionLength + */ +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execBroadcast( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execBroadcastBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execBroadcastBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - /** - * - * @param opNum - * @param dx - * @param xShapeInfo - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - * @param extraParams - * @param n - */ - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransform( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +/** + * + * @param opNum + * @param dx + * @param xShapeInfo + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + * @param extraParams + * @param n + */ +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransform( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execPairwiseTransformBool( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execPairwiseTransformBool( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); - public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfo - */ - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - */ - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); - public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParamsVals - * @param y - * @param yShapeInfo - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer yTadOffsets); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer yTadOffsets); - public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadOnlyShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] yTadOnlyShapeInfo, @Cast("Nd4jLong*") long[] yTadOffsets); - - - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer xTadShapeInfo, @Cast("Nd4jLong*") LongPointer xOffsets, - @Cast("Nd4jLong*") LongPointer yTadShapeInfo, @Cast("Nd4jLong*") LongPointer yOffsets); - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer xTadShapeInfo, @Cast("Nd4jLong*") LongBuffer xOffsets, - @Cast("Nd4jLong*") LongBuffer yTadShapeInfo, @Cast("Nd4jLong*") LongBuffer yOffsets); - public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParamsVals, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] xTadShapeInfo, @Cast("Nd4jLong*") long[] xOffsets, - @Cast("Nd4jLong*") long[] yTadShapeInfo, @Cast("Nd4jLong*") long[] yOffsets); - - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param result - * @param resultShapeInfo - * @param scalar - * @param extraParams - * @param n - */ - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, - Pointer extraParams); - - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, - Pointer extraParams); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, - Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, - Pointer extraParams); + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - */ - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - @Cast("bool") boolean biasCorrected); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfo - */ - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - @Cast("bool") boolean biasCorrected); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - @Cast("bool") boolean biasCorrected); - /** - * - * @param opNum - * @param x - * @param xShapeInfo - * @param extraParams - * @param result - * @param resultShapeInfoBuffer - * @param dimension - * @param dimensionLength - */ - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets); - public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer extraParams, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("bool") boolean biasCorrected, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - /** - * - * @param opNum - * @param dx - * @param xShapeInfo - * @param result - * @param resultShapeInfo - * @param extraParams - * @param n - */ - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduceLong(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer extraParams); - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer extraParams); - public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer extraParams); - - /** - * - * @param extraPointers - * @param opNum - * @param x - * @param xShapeInfo - * @param z - * @param zShapeInfo - * @param scalars - * @param extraParams - * @param dimension - * @param dimensionLength - */ - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); - public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, - Pointer extraParams, - Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, - Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); - - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceFloat2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceSame2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceBool2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + + +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape); +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape); +public native void execReduceLong2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfo + */ +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduce3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + */ +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo); +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo); +public native void execReduce3Scalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParamsVals + * @param y + * @param yShapeInfo + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + @Cast("Nd4jLong*") LongPointer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongPointer yTadOffsets); +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, - Pointer extraParams, Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); - public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + @Cast("Nd4jLong*") LongBuffer tadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer yTadOnlyShapeInfo, @Cast("Nd4jLong*") LongBuffer yTadOffsets); +public native void execReduce3Tad(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opNum, Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, - Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, - Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, - Pointer extraParams, Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, - @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); + @Cast("Nd4jLong*") long[] tadOnlyShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] yTadOnlyShapeInfo, @Cast("Nd4jLong*") long[] yTadOffsets); + + +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer xTadShapeInfo, @Cast("Nd4jLong*") LongPointer xOffsets, + @Cast("Nd4jLong*") LongPointer yTadShapeInfo, @Cast("Nd4jLong*") LongPointer yOffsets); +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer xTadShapeInfo, @Cast("Nd4jLong*") LongBuffer xOffsets, + @Cast("Nd4jLong*") LongBuffer yTadShapeInfo, @Cast("Nd4jLong*") LongBuffer yOffsets); +public native void execReduce3All(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParamsVals, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] xTadShapeInfo, @Cast("Nd4jLong*") long[] xOffsets, + @Cast("Nd4jLong*") long[] yTadShapeInfo, @Cast("Nd4jLong*") long[] yOffsets); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param result + * @param resultShapeInfo + * @param scalar + * @param extraParams + * @param n + */ +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, + Pointer extraParams); + +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongPointer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongPointer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") LongBuffer hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") LongBuffer dSscalarShapeInfo, + Pointer extraParams); +public native void execScalarBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalar, @Cast("Nd4jLong*") long[] hSscalarShapeInfo, + Pointer dScalar, @Cast("Nd4jLong*") long[] dSscalarShapeInfo, + Pointer extraParams); + +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + */ +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStatsScalar(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + @Cast("bool") boolean biasCorrected); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfo + */ +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + @Cast("bool") boolean biasCorrected); +public native void execSummaryStats(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + @Cast("bool") boolean biasCorrected); +/** + * + * @param opNum + * @param x + * @param xShapeInfo + * @param extraParams + * @param result + * @param resultShapeInfoBuffer + * @param dimension + * @param dimensionLength + */ +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets); +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets); +public native void execSummaryStatsTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer extraParams, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("bool") boolean biasCorrected, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets); + +/** + * + * @param opNum + * @param dx + * @param xShapeInfo + * @param result + * @param resultShapeInfo + * @param extraParams + * @param n + */ +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformFloat(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformSame(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformBool(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformAny(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer extraParams); +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer extraParams); +public native void execTransformStrict(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer extraParams); + +/** + * + * @param extraPointers + * @param opNum + * @param x + * @param xShapeInfo + * @param z + * @param zShapeInfo + * @param scalars + * @param extraParams + * @param dimension + * @param dimensionLength + */ +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); +public native void execScalarTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); + +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongPointer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongPointer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongPointer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongPointer dDimensionShape, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer tadShapeInfoZ, @Cast("Nd4jLong*") LongPointer tadOffsetsZ); +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") LongBuffer hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") LongBuffer dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") LongBuffer hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") LongBuffer dDimensionShape, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer tadShapeInfoZ, @Cast("Nd4jLong*") LongBuffer tadOffsetsZ); +public native void execScalarBoolTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeInfo, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeInfo, + Pointer hScalars, @Cast("Nd4jLong*") long[] hScalarShapeInfo, + Pointer dScalars, @Cast("Nd4jLong*") long[] dScalarShapeInfo, + Pointer extraParams, + Pointer hDimension, @Cast("Nd4jLong*") long[] hDimensionShape, + Pointer dDimension, @Cast("Nd4jLong*") long[] dDimensionShape, + @Cast("Nd4jLong*") long[] tadShapeInfo, @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] tadShapeInfoZ, @Cast("Nd4jLong*") long[] tadOffsetsZ); /** @@ -1736,910 +1722,922 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * @param input the input for the array * @param inputShapeInfo the shape information for that array */ - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") LongPointer inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") LongPointer dinputShapeInfo); - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") LongBuffer inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") LongBuffer dinputShapeInfo); - public native void flatten( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int offset, - char order, - Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, - Pointer input, @Cast("Nd4jLong*") long[] inputShapeInfo, - Pointer dinput, @Cast("Nd4jLong*") long[] dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") LongPointer inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") LongPointer dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") LongBuffer inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") LongBuffer dinputShapeInfo); +public native void flatten( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int offset, + char order, + Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, + Pointer input, @Cast("Nd4jLong*") long[] inputShapeInfo, + Pointer dinput, @Cast("Nd4jLong*") long[] dinputShapeInfo); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void concat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, - Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, - Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") LongPointer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongPointer dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") LongBuffer dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void concat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + @Cast("Nd4jPointer*") PointerPointer ddata, @Cast("Nd4jPointer*") PointerPointer dinputShapeInfo, + Pointer result, @Cast("Nd4jLong*") long[] resultShapeInfo, + Pointer dresult, @Cast("Nd4jLong*") long[] dresultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") LongPointer resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") LongBuffer resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); - public native void specialConcat( - @Cast("Nd4jPointer*") PointerPointer extraPointers, - int dimension, - int numArrays, - @Cast("Nd4jPointer*") PointerPointer data, - @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, - Pointer result, - @Cast("Nd4jLong*") long[] resultShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadPointers, - @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") LongPointer resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") LongBuffer resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); +public native void specialConcat( + @Cast("Nd4jPointer*") PointerPointer extraPointers, + int dimension, + int numArrays, + @Cast("Nd4jPointer*") PointerPointer data, + @Cast("Nd4jPointer*") PointerPointer inputShapeInfo, + Pointer result, + @Cast("Nd4jLong*") long[] resultShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadPointers, + @Cast("Nd4jPointer*") PointerPointer offsetPointers); - /** - * This method implementation exists only for cuda. - * The other backends should have dummy method for JNI compatibility reasons. - */ - public native void initializeDevicesAndFunctions(); +/** + * This method implementation exists only for cuda. + * The other backends should have dummy method for JNI compatibility reasons. + */ +public native void initializeDevicesAndFunctions(); - public native void initializeFunctions(@Cast("Nd4jPointer*") PointerPointer functions); +public native void initializeFunctions(@Cast("Nd4jPointer*") PointerPointer functions); - /** - * This method acquires memory chunk of requested size on host side - * - * @param pointer pointer that'll be used for allocation - * @param memorySize memory size, in bytes - * @param flags optional parameter - */ - public native @Cast("Nd4jPointer") Pointer mallocHost(@Cast("Nd4jLong") long memorySize, int flags); +/** + * This method acquires memory chunk of requested size on host side + * + * @param pointer pointer that'll be used for allocation + * @param memorySize memory size, in bytes + * @param flags optional parameter + */ +public native @Cast("Nd4jPointer") Pointer mallocHost(@Cast("Nd4jLong") long memorySize, int flags); - /** - * This method acquires memory chunk of requested size on specified device - * - * @param pointer pointer that'll be used for allocation - * @param memorySize memory size, in bytes - * @param ptrToDeviceId pointer to deviceId. For cuda that's just and int, for OpenCL that's pointer to device_id, etc - * @param flags optional parameter - */ - public native @Cast("Nd4jPointer") Pointer mallocDevice(@Cast("Nd4jLong") long memorySize, int deviceId, int flags); +/** + * This method acquires memory chunk of requested size on specified device + * + * @param pointer pointer that'll be used for allocation + * @param memorySize memory size, in bytes + * @param ptrToDeviceId pointer to deviceId. For cuda that's just and int, for OpenCL that's pointer to device_id, etc + * @param flags optional parameter + */ +public native @Cast("Nd4jPointer") Pointer mallocDevice(@Cast("Nd4jLong") long memorySize, int deviceId, int flags); - /** - * This method releases previously allocated host memory space - * - * @param pointer pointer that'll be freed - */ - public native int freeHost(@Cast("Nd4jPointer") Pointer pointer); +/** + * This method releases previously allocated host memory space + * + * @param pointer pointer that'll be freed + */ +public native int freeHost(@Cast("Nd4jPointer") Pointer pointer); - /** - * This method releases previously allocated memory space on device - * - * @param pointer pointer that'll be freed - * @param ptrToDeviceId pointer to deviceId. - */ - public native int freeDevice(@Cast("Nd4jPointer") Pointer pointer, int deviceId); +/** + * This method releases previously allocated memory space on device + * + * @param pointer pointer that'll be freed + * @param ptrToDeviceId pointer to deviceId. + */ +public native int freeDevice(@Cast("Nd4jPointer") Pointer pointer, int deviceId); - /** - * - * @return - */ - public native int ompGetMaxThreads(); +/** + * + * @return + */ +public native int ompGetMaxThreads(); - /** - * - * @return - */ - public native int ompGetNumThreads(); +/** + * + * @return + */ +public native int ompGetNumThreads(); - /** - * - * @param threads - */ - public native void setOmpNumThreads(int threads); +/** + * + * @param threads + */ +public native void setOmpNumThreads(int threads); - /** - * - * @param threads - */ - public native void setOmpMinThreads(int threads); +/** + * + * @param threads + */ +public native void setOmpMinThreads(int threads); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createContext(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createContext(); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createStream(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createStream(); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer createEvent(); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer createEvent(); - /** - * - * @param event - * @param stream - * @return - */ - public native int registerEvent(@Cast("Nd4jPointer") Pointer event, @Cast("Nd4jPointer") Pointer stream); +/** + * + * @param event + * @param stream + * @return + */ +public native int registerEvent(@Cast("Nd4jPointer") Pointer event, @Cast("Nd4jPointer") Pointer stream); - /** - * - * @param event - * @return - */ - public native int destroyEvent(@Cast("Nd4jPointer") Pointer event); +/** + * + * @param event + * @return + */ +public native int destroyEvent(@Cast("Nd4jPointer") Pointer event); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int setDevice(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int setDevice(int deviceId); - /** - * - * @return - */ - public native int getDevice(); +/** + * + * @return + */ +public native int getDevice(); - /** - * - * @param stream - * @return - */ - public native int streamSynchronize(@Cast("Nd4jPointer") Pointer stream); +/** + * + * @param stream + * @return + */ +public native int streamSynchronize(@Cast("Nd4jPointer") Pointer stream); - /** - * - * @param event - * @return - */ - public native int eventSynchronize(@Cast("Nd4jPointer") Pointer event); +/** + * + * @param event + * @return + */ +public native int eventSynchronize(@Cast("Nd4jPointer") Pointer event); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("Nd4jLong") long getDeviceFreeMemory(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("Nd4jLong") long getDeviceFreeMemory(int deviceId); - /** - * Returns amount of free memory for current device - * @return - */ - public native @Cast("Nd4jLong") long getDeviceFreeMemory(); +/** + * Returns amount of free memory for current device + * @return + */ +public native @Cast("Nd4jLong") long getDeviceFreeMemoryDefault(); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("Nd4jLong") long getDeviceTotalMemory(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("Nd4jLong") long getDeviceTotalMemory(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int getDeviceMajor(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int getDeviceMajor(int deviceId); - /** - * This method returns amount of cached memory - * @param deviceId - * @return - */ - public native @Cast("Nd4jLong") long getCachedMemory(int deviceId); +/** + * This method returns amount of cached memory + * @param deviceId + * @return + */ +public native @Cast("Nd4jLong") long getCachedMemory(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native int getDeviceMinor(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native int getDeviceMinor(int deviceId); - /** - * - * @param ptrToDeviceId - * @return - */ - public native @Cast("char*") String getDeviceName(int deviceId); +/** + * + * @param ptrToDeviceId + * @return + */ +public native @Cast("char*") String getDeviceName(int deviceId); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpy(@Cast("Nd4jPointer") Pointer dst, - @Cast("Nd4jPointer") Pointer src, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpySync(@Cast("Nd4jPointer") Pointer dst, + @Cast("Nd4jPointer") Pointer src, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpyAsync(@Cast("Nd4jPointer") Pointer dst, +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpyAsync(@Cast("Nd4jPointer") Pointer dst, + @Cast("Nd4jPointer") Pointer src, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param value + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memsetSync(@Cast("Nd4jPointer") Pointer dst, + int value, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param value + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memsetAsync(@Cast("Nd4jPointer") Pointer dst, + int value, + @Cast("Nd4jLong") long size, + int flags, + @Cast("Nd4jPointer") Pointer reserved); + +/** + * + * @param dst + * @param src + * @param size + * @param flags + * @param reserved + * @return + */ +public native int memcpyConstantAsync(@Cast("Nd4jLong") long dst, @Cast("Nd4jPointer") Pointer src, @Cast("Nd4jLong") long size, int flags, @Cast("Nd4jPointer") Pointer reserved); - /** - * - * @param dst - * @param value - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memset(@Cast("Nd4jPointer") Pointer dst, - int value, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @return + */ +public native @Cast("Nd4jPointer") Pointer getConstantSpace(); - /** - * - * @param dst - * @param value - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memsetAsync(@Cast("Nd4jPointer") Pointer dst, - int value, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @return + */ +public native int getAvailableDevices(); - /** - * - * @param dst - * @param src - * @param size - * @param flags - * @param reserved - * @return - */ - public native int memcpyConstantAsync(@Cast("Nd4jLong") long dst, - @Cast("Nd4jPointer") Pointer src, - @Cast("Nd4jLong") long size, - int flags, - @Cast("Nd4jPointer") Pointer reserved); +/** + * + * @param reallyEnable + */ +public native void enableDebugMode(@Cast("bool") boolean reallyEnable); - /** - * - * @return - */ - public native @Cast("Nd4jPointer") Pointer getConstantSpace(); +/** + * + * @param reallyEnable + */ +public native void enableVerboseMode(@Cast("bool") boolean reallyEnable); - /** - * - * @return - */ - public native int getAvailableDevices(); +/** + * + * @param gridSize + */ +public native void setGridLimit(int gridSize); - /** - * - * @param reallyEnable - */ - public native void enableDebugMode(@Cast("bool") boolean reallyEnable); +/** + * + * @param xShapeInfo + * @param dimension + * @param dimensionLength + * @param targetBuffer + * @param offsetsBuffer + */ +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongPointer xShapeInfo, + IntPointer dimension, + int dimensionLength); +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongBuffer xShapeInfo, + IntBuffer dimension, + int dimensionLength); +public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") long[] xShapeInfo, + int[] dimension, + int dimensionLength); - /** - * - * @param reallyEnable - */ - public native void enableVerboseMode(@Cast("bool") boolean reallyEnable); +/* + * PullRow special op + */ - /** - * - * @param gridSize - */ - public native void setGridLimit(int gridSize); +/** + * + * @param extraPointers + * @param x + * @param xShapeInfo + * @param z + * @param zShapeInfo + * @param n + * @param indexes + * @param tadShapeInfo + * @param tadOffsets + * @param zTadShapeInfo + * @param zTadOffsets + */ +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") LongPointer indexes, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("Nd4jLong*") LongPointer zTadShapeInfo, + @Cast("Nd4jLong*") LongPointer zTadOffsets); +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") LongBuffer indexes, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("Nd4jLong*") LongBuffer zTadShapeInfo, + @Cast("Nd4jLong*") LongBuffer zTadOffsets); +public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + @Cast("Nd4jLong") long n, + @Cast("Nd4jLong*") long[] indexes, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("Nd4jLong*") long[] zTadShapeInfo, + @Cast("Nd4jLong*") long[] zTadOffsets); - /** - * - * @param xShapeInfo - * @param dimension - * @param dimensionLength - * @param targetBuffer - * @param offsetsBuffer - */ - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongPointer xShapeInfo, - IntPointer dimension, - int dimensionLength); - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") LongBuffer xShapeInfo, - IntBuffer dimension, - int dimensionLength); - public native TadPack tadOnlyShapeInfo(@Cast("Nd4jLong*") long[] xShapeInfo, - int[] dimension, - int dimensionLength); - - /* - * PullRow special op - */ - - /** - * - * @param extraPointers - * @param x - * @param xShapeInfo - * @param z - * @param zShapeInfo - * @param n - * @param indexes - * @param tadShapeInfo - * @param tadOffsets - * @param zTadShapeInfo - * @param zTadOffsets - */ - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") LongPointer indexes, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("Nd4jLong*") LongPointer zTadShapeInfo, - @Cast("Nd4jLong*") LongPointer zTadOffsets); - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") LongBuffer indexes, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("Nd4jLong*") LongBuffer zTadShapeInfo, - @Cast("Nd4jLong*") LongBuffer zTadOffsets); - public native void pullRows(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - @Cast("Nd4jLong") long n, - @Cast("Nd4jLong*") long[] indexes, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("Nd4jLong*") long[] zTadShapeInfo, - @Cast("Nd4jLong*") long[] zTadOffsets); - - /** - * - * @param extras - * @param dx - * @param dz - * @param n - * @param length - * @param propagate - */ - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); - public native void average(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - int n, - @Cast("Nd4jLong") long length, - @Cast("bool") boolean propagate); +/** + * + * @param extras + * @param dx + * @param dz + * @param n + * @param length + * @param propagate + */ +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); +public native void average(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + int n, + @Cast("Nd4jLong") long length, + @Cast("bool") boolean propagate); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); - public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, - Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, - int n, - @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongPointer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongPointer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") LongBuffer dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); +public native void accumulate(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer z, @Cast("Nd4jLong*") long[] zShapeInfo, + Pointer dz, @Cast("Nd4jLong*") long[] dzShapeInfo, + int n, + @Cast("Nd4jLong") long length); - /** - * P2P enabler - */ - /** - * - * @param enable - */ - public native void enableP2P(@Cast("bool") boolean enable); +/** + * P2P enabler + */ +/** + * + * @param enable + */ +public native void enableP2P(@Cast("bool") boolean enable); - /** - * - */ - public native void checkP2P(); +/** + * + */ +public native void checkP2P(); - /** - * - * @return - */ - public native @Cast("bool") boolean isP2PAvailable(); +/** + * + * @return + */ +public native @Cast("bool") boolean isP2PAvailable(); - /** - * Shuffle methods - */ +/** + * Shuffle methods + */ - /** - * - * @param extras - * @param dx - * @param xShapeInfo - * @param dz - * @param zShapeInfo - * @param N - * @param shuffleMap - * @param tadShapeInfo - * @param tadOffsets - */ - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - IntPointer shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - IntBuffer shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); - public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, - @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, - @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, - int N, - int[] shuffleMap, - @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, - @Cast("Nd4jPointer*") PointerPointer tadOffsets); +/** + * + * @param extras + * @param dx + * @param xShapeInfo + * @param dz + * @param zShapeInfo + * @param N + * @param shuffleMap + * @param tadShapeInfo + * @param tadOffsets + */ +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + IntPointer shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + IntBuffer shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); +public native void shuffle(@Cast("Nd4jPointer*") PointerPointer extras, + @Cast("Nd4jPointer*") PointerPointer x, @Cast("Nd4jPointer*") PointerPointer xShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dx, @Cast("Nd4jPointer*") PointerPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer z, @Cast("Nd4jPointer*") PointerPointer zShapeInfo, + @Cast("Nd4jPointer*") PointerPointer dz, @Cast("Nd4jPointer*") PointerPointer dzShapeInfo, + int N, + int[] shuffleMap, + @Cast("Nd4jPointer*") PointerPointer tadShapeInfo, + @Cast("Nd4jPointer*") PointerPointer tadOffsets); - /** - * Type Conversions - */ +/** + * Type Conversions + */ - /** - * - * @param extras - * @param srcType - * @param x - * @param N - * @param dstType - * @param z - */ - public native void convertTypes(@Cast("Nd4jPointer*") PointerPointer extras, int srcType, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong") long N, int dstType, @Cast("Nd4jPointer") Pointer z); +/** + * + * @param extras + * @param srcType + * @param x + * @param N + * @param dstType + * @param z + */ +public native void convertTypes(@Cast("Nd4jPointer*") PointerPointer extras, int srcType, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong") long N, int dstType, @Cast("Nd4jPointer") Pointer z); - /** - * - * @return - */ - public native @Cast("bool") boolean isExperimentalEnabled(); +/** + * + * @return + */ +public native @Cast("bool") boolean isExperimentalEnabled(); - /** - * Aggregate - */ +/** + * Aggregate + */ - /** - * - * @param extraPointers - * @param opNum - * @param arguments - * @param numArguments - * @param shapeArguments - * @param numShapeArguments - * @param indexArguments - * @param numIndexArguments - * @param intArrays - * @param numIntArrays - * @param realArguments - * @param numRealArguments - */ - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") PointerPointer arguments, - int numArguments, - @Cast("Nd4jLong**") PointerPointer shapeArguments, - int numShapeArguments, - IntPointer indexArguments, - int numIndexArguments, - @Cast("int**") PointerPointer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr LongPointer shapeArguments, - int numShapeArguments, - IntPointer indexArguments, - int numIndexArguments, - @ByPtrPtr IntPointer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr LongBuffer shapeArguments, - int numShapeArguments, - IntBuffer indexArguments, - int numIndexArguments, - @ByPtrPtr IntBuffer intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); - public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("void**") @ByPtrPtr Pointer arguments, - int numArguments, - @Cast("Nd4jLong**") @ByPtrPtr long[] shapeArguments, - int numShapeArguments, - int[] indexArguments, - int numIndexArguments, - @ByPtrPtr int[] intArrays, - int numIntArrays, - Pointer realArguments, - int numRealArguments, - @Cast("nd4j::DataType") int dtype); +/** + * + * @param extraPointers + * @param opNum + * @param arguments + * @param numArguments + * @param shapeArguments + * @param numShapeArguments + * @param indexArguments + * @param numIndexArguments + * @param intArrays + * @param numIntArrays + * @param realArguments + * @param numRealArguments + */ +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") PointerPointer arguments, + int numArguments, + @Cast("Nd4jLong**") PointerPointer shapeArguments, + int numShapeArguments, + IntPointer indexArguments, + int numIndexArguments, + @Cast("int**") PointerPointer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr LongPointer shapeArguments, + int numShapeArguments, + IntPointer indexArguments, + int numIndexArguments, + @ByPtrPtr IntPointer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr LongBuffer shapeArguments, + int numShapeArguments, + IntBuffer indexArguments, + int numIndexArguments, + @ByPtrPtr IntBuffer intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); +public native void execAggregate(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("void**") @ByPtrPtr Pointer arguments, + int numArguments, + @Cast("Nd4jLong**") @ByPtrPtr long[] shapeArguments, + int numShapeArguments, + int[] indexArguments, + int numIndexArguments, + @ByPtrPtr int[] intArrays, + int numIntArrays, + Pointer realArguments, + int numRealArguments, + @Cast("nd4j::DataType") int dtype); - public native void execAggregateBatch(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int numAggregates, - int opNum, - int maxArgs, - int maxShapes, - int maxIntArrays, - int maxIntArraySize, - int maxIdx, - int maxReals, - Pointer ptrToArguments, - @Cast("nd4j::DataType") int dtype); - /** - * Random operations - */ +public native void batchExecutor(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int numAggregates, + int opNum, + int maxArgs, + int maxShapes, + int maxIntArrays, + int maxIntArraySize, + int maxIdx, + int maxReals, + Pointer ptrToArguments, + @Cast("nd4j::DataType") int dtype); - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, +public native void execAggregateBatch(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int numAggregates, int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); + int maxArgs, + int maxShapes, + int maxIntArrays, + int maxIntArraySize, + int maxIdx, + int maxReals, + Pointer ptrToArguments, + @Cast("nd4j::DataType") int dtype); - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param x - * @param xShapeBuffer - * @param y - * @param yShapeBuffer - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeBuffer, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); +/** + * Random operations + */ - /** - * - * @param extraPointers - * @param opNum - * @param state - * @param x - * @param xShapeBuffer - * @param z - * @param zShapeBuffer - * @param extraArguments - */ - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, - Pointer extraArguments); - public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - int opNum, - @Cast("Nd4jPointer") Pointer state, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, - Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, - Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, - Pointer extraArguments); +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); + +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param x + * @param xShapeBuffer + * @param y + * @param yShapeBuffer + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom3(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeBuffer, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); + +/** + * + * @param extraPointers + * @param opNum + * @param state + * @param x + * @param xShapeBuffer + * @param z + * @param zShapeBuffer + * @param extraArguments + */ +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongPointer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongPointer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") LongBuffer hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") LongBuffer dZShapeBuffer, + Pointer extraArguments); +public native void execRandom2(@Cast("Nd4jPointer*") PointerPointer extraPointers, + int opNum, + @Cast("Nd4jPointer") Pointer state, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeBuffer, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeBuffer, + Pointer hZ, @Cast("Nd4jLong*") long[] hZShapeBuffer, + Pointer dZ, @Cast("Nd4jLong*") long[] dZShapeBuffer, + Pointer extraArguments); - /** - * - * @param extraPointers - * @param seed - * @param bufferSize - * @param ptrToBuffer - * @return - */ - public native @Cast("Nd4jPointer") Pointer initRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - long bufferSize, - @Cast("Nd4jPointer") Pointer ptrToBuffer); +/** + * + * @param extraPointers + * @param seed + * @param bufferSize + * @param ptrToBuffer + * @return + */ +public native @Cast("Nd4jPointer") Pointer initRandom(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + long bufferSize, + @Cast("Nd4jPointer") Pointer ptrToBuffer); - /** - * - * @param extraPointers - * @param seed - * @param ptrRandom - */ - public native void refreshBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - @Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param extraPointers + * @param seed + * @param ptrRandom + */ +public native void refreshBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + @Cast("Nd4jPointer") Pointer ptrRandom); - /** - * - * @param extraPointers - * @param seed - * @param ptrRandom - */ - public native void reSeedBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, - long seed, - @Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param extraPointers + * @param seed + * @param ptrRandom + */ +public native void reSeedBuffer(@Cast("Nd4jPointer*") PointerPointer extraPointers, + long seed, + @Cast("Nd4jPointer") Pointer ptrRandom); - /** - * - * @param ptrRandom - */ - public native void destroyRandom(@Cast("Nd4jPointer") Pointer ptrRandom); +/** + * + * @param ptrRandom + */ +public native void destroyRandom(@Cast("Nd4jPointer") Pointer ptrRandom); - /** - * Grid operations - */ +/** + * Grid operations + */ - /** - * - * @param extras - * @param opTypeA - * @param opNumA - * @param opTypeB - * @param opNumB - * @param N - * @param dx - * @param xShapeInfo - * @param dy - * @param yShapeInfo - * @param dz - * @param zShapeInfo - * @param extraA - * @param extraB - * @param scalarA - * @param scalarB - */ - /* - void execMetaPredicateShape(Nd4jPointer *extras, - const int opTypeA, - const int opNumA, - const int opTypeB, - const int opNumB, - Nd4jLong N, - void *hX, Nd4jLong *hXShapeBuffer, - void *dX, Nd4jLong *dXShapeBuffer, - void *hY, Nd4jLong *hYShapeBuffer, - void *dY, Nd4jLong *dYShapeBuffer, - void *hZ, Nd4jLong *hZShapeBuffer, - void *dZ, Nd4jLong *dZShapeBuffer, - void *extraA, - void *extraB, - double scalarA, - double scalarB); +/** + * + * @param extras + * @param opTypeA + * @param opNumA + * @param opTypeB + * @param opNumB + * @param N + * @param dx + * @param xShapeInfo + * @param dy + * @param yShapeInfo + * @param dz + * @param zShapeInfo + * @param extraA + * @param extraB + * @param scalarA + * @param scalarB + */ + /* +ND4J_EXPORT void execMetaPredicateShape(Nd4jPointer *extras, + const int opTypeA, + const int opNumA, + const int opTypeB, + const int opNumB, + Nd4jLong N, + void *hX, Nd4jLong *hXShapeBuffer, + void *dX, Nd4jLong *dXShapeBuffer, + void *hY, Nd4jLong *hYShapeBuffer, + void *dY, Nd4jLong *dYShapeBuffer, + void *hZ, Nd4jLong *hZShapeBuffer, + void *dZ, Nd4jLong *dZShapeBuffer, + void *extraA, + void *extraB, + double scalarA, + double scalarB); */ -/** - * - * @param data - * @param shapeBuffer - * @param wordSize - * @param headerSize - * @return - */ - - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongPointer headerSize); - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongBuffer headerSize); - public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") long[] headerSize); /** - * Load numpy from a header - * based on the cnpy parse from header method. - * @param data the header data to parse - * @return a pointer to a numpy cnpy:NpyArray struct - */ - public native @Cast("Nd4jPointer") Pointer loadNpyFromHeader(@Cast("Nd4jPointer") Pointer data); +* +* @param data +* @param shapeBuffer +* @param wordSize +* @param headerSize +* @return +*/ + +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongPointer headerSize); +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") LongBuffer headerSize); +public native @Cast("Nd4jPointer") Pointer numpyHeaderForNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize,@Cast("Nd4jLong*") long[] headerSize); + +/** +* Load numpy from a header +* based on the cnpy parse from header method. +* @param data the header data to parse +* @return a pointer to a numpy cnpy:NpyArray struct +*/ +public native @Cast("Nd4jPointer") Pointer loadNpyFromHeader(@Cast("Nd4jPointer") Pointer data); + +/** +* Create a numpy array from an nd4j +* array +* @param data a pointer to the data +* @param shapeBuffer the shapebuffer for the nd4j array +* @param wordSize the word size (4 for float, 8 for doubles) +* @return a pointer to a numpy array +*/ + +public native @Cast("Nd4jPointer") Pointer numpyFromNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize); /** - * Create a numpy array from an nd4j - * array - * @param data a pointer to the data - * @param shapeBuffer the shapebuffer for the nd4j array - * @param wordSize the word size (4 for float, 8 for doubles) - * @return a pointer to a numpy array - */ - - - public native @Cast("Nd4jPointer") Pointer numpyFromNd4j(@Cast("Nd4jPointer") Pointer data,@Cast("Nd4jPointer") Pointer shapeBuffer,@Cast("Nd4jLong") long wordSize); - - -/** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpy(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpy(@Cast("Nd4jPointer") Pointer npyArray); /** @@ -2649,78 +2647,78 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * @param npyArray * @return */ - public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); +public native @Cast("Nd4jPointer") Pointer shapeBufferForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); /** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpyHeader(@Cast("Nd4jPointer") Pointer npyArray); /** - * - * @param npyArray - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpyStruct(@Cast("Nd4jPointer") Pointer npyArrayStruct); +* +* @param npyArray +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpyStruct(@Cast("Nd4jPointer") Pointer npyArrayStruct); /** - * - * @param npyArray - * @param fromFile - * @return - */ - public native @Cast("Nd4jPointer") Pointer dataPointForNumpy(@Cast("Nd4jPointer") Pointer npyArray); +* +* @param npyArray +* @param fromFile +* @return +*/ +public native @Cast("Nd4jPointer") Pointer dataPointForNumpy(@Cast("Nd4jPointer") Pointer npyArray); /** - * Load a numpy array from a file - * and return it as an Nd4jPointer - * @param path - * @return - */ - public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString BytePointer path); - public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString String path); +* Load a numpy array from a file +* and return it as an Nd4jPointer +* @param path +* @return +*/ +public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString BytePointer path); +public native @Cast("Nd4jPointer") Pointer numpyFromFile(@StdString String path); - ////// NPZ ////// +////// NPZ ////// - public native Pointer mapFromNpzFile(@StdString BytePointer path); - public native Pointer mapFromNpzFile(@StdString String path); +public native Pointer mapFromNpzFile(@StdString BytePointer path); +public native Pointer mapFromNpzFile(@StdString String path); - public native int getNumNpyArraysInMap(Pointer map); +public native int getNumNpyArraysInMap(Pointer map); - public native @Cast("char*") String getNpyArrayNameFromMap(Pointer map, int index); +public native @Cast("char*") String getNpyArrayNameFromMap(Pointer map, int index); - public native Pointer getNpyArrayFromMap(Pointer map, int index); +public native Pointer getNpyArrayFromMap(Pointer map, int index); - public native int dataTypeFromNpyHeader(Pointer header); +public native int dataTypeFromNpyHeader(Pointer header); - public native Pointer getNpyArrayData(Pointer npArray); +public native Pointer getNpyArrayData(Pointer npArray); - public native int getNpyArrayRank(Pointer npArray); +public native int getNpyArrayRank(Pointer npArray); - public native @Cast("Nd4jLong*") LongPointer getNpyArrayShape(Pointer npArray); +public native @Cast("Nd4jLong*") LongPointer getNpyArrayShape(Pointer npArray); - public native char getNpyArrayOrder(Pointer npArray); +public native char getNpyArrayOrder(Pointer npArray); - public native int getNpyArrayElemSize(Pointer npArray); +public native int getNpyArrayElemSize(Pointer npArray); - public native void deleteNPArrayStruct(Pointer npArray); +public native void deleteNPArrayStruct(Pointer npArray); - public native void deleteNPArrayMap(Pointer map); - ////// +public native void deleteNPArrayMap(Pointer map); +////// /** - * Get the element size for a numpy array - * @param npyArray the numpy array's address - * to get the length for - * @return - */ - public native int elementSizeForNpyArray(@Cast("Nd4jPointer") Pointer npyArray); +* Get the element size for a numpy array +* @param npyArray the numpy array's address +* to get the length for +* @return +*/ +public native int elementSizeForNpyArray(@Cast("Nd4jPointer") Pointer npyArray); /** @@ -2729,335 +2727,327 @@ public static class NativeOps extends org.nd4j.nativeblas.NativeOps { * to get the length for * @return */ - public native int elementSizeForNpyArrayHeader(@Cast("Nd4jPointer") Pointer npyArray); +public native int elementSizeForNpyArrayHeader(@Cast("Nd4jPointer") Pointer npyArray); - public native void releaseNumpy(@Cast("Nd4jPointer") Pointer npyArray); +public native void releaseNumpy(@Cast("Nd4jPointer") Pointer npyArray); - /** - * Return the length of a shape buffer - * based on the pointer - * @param buffer the buffer pointer to check - * @return - */ - public native int lengthForShapeBufferPointer(@Cast("Nd4jPointer") Pointer buffer); +/** + * Return the length of a shape buffer + * based on the pointer + * @param buffer the buffer pointer to check + * @return + */ +public native int lengthForShapeBufferPointer(@Cast("Nd4jPointer") Pointer buffer); - /** - * The pointer to get the address for - * - * @param address the address to get the pointer - * @return the pointer for the given address - */ + /** +* The pointer to get the address for +* +* @param address the address to get the pointer +* @return the pointer for the given address +*/ - public native @Cast("Nd4jPointer") Pointer pointerForAddress(@Cast("Nd4jLong") long address); +public native @Cast("Nd4jPointer") Pointer pointerForAddress(@Cast("Nd4jLong") long address); - /** - * This method takes single N-dimensional tensor, and copies its TADs to target arrays - * - * @param x - * @param xShapeInfo - * @param targets - * @param zShapeInfo - * @return - */ - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongPointer zShapeInfo, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets); - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongBuffer zShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets); - public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") long[] zShapeInfo, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets); +/** + * This method takes single N-dimensional tensor, and copies its TADs to target arrays + * + * @param x + * @param xShapeInfo + * @param targets + * @param zShapeInfo + * @return + */ +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongPointer zShapeInfo, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets); +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") LongBuffer zShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets); +public native void tear(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + @Cast("Nd4jPointer*") PointerPointer targets, @Cast("Nd4jLong*") long[] zShapeInfo, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); - public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); - public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); +public native @Cast("Nd4jLong") long encodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); +public native void decodeBitmap(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); - public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntPointer dx, @Cast("Nd4jLong") long N, IntPointer dz); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntBuffer dx, @Cast("Nd4jLong") long N, IntBuffer dz); - public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, int[] dx, @Cast("Nd4jLong") long N, int[] dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, IntPointer offsets, @Cast("Nd4jLong") long N, IntPointer dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, IntBuffer offsets, @Cast("Nd4jLong") long N, IntBuffer dz); - public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, int[] offsets, @Cast("Nd4jLong") long N, int[] dz); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, @Cast("Nd4jLong") long N, IntPointer dz, float threshold); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, @Cast("Nd4jLong") long N, IntBuffer dz, float threshold); +public native void encodeThresholdP1(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, @Cast("Nd4jLong") long N, int[] dz, float threshold); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntPointer dx, @Cast("Nd4jLong") long N, IntPointer dz); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, IntBuffer dx, @Cast("Nd4jLong") long N, IntBuffer dz); +public native void encodeThresholdP2Int(@Cast("Nd4jPointer*") PointerPointer extraPointers, int[] dx, @Cast("Nd4jLong") long N, int[] dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongPointer xShapeInfo, IntPointer offsets, @Cast("Nd4jLong") long N, IntPointer dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") LongBuffer xShapeInfo, IntBuffer offsets, @Cast("Nd4jLong") long N, IntBuffer dz); +public native void encodeThresholdP3(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong*") long[] xShapeInfo, int[] offsets, @Cast("Nd4jLong") long N, int[] dz); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); - public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongPointer zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") LongBuffer zShapeInfo); +public native void decodeThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, Pointer dx, @Cast("Nd4jLong") long N, Pointer dz, @Cast("Nd4jLong*") long[] zShapeInfo); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - @Cast("bool") boolean descending); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - @Cast("bool") boolean descending); - public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + @Cast("bool") boolean descending); +public native void sort(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - @Cast("bool") boolean descending); - public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + @Cast("bool") boolean descending); +public native void sortByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("Nd4jLong*") LongPointer tadShapeInfo, - @Cast("Nd4jLong*") LongPointer tadOffsets, - @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("Nd4jLong*") LongBuffer tadShapeInfo, - @Cast("Nd4jLong*") LongBuffer tadOffsets, - @Cast("bool") boolean descending); - public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("Nd4jLong*") long[] tadShapeInfo, - @Cast("Nd4jLong*") long[] tadOffsets, - @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("Nd4jLong*") LongPointer tadShapeInfo, + @Cast("Nd4jLong*") LongPointer tadOffsets, + @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("Nd4jLong*") LongBuffer tadShapeInfo, + @Cast("Nd4jLong*") LongBuffer tadOffsets, + @Cast("bool") boolean descending); +public native void sortTad(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("Nd4jLong*") long[] tadShapeInfo, + @Cast("Nd4jLong*") long[] tadOffsets, + @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByKey(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, - IntPointer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, - IntBuffer dimension, - int dimensionLength, - @Cast("bool") boolean descending); - public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, - Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, - Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, - Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, - Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, - int[] dimension, - int dimensionLength, - @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongPointer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongPointer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongPointer dyShapeInfo, + IntPointer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") LongBuffer dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") LongBuffer yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") LongBuffer dyShapeInfo, + IntBuffer dimension, + int dimensionLength, + @Cast("bool") boolean descending); +public native void sortTadByValue(@Cast("Nd4jPointer*") PointerPointer extraPointers, + Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, + Pointer dx, @Cast("Nd4jLong*") long[] dxShapeInfo, + Pointer y, @Cast("Nd4jLong*") long[] yShapeInfo, + Pointer dy, @Cast("Nd4jLong*") long[] dyShapeInfo, + int[] dimension, + int dimensionLength, + @Cast("bool") boolean descending); - // special sort impl for sorting out COO indices and values - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +// special sort impl for sorting out COO indices and values +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer indices, Pointer values, @Cast("Nd4jLong") long length, int rank); +public native void sortCooIndices(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] indices, Pointer values, @Cast("Nd4jLong") long length, int rank); - public native @Cast("Nd4jLong*") LongPointer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String fileName, @Cast("Nd4jLong") long length); - public native @Cast("Nd4jLong*") LongBuffer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer fileName, @Cast("Nd4jLong") long length); +public native @Cast("Nd4jLong*") LongPointer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String fileName, @Cast("Nd4jLong") long length); +public native @Cast("Nd4jLong*") LongBuffer mmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer fileName, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer ptrMap, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer ptrMap, @Cast("Nd4jLong") long length); - public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongPointer ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") LongBuffer ptrMap, @Cast("Nd4jLong") long length); +public native void munmapFile(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong*") long[] ptrMap, @Cast("Nd4jLong") long length); - // flatbuffers execution - public native ResultWrapper executeFlatGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer flatBufferPointer); +// flatbuffers execution +public native ResultWrapper executeFlatGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer flatBufferPointer); - public native @Cast("char*") String getAllCustomOps(); +public native @Cast("char*") String getAllCustomOps(); - public native @Cast("char*") String getAllOperations(); +public native @Cast("char*") String getAllOperations(); - // customOp executioner - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); - public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer") Pointer opContext); +// customOp executioner +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs, @Cast("bool") boolean isInplace); +public native int execCustomOp2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer") Pointer opContext); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); - public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs); +public native ShapeList calculateOutputShapes(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoublePointer tArgs, int numTArgs, @Cast("Nd4jLong*") LongPointer iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, DoubleBuffer tArgs, int numTArgs, @Cast("Nd4jLong*") LongBuffer iArgs, int numIArgs, @Cast("bool*") BooleanPointer bArgs, int numBArgs); +public native ShapeList calculateOutputShapes2(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long hash, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputShapes, double[] tArgs, int numTArgs, @Cast("Nd4jLong*") long[] iArgs, int numIArgs, @Cast("bool*") boolean[] bArgs, int numBArgs); - public native void deleteShapeList(@Cast("Nd4jPointer") Pointer shapeList); +public native void deleteShapeList(@Cast("Nd4jPointer") Pointer shapeList); - public native int registerGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer") Pointer flatBufferPointer); +public native int registerGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer") Pointer flatBufferPointer); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntPointer inputIndices, int numInputs); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntBuffer inputIndices, int numInputs); - public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int[] inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntPointer inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, IntBuffer inputIndices, int numInputs); +public native VariablesSet executeStoredGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int[] inputIndices, int numInputs); - public native int unregisterGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId); +public native int unregisterGraph(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jLong") long graphId); - public native void deleteCharArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteIntArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteLongArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deletePointerArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteCharArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteIntArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteLongArray(@Cast("Nd4jPointer") Pointer pointer); +public native void deletePointerArray(@Cast("Nd4jPointer") Pointer pointer); - public native void deleteVariablesSet(@Cast("Nd4jPointer") Pointer pointer); +public native void deleteVariablesSet(@Cast("Nd4jPointer") Pointer pointer); - // GraphState creation - public native @Cast("Nd4jPointer") Pointer getGraphState(@Cast("Nd4jLong") long id); +// GraphState creation +public native @Cast("Nd4jPointer") Pointer getGraphState(@Cast("Nd4jLong") long id); - public native void deleteGraphState(@Cast("Nd4jPointer") Pointer state); +public native void deleteGraphState(@Cast("Nd4jPointer") Pointer state); - public native void deleteResultWrapper(@Cast("Nd4jPointer") Pointer ptr); +public native void deleteResultWrapper(@Cast("Nd4jPointer") Pointer ptr); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, int N, float threshold); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, int N, float threshold); - public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongPointer xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") LongBuffer xShapeInfo, int N, float threshold); +public native int estimateThreshold(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer x, @Cast("Nd4jLong*") long[] xShapeInfo, int N, float threshold); - // this method executes op that requires scope to be present: if/while/cond/whatever - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongPointer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongBuffer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") long[] scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +// this method executes op that requires scope to be present: if/while/cond/whatever +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongPointer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") LongBuffer scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); +public native @Cast("Nd4jStatus") int execCustomOpWithScope(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer state, @Cast("Nd4jLong") long opHash, @Cast("Nd4jLong*") long[] scopes, int numScopes, @Cast("Nd4jPointer*") PointerPointer inputBuffers, @Cast("Nd4jPointer*") PointerPointer inputShapes, int numInputs, @Cast("Nd4jPointer*") PointerPointer outputBuffers, @Cast("Nd4jPointer*") PointerPointer outputShapes, int numOutputs); - //void fillUtf8String(Nd4jPointer *extraPointers, const char **string, int numStrings, Nd4jPointer buffer); - public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String string, int length); - public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer string, int length); - public native void deleteUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer ptr); +//void fillUtf8String(Nd4jPointer *extraPointers, const char **string, int numStrings, Nd4jPointer buffer); +public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") String string, int length); +public native @Cast("Nd4jPointer") Pointer createUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("char*") BytePointer string, int length); +public native void deleteUtf8String(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer ptr); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, @Cast("Nd4jLong*") LongPointer hXOffsets, - Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, @Cast("Nd4jLong*") LongPointer dXOffsets, - Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, @Cast("Nd4jLong*") LongPointer hYOffsets, - Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, @Cast("Nd4jLong*") LongPointer dYOffsets, - IntPointer hIindexes, IntPointer dIindexes); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, @Cast("Nd4jLong*") LongBuffer hXOffsets, - Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, @Cast("Nd4jLong*") LongBuffer dXOffsets, - Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, @Cast("Nd4jLong*") LongBuffer hYOffsets, - Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, @Cast("Nd4jLong*") LongBuffer dYOffsets, - IntBuffer hIindexes, IntBuffer dIindexes); - public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, - Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, @Cast("Nd4jLong*") long[] hXOffsets, - Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, @Cast("Nd4jLong*") long[] dXOffsets, - Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, @Cast("Nd4jLong*") long[] hYOffsets, - Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, @Cast("Nd4jLong*") long[] dYOffsets, - int[] hIindexes, int[] dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") LongPointer hXShapeInfo, @Cast("Nd4jLong*") LongPointer hXOffsets, + Pointer dX, @Cast("Nd4jLong*") LongPointer dXShapeInfo, @Cast("Nd4jLong*") LongPointer dXOffsets, + Pointer hY, @Cast("Nd4jLong*") LongPointer hYShapeInfo, @Cast("Nd4jLong*") LongPointer hYOffsets, + Pointer dY, @Cast("Nd4jLong*") LongPointer dYShapeInfo, @Cast("Nd4jLong*") LongPointer dYOffsets, + IntPointer hIindexes, IntPointer dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") LongBuffer hXShapeInfo, @Cast("Nd4jLong*") LongBuffer hXOffsets, + Pointer dX, @Cast("Nd4jLong*") LongBuffer dXShapeInfo, @Cast("Nd4jLong*") LongBuffer dXOffsets, + Pointer hY, @Cast("Nd4jLong*") LongBuffer hYShapeInfo, @Cast("Nd4jLong*") LongBuffer hYOffsets, + Pointer dY, @Cast("Nd4jLong*") LongBuffer dYShapeInfo, @Cast("Nd4jLong*") LongBuffer dYOffsets, + IntBuffer hIindexes, IntBuffer dIindexes); +public native void scatterUpdate(@Cast("Nd4jPointer*") PointerPointer extraPointers, int opCode, int numOfSubArrs, + Pointer hX, @Cast("Nd4jLong*") long[] hXShapeInfo, @Cast("Nd4jLong*") long[] hXOffsets, + Pointer dX, @Cast("Nd4jLong*") long[] dXShapeInfo, @Cast("Nd4jLong*") long[] dXOffsets, + Pointer hY, @Cast("Nd4jLong*") long[] hYShapeInfo, @Cast("Nd4jLong*") long[] hYOffsets, + Pointer dY, @Cast("Nd4jLong*") long[] dYShapeInfo, @Cast("Nd4jLong*") long[] dYOffsets, + int[] hIindexes, int[] dIindexes); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongPointer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongPointer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongBuffer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongBuffer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") long[] shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") long[] specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); - - - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongPointer shape, @Cast("Nd4jLong*") LongPointer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongBuffer shape, @Cast("Nd4jLong*") LongBuffer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") long[] shape, @Cast("Nd4jLong*") long[] strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); - - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongPointer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongBuffer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") long[] data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, DoublePointer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, DoubleBuffer data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, double[] data, int length); - public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, ConstantDescriptor descriptor); - - public native void deleteShapeBuffer(@Cast("Nd4jPointer") Pointer ptr); - public native void deleteTadPack(@Cast("Nd4jPointer") Pointer ptr); - - public native @Cast("char*") String runLightBenchmarkSuit(@Cast("bool") boolean printOut); - public native @Cast("char*") String runFullBenchmarkSuit(@Cast("bool") boolean printOut); -} +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongPointer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongPointer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") LongBuffer shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") LongBuffer specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native void inspectArray(@Cast("Nd4jPointer*") PointerPointer extraPointers, @Cast("Nd4jPointer") Pointer buffer, @Cast("Nd4jLong*") long[] shapeInfo, @Cast("Nd4jPointer") Pointer specialBuffer, @Cast("Nd4jLong*") long[] specialShapeInfo, @Cast("Nd4jPointer") Pointer debugInfo); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongPointer shape, @Cast("Nd4jLong*") LongPointer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") LongBuffer shape, @Cast("Nd4jLong*") LongBuffer strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer shapeBuffer(int rank, @Cast("Nd4jLong*") long[] shape, @Cast("Nd4jLong*") long[] strides, @Cast("nd4j::DataType") int dtype, char order, @Cast("Nd4jLong") long ews, @Cast("bool") boolean empty); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongPointer data, int length); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") LongBuffer data, int length); +public native ConstantDataBuffer constantBufferLong(@Cast("nd4j::DataType") int dtype, @Cast("Nd4jLong*") long[] data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, DoublePointer data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, DoubleBuffer data, int length); +public native ConstantDataBuffer constantBufferDouble(@Cast("nd4j::DataType") int dtype, double[] data, int length); +public native ConstantDataBuffer constantBuffer(@Cast("nd4j::DataType") int dtype, ConstantDescriptor descriptor); +public native @Cast("char*") String runLightBenchmarkSuit(@Cast("bool") boolean printOut); +public native @Cast("char*") String runFullBenchmarkSuit(@Cast("bool") boolean printOut); // #endif //NATIVEOPERATIONS_NATIVEOPS_H diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuHelper.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuHelper.java new file mode 100644 index 000000000..26f4271ab --- /dev/null +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuHelper.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2015-2019 Skymind, Inc. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ******************************************************************************/ + +package org.nd4j.nativeblas; + +public abstract class Nd4jCpuHelper extends Nd4jCpuPresets implements NativeOps { +} diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuPresets.java b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuPresets.java index 4cbb2374f..374a2c52d 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuPresets.java +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpuPresets.java @@ -31,7 +31,7 @@ import java.util.Scanner; * * @author saudet */ -@Properties(target = "org.nd4j.nativeblas.Nd4jCpu", +@Properties(target = "org.nd4j.nativeblas.Nd4jCpu", helper = "org.nd4j.nativeblas.Nd4jCpuHelper", value = {@Platform(define = "LIBND4J_ALL_OPS", include = { "memory/MemoryType.h", "array/DataType.h", @@ -155,7 +155,7 @@ public class Nd4jCpuPresets implements InfoMapper, BuildEnabled { public void map(InfoMap infoMap) { infoMap.put(new Info("thread_local", "ND4J_EXPORT", "INLINEDEF", "CUBLASWINAPI", "FORCEINLINE", "_CUDA_H", "_CUDA_D", "_CUDA_G", "_CUDA_HD", "LIBND4J_ALL_OPS", "NOT_EXCLUDED").cppTypes().annotations()) - .put(new Info("NativeOps").base("org.nd4j.nativeblas.NativeOps")) + .put(new Info("NativeOps.h").objectify()) .put(new Info("const char").valueTypes("byte").pointerTypes("@Cast(\"char*\") String", "@Cast(\"char*\") BytePointer")) .put(new Info("char").valueTypes("char").pointerTypes("@Cast(\"char*\") BytePointer", diff --git a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/resources/nd4j-native.properties b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/resources/nd4j-native.properties index 637de6534..071cb4fd2 100644 --- a/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/resources/nd4j-native.properties +++ b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/resources/nd4j-native.properties @@ -25,7 +25,7 @@ dtype = float complex.double.class = org.nd4j.linalg.cpu.nativecpu.complex.ComplexDouble blas.ops = org.nd4j.linalg.cpu.nativecpu.BlasWrapper sparseblas.ops = org.nd4j.linalg.cpu.nativecpu.SparseBlasWrapper -native.ops= org.nd4j.nativeblas.Nd4jCpu$NativeOps +native.ops= org.nd4j.nativeblas.Nd4jCpu ndarrayfactory.class = org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory sparsendarrayfactory.class = org.nd4j.linalg.cpu.nativecpu.CpuSparseNDArrayFactory ndarray.order = c @@ -36,4 +36,4 @@ alloc = javacpp fft = org.nd4j.linalg.fft.DefaultFFTInstance opexec= org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner opexec.mode= native -random=org.nd4j.linalg.cpu.nativecpu.rng.CpuNativeRandom \ No newline at end of file +random=org.nd4j.linalg.cpu.nativecpu.rng.CpuNativeRandom diff --git a/pom.xml b/pom.xml index 8d969f9c4..8b474e1d1 100644 --- a/pom.xml +++ b/pom.xml @@ -288,7 +288,7 @@ ${javacpp.platform} - 1.5.1 + 1.5.2-SNAPSHOT 1.5.1 1.5.1 @@ -298,7 +298,7 @@ 0.3.6 2019.4 0.20 - ${mkl-dnn.version}-${javacpp.version} + ${mkl-dnn.version}-${javacpp-presets.version} 4.1.0 4.1.3 1.78.0