Package org.djunits.value.vfloat.matrix.base
Interfaces, abstract classes and utilities for FloatMatrix. Matrix values should be accessible by row and column. The way to
access values in a matrix in algebra is as follows:
| a11 a12 ... a1n | | a21 a22 ... a2n | | ... ... ... ... | | am1 am2 ... amn |where m is the number of rows and n is the number of columns. aij is a value in the matrix where i ranges from 1 to m, and j ranges from 1 to n. This is known as an m x n matrix, with (m, n) as its size. So when a float array f[][] is passed to fill a matrix, the most logical is that the first index indicates the row, and the second index indicates the column, so f[row][column]. In Java this means that the matrix needs to be initialized with
new f[rows]
and each row needs to be initialized with new f[r][columns]
.
Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Interface Summary Interface Description FloatMatrixInterface<U extends Unit<U>,S extends FloatScalarInterface<U,S>,V extends FloatVectorInterface<U,S,V>,M extends FloatMatrixInterface<U,S,V,M>> Interface for the FloatMatrix classes, specifically defining the methods that deal with float values. -
Class Summary Class Description AbstractFloatMatrix<U extends Unit<U>,S extends AbstractFloatScalar<U,S>,V extends AbstractFloatVector<U,S,V>,M extends AbstractFloatMatrix<U,S,V,M>> The most basic abstract class for the FloatMatrix.AbstractFloatMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractFloatScalarAbs<AU,A,RU,R>,AV extends AbstractFloatVectorAbs<AU,A,AV,RU,R,RV>,AM extends AbstractFloatMatrixAbs<AU,A,AV,AM,RU,R,RV,RM>,RU extends Unit<RU>,R extends AbstractFloatScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractFloatVectorRelWithAbs<AU,A,AV,RU,R,RV>,RM extends AbstractFloatMatrixRelWithAbs<AU,A,AV,AM,RU,R,RV,RM>> AbstractMutableFloatMatrixRelWithAbs.java.AbstractFloatMatrixRel<U extends Unit<U>,S extends AbstractFloatScalarRel<U,S>,RV extends AbstractFloatVectorRel<U,S,RV>,RM extends AbstractFloatMatrixRel<U,S,RV,RM>> AbstractFloatMatrixRel.java.AbstractFloatMatrixRelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractFloatScalarAbs<AU,A,RU,R>,AV extends AbstractFloatVectorAbs<AU,A,AV,RU,R,RV>,AM extends AbstractFloatMatrixAbs<AU,A,AV,AM,RU,R,RV,RM>,RU extends Unit<RU>,R extends AbstractFloatScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractFloatVectorRelWithAbs<AU,A,AV,RU,R,RV>,RM extends AbstractFloatMatrixRelWithAbs<AU,A,AV,AM,RU,R,RV,RM>> AbstractMutableFloatMatrixRelWithAbs.java.FloatMatrix FloatMatrix utility methods, e.g., for creating FloatMatrixs from different types of data.FloatSparseValue<U extends Unit<U>,S extends FloatScalarInterface<U,S>> Data point for a matrix that can be used for constructing sparse matrices.