class HMatrix4[T] extends Error
The HMatrix4
class is a simple implementation of a 4-dimensional hypermatrix.
The first two dimensions must be fixed and known, while the third and fourth
dimension may be dynamically allocated by the user.
- Alphabetic
- By Inheritance
- HMatrix4
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HMatrix4(dim1: Int, dim2: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])
- dim1
size of the 1st dimension of the hypermatrix
- dim2
size of the 2nd dimension of the hypermatrix
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(b: HMatrix4[T]): HMatrix4[T]
Add 'this' hypermatrix and hypermatrix 'b'.
Add 'this' hypermatrix and hypermatrix 'b'.
- b
the hypermatrix to add (requires 'leDimensions')
- def +=(b: HMatrix4[T]): HMatrix4[T]
Add (in-place) 'this' hypermatrix and hypermatrix 'b'.
Add (in-place) 'this' hypermatrix and hypermatrix 'b'.
- b
the hypermatrix to add (requires 'leDimensions')
- def -(b: HMatrix4[T]): HMatrix4[T]
From 'this' hypermatrix subtract hypermatrix 'b'.
From 'this' hypermatrix subtract hypermatrix 'b'.
- b
the hypermatrix to add (requires 'leDimensions')
- def -=(b: HMatrix4[T]): HMatrix4[T]
From 'this' hypermatrix subtract (in-place) hypermatrix 'b'.
From 'this' hypermatrix subtract (in-place) hypermatrix 'b'.
- b
the hypermatrix to add (requires 'leDimensions')
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def alloc(jset: Array[Boolean], vc3: VectoI, vc4: VectoI): Unit
Allocate the 3rd and 4th dimensions of the hypermatrix based on the given j-index set, value counts for the dimensions.
Allocate the 3rd and 4th dimensions of the hypermatrix based on the given j-index set, value counts for the dimensions.
- jset
the set of index values for the second dimension (j) that are active
- vc3
value count array giving sizes for 3rd dimension based on j
- vc4
value count array giving sizes for 4th dimension based on j
- def alloc(vc3: VectoI, vc4: VectoI): Unit
Allocate the 3rd and 4th dimensions of the hypermatrix based on the given value counts for the dimensions.
Allocate the 3rd and 4th dimensions of the hypermatrix based on the given value counts for the dimensions.
- vc3
value count array giving sizes for 3rd dimension based on j
- vc4
value count array giving sizes for 4th dimension based on j
- def alloc(dims3: Array[Int], dims4: Array[Int]): Unit
Allocate all elements of the 3rd and 4th dimensions of the hypermatrix, where the 3rd and 4th dimensions vary with the 2nd dimension.
Allocate all elements of the 3rd and 4th dimensions of the hypermatrix, where the 3rd and 4th dimensions vary with the 2nd dimension.
- dims3
array of sizes of the 3rd dimension of the hypermatrix
- dims4
array of sizes of the 4th dimension of the hypermatrix
- def alloc(i: Int, j: Int, dim3: Int, dim4: Int): Unit
Allocate a 2D array for the 3rd and 4th dimensions of the hypermatrix for the given '(i, j)' cell.
Allocate a 2D array for the 3rd and 4th dimensions of the hypermatrix for the given '(i, j)' cell.
- i
1st dimension index of the hypermatrix
- j
2nd dimension index of the hypermatrix
- dim3
size of the 3rd dimension
- dim4
size of the 4th dimension
- def apply(j: Int): Matrix[T]
Retrieve the matrix formed by fixing the second dimension.
Retrieve the matrix formed by fixing the second dimension.
- j
the 2nd dimension index of the hypermatrix
- def apply(i: Int, j: Int, k: Int, l: 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
- k
3rd dimension index of the hypermatrix
- l
4th dimension index of the hypermatrix
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
Clear (make null) all contents in the 3rd and 4th dimensions of the hypermatrix.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val dim1: Int
- val dim2: Int
- def dim_3(i: Int, j: Int): Int
Return the size of the 3rd dimension for the given 'i' and 'j'.
Return the size of the 3rd dimension for the given 'i' and 'j'.
- i
1st dimension index of the hypermatrix
- j
2nd dimension index of the hypermatrix
- def dim_4(i: Int, j: Int, k: Int = 0): Int
Return the size of the 4th dimension for the given 'i' and 'j', and optionally 'k'.
Return the size of the 4th dimension for the given 'i' and 'j', and optionally 'k'.
- i
1st dimension index of the hypermatrix
- j
2nd dimension index of the hypermatrix
- k
3rd dimension index of the hypermatrix
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leDimensions(b: HMatrix4[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 hypermatrix
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val nu: Numeric[T]
Import Numeric evidence (gets nu val from superclass)
- 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
- def setFormat(newFormat: String): Unit
Set the format to the 'newFormat'.
Set the format to the 'newFormat'.
- newFormat
the new format string
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
Convert 'this' hypermatrix to a string.
Convert 'this' hypermatrix to a string.
- Definition Classes
- HMatrix4 → AnyRef → Any
- def update(i: Int, j: Int, k: Int, l: 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
- k
3rd dimension index of the hypermatrix
- l
4th dimension index of the hypermatrix
- v
the value to be updated at the above position in the hypermatrix
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated