Class Print

java.lang.Object
jcuda.utils.Print

public class Print extends Object
Utility methods for creating formatted String representations of 1D- 2D- and 3D arrays
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    toString1D(float[] a)
    Creates a String representation of the given array, using the default format string for its elements.
    static String
    toString1D(float[] a, String format)
    Creates a String representation of the given array, using the given format string for its elements.
    static String
    toString2D(float[][] a)
    Creates a String representation of the given array, using the default format string for its elements.
    static String
    toString2D(float[][] a, String format)
    Creates a String representation of the given array, using the given format string for its elements.
    static String
    toString2D(float[] a, int columns)
    Creates a String representation of the given array, using the default format string for its elements.
    static String
    toString2D(float[] a, int columns, String format)
    Creates a String representation of the given array, using the given format string for its elements.
    static String
    toString3D(float[][][] a)
    Creates a String representation of the given array, using the default format string for its elements.
    static String
    toString3D(float[][][] a, 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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toString1D

      public static 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 String toString1D(float[] a, 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 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 String toString2D(float[] a, int columns, 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 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 String toString2D(float[][] a, 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 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 String toString3D(float[][][] a, 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