package gen
The gen
package contains generic classes, traits and objects for linear
algebra, including vectors and matrices for types implementing Numeric
.
Tend to run more slowly than the specialized versions in linalgebra
.
- Alphabetic
- By Inheritance
- gen
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
HMatrix2[T] extends Error
The
HMatrix2
class is a simple implementation of a 2-dimensional hypermatrix.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. ----------------------------------------------------------------------------- -
class
HMatrix3[T] extends Error
The
HMatrix3
class is a simple implementation of a 3-dimensional hypermatrix.The
HMatrix3
class is a simple implementation of a 3-dimensional hypermatrix. The first two dimensions must be fixed and known, while the third dimension may be dynamically allocated by the user. The third dimension should only vary with the second dimension, not the first. Caveat: currently this is a very limited implementation of hypermatrices. ----------------------------------------------------------------------------- -
class
HMatrix4[T] extends Error
The
HMatrix4
class is a simple implementation of a 4-dimensional hypermatrix.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. -
class
HMatrix5[T] extends Error
The
HMatrix5
class is a simple implementation of a 5-dimensional hypermatrix.The
HMatrix5
class is a simple implementation of a 5-dimensional hypermatrix. The first two dimensions must be fixed and known, while the third, fourth and fifth dimensions may be dynamically allocated by the user. ----------------------------------------------------------------------------- For Bayes classifier the convention is as follows: dimension 1: possible values for class c (e.g., k = 2 => 0, 1 ) dimension 2: indicator for first feature x_j (e.g., n = 3 => x_0, x_1, x_3) dimension 3: possible values for x_j OR indicator for second feature y_j dimension 4: possible values for x_j's 1st parent OR possible values for x_j dimension 5: possible values for x_j's 2st parent OR possible values for y_j ----------------------------------------------------------------------------- -
trait
Matrix[T] extends Error
The
Matrix
trait specifies the operations to be defined by three concrete implementing classes:MatrixN
,SparseMatrixN
andSymTriMatrix
. -
class
MatrixN[T] extends Matrix[T] with Error with Serializable
The
MatrixN
class stores and operates on Numeric Matrices of various sizes and types.The
MatrixN
class stores and operates on Numeric Matrices of various sizes and types. The element type may be any subtype of Numeric. -
class
SparseMatrixN[T] extends Matrix[T] with Error with Serializable
The
SparseMatrixN
class stores and operates on Numeric Matrices of various sizes and types.The
SparseMatrixN
class stores and operates on Numeric Matrices of various sizes and types. The element type may be any subtype of Numeric. Rather than storing the matrix as a 2 dimensional array, it is stored as an array of list-maps, which record all the non-zero values for each particular row, along with their j-index. -
class
SymTriMatrixN[T] extends Matrix[T] with Error with Serializable
The
SymTriMatrixN
class stores and operates on symmetric tridiagonal matrices.The
SymTriMatrixN
class stores and operates on symmetric tridiagonal matrices. The elements are of type of T. A matrix is stored as two vectors: the diagonal vector and the sub-diagonal vector. -
class
VectorN[T] extends Traversable[T] with PartiallyOrdered[VectorN[T]] with Error with Serializable
The
VectorN
class stores and operates on Numeric Vectors of various sizes and types.The
VectorN
class stores and operates on Numeric Vectors of various sizes and types. The element type may be any subtype of Numeric. Some methods only work for Fractional types. When/if Scala adds 'sqrt' and 'pow' toFractional
types the following methods will be implemented: ~, ~=, 'normalizeU'.
Value Members
-
object
HMatrix2Test extends App
The
HMatrix2Test
object is used to test theHMatrix2
class, in cases where the 2nd dimension is fixed (i.e., for rectangular 2-dimensional hypermatrices).The
HMatrix2Test
object is used to test theHMatrix2
class, in cases where the 2nd dimension is fixed (i.e., for rectangular 2-dimensional hypermatrices). > runMain scalation.linalgebra.gen.HMatrix2Test -
object
HMatrix2Test2 extends App
The
HMatrix2Test2
object is used to test theHMatrix2
class, in cases where the 2nd dimension is varied based on the index of the first dimension 'i' > runMain scalation.linalgebra.gen.HMatrix2Test2 -
object
HMatrix2Test3 extends App
The
HMatrix2Test3
object is used to test theHMatrix2
class, in cases where the 2nd dimension is fixed (i.e., for rectangular 2-dimensional hypermatrices).The
HMatrix2Test3
object is used to test theHMatrix2
class, in cases where the 2nd dimension is fixed (i.e., for rectangular 2-dimensional hypermatrices). Same asHMatrix2Test
, but usingDouble
rather thanInt
. > runMain scalation.linalgebra.gen.HMatrix2Test3 -
object
HMatrix3Test extends App
The
HMatrix3Test
object is used to test theHMatrix3
class, in cases where the 3rd dimension is fixed (i.e., for cuboidic 3-dimensional hypermatrices).The
HMatrix3Test
object is used to test theHMatrix3
class, in cases where the 3rd dimension is fixed (i.e., for cuboidic 3-dimensional hypermatrices). > runMain scalation.linalgebra.gen.HMatrix3Test -
object
HMatrix3Test2 extends App
The
HMatrix3Test2
object is used to test theHMatrix3
class, in cases where the 3rd dimension is varied based on the index of the second dimension 'j' > runMain scalation.linalgebra.gen.HMatrix3Test2 -
object
HMatrix3Test3 extends App
The
HMatrix3Test3
object is used to test theHMatrix3
class, in cases where the 3rd dimension is fixed (i.e., for cuboidic 3-dimensional hypermatrices).The
HMatrix3Test3
object is used to test theHMatrix3
class, in cases where the 3rd dimension is fixed (i.e., for cuboidic 3-dimensional hypermatrices). Same asHMatrix3Test
, but usingDouble
rather thanInt
. > runMain scalation.linalgebra.gen.HMatrix3Test3 -
object
HMatrix4Test extends App
The
HMatrix4Test
object is used to test theHMatrix4
class.The
HMatrix4Test
object is used to test theHMatrix4
class. > runMain scalation.linalgebra.gen.HMatrix4Test -
object
HMatrix4Test2 extends App
The
HMatrix4Test2
object is used to test theHMatrix4
class.The
HMatrix4Test2
object is used to test theHMatrix4
class. > runMain scalation.linalgebra.gen.HMatrix4Test2 -
object
HMatrix5Test extends App
The
HMatrix5Test
object is used to test theHMatrix5
class.The
HMatrix5Test
object is used to test theHMatrix5
class. > runMain scalation.linalgebra.gen.HMatrix5Test -
object
HMatrix5Test2 extends App
The
HMatrix5Test2
object is used to test theHMatrix5
class.The
HMatrix5Test2
object is used to test theHMatrix5
class. > runMain scalation.linalgebra.gen.HMatrix5Test2 -
object
Matrices
The
Matrices
object provides convenience definitions for commonly used types of matrices.The
Matrices
object provides convenience definitions for commonly used types of matrices. For efficiency, non-generic versions ofMatrixD
,MatrixC
andMatrixR
are provided in thelinalgebra
package. -
object
MatrixN extends Serializable
The
MatrixN
companion object provides operations for theMatrixN
class that don't require 'this' (like static methods in Java). -
object
MatrixNTest extends App
The
MatrixNTest
object tests the operations provided byMatrixN
class. -
object
SparseMatrices
The
SparseMatrices
object contains convenience definitions for commonly used types of sparse matrices. -
object
SparseMatrixNTest extends App
The
SparseMatrixNTest
object is used to test theSparseMatrixN
class. -
object
SymTriMatrices
The
SymTriMatrices
object contains convenience definitions for commonly used types of symmetric tridiagonal matrices. -
object
SymTriMatrixNTest extends App
The
SymTriMatrixNTest
object is used to test theSymTriMatrixN
class.The
SymTriMatrixNTest
object is used to test theSymTriMatrixN
class. > runMain scalation.linalgebra.gen.SymTriMatrixNTest -
object
VectorN extends Error with Serializable
The
VectorN
object is the companion object forVectorN
class. -
object
VectorNTest extends App
The
VectorNTest
object tests the operations provided byVectorN
class. -
object
Vectors
The
Vectors
object contains convenience definitions for commonly used types of vectors.The
Vectors
object contains convenience definitions for commonly used types of vectors. For efficiency, non-generic versions ofVectorD
,VectorC
andVectorR
are provided in thelinalgebra
package.