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.
-----------------------------------------------------------------------------
- Alphabetic
- By Inheritance
- HMatrix2
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
-
new
HMatrix2(dim1: Int)(implicit arg0: ClassTag[T], arg1: Numeric[T])
- dim1
size of the 1st dimension of the hypermatrix
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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')
-
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')
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
Clear (make null) all contents in the 2nd dimension of the hypermatrix.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val dim1: Int
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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[_]
- 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: 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
-
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
- HMatrix2 → AnyRef → Any
-
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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated