Packages

class HMatrix2[T] extends Error

The HMatrix2 class is a simple implementation of a 2-dimensional hypermatrix. The first dimension must be fixed and known, while the second dimension may be dynamically allocated by the user. The second dimension may vary with the first dimension. Caveat: currently this is a very limited implementation of hypermatrices. -----------------------------------------------------------------------------

Linear Supertypes
Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HMatrix2
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HMatrix2(dim1: Int, dims2: Array[Int])(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a 2-dimensional hypermatrix, where the 2nd dimension varies only with the 1st dimension.

    Construct a 2-dimensional hypermatrix, where the 2nd dimension varies only with the 1st dimension.

    dim1

    size of the 1st dimension of the hypermatrix

    dims2

    array of sizes of the 2nd dimension of the hypermatrix

  2. new HMatrix2(dim1: Int, dim2: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    Construct a rectangular 2-dimensional hypermatrix, where the 2nd dimension is fixed as well.

    Construct a rectangular 2-dimensional hypermatrix, where the 2nd dimension is fixed as well.

    dim1

    size of the 1st dimension of the hypermatrix

    dim2

    size of the 2nd dimension of the hypermatrix

  3. new HMatrix2(dim1: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])

    dim1

    size of the 1st dimension of the hypermatrix

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(b: HMatrix2[T]): HMatrix2[T]

    Add 'this' hypermatrix and hypermatrix 'b'.

    Add 'this' hypermatrix and hypermatrix 'b'.

    b

    the hypermatrix to add (requires 'leDimensions')

  4. def -(b: HMatrix2[T]): HMatrix2[T]

    From 'this' hypermatrix subtract hypermatrix 'b'.

    From 'this' hypermatrix subtract hypermatrix 'b'.

    b

    the hypermatrix to add (requires 'leDimensions')

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def alloc(dims2: Array[Int]): Unit

    Allocate all elements of the 2nd dimension of the hypermatrix, where the last dimension only with the first dimension.

    Allocate all elements of the 2nd dimension of the hypermatrix, where the last dimension only with the first dimension.

    dims2

    array of sizes of the 2nd dimension of the hypermatrix

  7. def alloc(i: Int, dim2: Int): Unit

    Allocate one element of the 2nd dimension of the hypermatrix for the specified 'i' index.

    Allocate one element of the 2nd dimension of the hypermatrix for the specified 'i' index.

    i

    1st dimension index of the hypermatrix

    dim2

    size of the array to be allocated in row i

  8. def apply(i: Int, j: Int): T

    Retrieve a single element of the hypermatrix.

    Retrieve a single element of the hypermatrix.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clear(): Unit

    Clear (make null) all contents in the 2nd dimension of the hypermatrix.

  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val dim1: Int
  13. def dim_2(i: Int): Int

    Return the size of the 2nd dimension for the given 'i'.

    Return the size of the 2nd dimension for the given 'i'.

    i

    1st dimension index of the hypermatrix

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. var fString: String

    Format string used for printing vector values (change using 'setFormat')

    Format string used for printing vector values (change using 'setFormat')

    Attributes
    protected
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def leDimensions(b: HMatrix2[T]): Boolean

    Check whether the dimensions of 'this' hypermatrix are less than or equal to 'le' those of the other hypermatrix 'b'.

    Check whether the dimensions of 'this' hypermatrix are less than or equal to 'le' those of the other hypermatrix 'b'.

    b

    the other matrix

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. val nu: Numeric[T]

    Import Numeric evidence (gets nu val from superclass)

  27. def set(x: T): Unit

    Set all the hypermatrix element values to 'x'.

    Set all the hypermatrix element values to 'x'.

    x

    the value to set all elements to

  28. def setFormat(newFormat: String): Unit

    Set the format to the 'newFormat'.

    Set the format to the 'newFormat'.

    newFormat

    the new format string

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String

    Convert 'this' hypermatrix to a string.

    Convert 'this' hypermatrix to a string.

    Definition Classes
    HMatrix2 → AnyRef → Any
  31. def update(i: Int, j: Int, v: T): Unit

    Update a single element of the hypermatrix to the given value.

    Update a single element of the hypermatrix to the given value.

    i

    1st dimension index of the hypermatrix

    j

    2nd dimension index of the hypermatrix

    v

    the value to be updated at the above position in the hypermatrix

  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped