jcuda.jnpp
Class JNppUtils

java.lang.Object
  extended by jcuda.jnpp.JNppUtils

public class JNppUtils
extends java.lang.Object

Preliminary utility methods for JNpp


Method Summary
static void NPP_ASSERT(boolean b)
          Simple assertion that throws a CudaException if the given argument is false
static
<T extends NppType>
int
sizeof(java.lang.Class<T> t)
          Returns the size of the type represented by the given NppType class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

NPP_ASSERT

public static void NPP_ASSERT(boolean b)
Simple assertion that throws a CudaException if the given argument is false

Parameters:
b - The argument to check
Throws:
jcuda.CudaException - if the argument is false

sizeof

public static <T extends NppType> int sizeof(java.lang.Class<T> t)
Returns the size of the type represented by the given NppType class.

Type Parameters:
T - The type
Parameters:
t - The type class
Returns:
The size
Throws:
jcuda.CudaException - If the given type is not known