A computational kernel for multidimensional array operations.  
 More...
#include <NativeArrayKernel.hpp>
 | 
| static jboolean  | isJintArray (JNIEnv *env, jobject obj) | 
|   | Gets whether the given object is of type int[].  More...
  | 
|   | 
| static jboolean  | isJdoubleArray (JNIEnv *env, jobject obj) | 
|   | Gets whether the given object is of type double[].  More...
  | 
|   | 
| static jboolean  | isAssignableFrom (JNIEnv *env, jclass to, jclass from) | 
|   | Gets whether one type is assignable from another.  More...
  | 
|   | 
| static jclass  | getComponentType (JNIEnv *env, jclass clazz) | 
|   | Gets the component type of the given array type.  More...
  | 
|   | 
| static jobjectArray  | newArray (JNIEnv *env, jclass clazz, jint len) | 
|   | Creates a Java array of type Object[].  More...
  | 
|   | 
| static jobject  | newSparseArrayState (JNIEnv *env, jarray values, jintArray indices, jintArray indirectionOffsets, jintArray indirections) | 
|   | Creates a sparse array.  More...
  | 
|   | 
| static ArrayPinHandler::jarray_type  | getArrayType (JNIEnv *env, jobject srcV, jobject dstV) | 
|   | Extracts the common array type.  More...
  | 
|   | 
| static void  | init (JNIEnv *env) | 
|   | Initializes the kernel.  More...
  | 
|   | 
| static void  | destroy (JNIEnv *env) | 
|   | Destroys the kernel.  More...
  | 
|   | 
A computational kernel for multidimensional array operations. 
 
  
  
      
        
          | void NativeArrayKernel::destroy  | 
          ( | 
          JNIEnv *  | 
          env | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Destroys the kernel. 
- Parameters
 - 
  
  
 
 
 
Extracts the common array type. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | srcV | the nominal source values.  | 
    | dstV | the nominal destination values.  | 
  
   
- Returns
 - the common array type. 
 
 
 
  
  
      
        
          | jclass NativeArrayKernel::getComponentType  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jclass  | 
          clazz  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Gets the component type of the given array type. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | clazz | the array type.  | 
  
   
- Returns
 - the component type. 
 
 
 
  
  
      
        
          | void NativeArrayKernel::init  | 
          ( | 
          JNIEnv *  | 
          env | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Initializes the kernel. 
- Parameters
 - 
  
  
 
 
 
  
  
      
        
          | jboolean NativeArrayKernel::isAssignableFrom  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jclass  | 
          to,  | 
         
        
           | 
           | 
          jclass  | 
          from  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Gets whether one type is assignable from another. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | to | the assignee.  | 
    | from | the assigner.  | 
  
   
- Returns
 - true if and only if the LHS is a superclass of the RHS. 
 
 
 
  
  
      
        
          | jboolean NativeArrayKernel::isJdoubleArray  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jobject  | 
          obj  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Gets whether the given object is of type double[]. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | obj | the object.  | 
  
   
- Returns
 - true if and only if the object is of type double[]. 
 
 
 
  
  
      
        
          | jboolean NativeArrayKernel::isJintArray  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jobject  | 
          obj  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Gets whether the given object is of type int[]. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | obj | the object.  | 
  
   
- Returns
 - true if and only if the object is of type int[]. 
 
 
 
  
  
      
        
          | jobjectArray NativeArrayKernel::newArray  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jclass  | 
          clazz,  | 
         
        
           | 
           | 
          jint  | 
          len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Creates a Java array of type Object[]. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | clazz | the component type.  | 
    | len | the length.  | 
  
   
- Returns
 - the newly allocated Object array. 
 
 
 
  
  
      
        
          | jobject NativeArrayKernel::newSparseArrayState  | 
          ( | 
          JNIEnv *  | 
          env,  | 
         
        
           | 
           | 
          jarray  | 
          values,  | 
         
        
           | 
           | 
          jintArray  | 
          indices,  | 
         
        
           | 
           | 
          jintArray  | 
          indirectionOffsets,  | 
         
        
           | 
           | 
          jintArray  | 
          indirections  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Creates a sparse array. 
- Parameters
 - 
  
    | env | the JNI environment.  | 
    | values | the storage array.  | 
    | indices | the physical indices.  | 
    | indirectionOffsets | the offsets into the indirections.  | 
    | indirections | the indirection indices.  | 
  
   
- Returns
 - the sparse array.