Class MatrixData<T>

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public class MatrixData<T>
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    A top level key for a parameter set representing an matrix like collection.

    param: data input array of array

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MatrixData()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T apply​(int row, int col)
      Returns a value stored at position represented by [row][col]
      scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>> data()  
      static <T> MatrixData<T> fromArrays​(java.lang.Object[] values)
      Create a MatrixData from one or more arrays of Array[T]
      static <T> MatrixData<T> fromArrays​(java.lang.Object first, java.lang.Object... rest)
      Create a MatrixData from Array[T]
      static <T> MatrixData<T> fromArrays​(java.lang.Object first, scala.collection.immutable.Seq<java.lang.Object> rest)
      Create a MatrixData from Array[T]
      java.util.List<java.util.List<T>> jValues()
      A Java helper that returns an Array of values this parameter holds
      java.lang.String toString()
      A comma separated string representation of all values this MatrixData holds
      java.lang.Object[] values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • MatrixData

        public MatrixData()
    • Method Detail

      • fromArrays

        public static <T> MatrixData<T> fromArrays​(java.lang.Object first,
                                                   java.lang.Object... rest)
        Create a MatrixData from Array[T]

        Parameters:
        rest - one or more arrays
        first - (undocumented)
        Returns:
        an instance of MatrixData
      • fromArrays

        public static <T> MatrixData<T> fromArrays​(java.lang.Object[] values)
        Create a MatrixData from one or more arrays of Array[T]

        Parameters:
        values - one or more arrays
        Returns:
        an instance of MatrixData
      • fromArrays

        public static <T> MatrixData<T> fromArrays​(java.lang.Object first,
                                                   scala.collection.immutable.Seq<java.lang.Object> rest)
        Create a MatrixData from Array[T]

        Parameters:
        rest - one or more arrays
        first - (undocumented)
        Returns:
        an instance of MatrixData
      • data

        public scala.collection.mutable.ArraySeq<scala.collection.mutable.ArraySeq<T>> data()
      • values

        public java.lang.Object[] values()
      • apply

        public T apply​(int row,
                       int col)
        Returns a value stored at position represented by [row][col]

        Parameters:
        row - (undocumented)
        col - (undocumented)
        Returns:
        a value represented by T
      • jValues

        public java.util.List<java.util.List<T>> jValues()
        A Java helper that returns an Array of values this parameter holds
        Returns:
        (undocumented)
      • toString

        public java.lang.String toString()
        A comma separated string representation of all values this MatrixData holds
        Overrides:
        toString in class java.lang.Object
        Returns:
        (undocumented)