jcuda.utils
Class Print

java.lang.Object
  extended by jcuda.utils.Print

public class Print
extends java.lang.Object

Utility methods for creating formatted String representations of 1D- 2D- and 3D arrays


Method Summary
static java.lang.String toString1D(float[] a)
          Creates a String representation of the given array, using the default format string for its elements.
static java.lang.String toString1D(float[] a, java.lang.String format)
          Creates a String representation of the given array, using the given format string for its elements.
static java.lang.String toString2D(float[][] a)
          Creates a String representation of the given array, using the default format string for its elements.
static java.lang.String toString2D(float[][] a, java.lang.String format)
          Creates a String representation of the given array, using the given format string for its elements.
static java.lang.String toString2D(float[] a, int columns)
          Creates a String representation of the given array, using the default format string for its elements.
static java.lang.String toString2D(float[] a, int columns, java.lang.String format)
          Creates a String representation of the given array, using the given format string for its elements.
static java.lang.String toString3D(float[][][] a)
          Creates a String representation of the given array, using the default format string for its elements.
static java.lang.String toString3D(float[][][] a, java.lang.String format)
          Creates a String representation of the given array, using the given format string for its elements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString1D

public static java.lang.String toString1D(float[] a)
Creates a String representation of the given array, using the default format string for its elements.

Parameters:
a - The array
Returns:
The String representation

toString1D

public static java.lang.String toString1D(float[] a,
                                          java.lang.String format)
Creates a String representation of the given array, using the given format string for its elements.

Parameters:
a - The array
format - The format string
Returns:
The String representation

toString2D

public static java.lang.String toString2D(float[] a,
                                          int columns)
Creates a String representation of the given array, using the default format string for its elements. The String will be formatted as a rectangular matrix with the given number of columns.

Parameters:
a - The array
columns - The number of columns
Returns:
The String representation

toString2D

public static java.lang.String toString2D(float[] a,
                                          int columns,
                                          java.lang.String format)
Creates a String representation of the given array, using the given format string for its elements. The String will be formatted as a rectangular matrix with the given number of columns.

Parameters:
a - The array
columns - The number of columns
format - The format string
Returns:
The String representation

toString2D

public static java.lang.String toString2D(float[][] a)
Creates a String representation of the given array, using the default format string for its elements. The String will be formatted as a rectangular matrix.

Parameters:
a - The array
Returns:
The String representation

toString2D

public static java.lang.String toString2D(float[][] a,
                                          java.lang.String format)
Creates a String representation of the given array, using the given format string for its elements. The String will be formatted as a rectangular matrix.

Parameters:
a - The array
format - The format string
Returns:
The String representation

toString3D

public static java.lang.String toString3D(float[][][] a)
Creates a String representation of the given array, using the default format string for its elements. The String will be formatted as a sequence of rectangular matrices.

Parameters:
a - The array
Returns:
The String representation

toString3D

public static java.lang.String toString3D(float[][][] a,
                                          java.lang.String format)
Creates a String representation of the given array, using the given format string for its elements. The String will be formatted as a sequence of rectangular matrices.

Parameters:
a - The array
format - The format string
Returns:
The String representation