Package org.djunits.value.vdouble.matrix.base
Interfaces, abstract classes and utilities for DoubleMatrix. 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 double array d[][] 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 d[row][column]. In Java this means that the matrix needs to be initialized with
new d[rows]
and each row needs to be initialized with new d[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 DoubleMatrixInterface<U extends Unit<U>,S extends DoubleScalarInterface<U,S>,V extends DoubleVectorInterface<U,S,V>,M extends DoubleMatrixInterface<U,S,V,M>> Interface for the DoubleMatrix classes, specifically defining the methods that deal with double values. -
Class Summary Class Description AbstractDoubleMatrix<U extends Unit<U>,S extends AbstractDoubleScalar<U,S>,V extends AbstractDoubleVector<U,S,V>,M extends AbstractDoubleMatrix<U,S,V,M>> The most basic abstract class for the DoubleMatrix.AbstractDoubleMatrixAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractDoubleScalarAbs<AU,A,RU,R>,AV extends AbstractDoubleVectorAbs<AU,A,AV,RU,R,RV>,AM extends AbstractDoubleMatrixAbs<AU,A,AV,AM,RU,R,RV,RM>,RU extends Unit<RU>,R extends AbstractDoubleScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractDoubleVectorRelWithAbs<AU,A,AV,RU,R,RV>,RM extends AbstractDoubleMatrixRelWithAbs<AU,A,AV,AM,RU,R,RV,RM>> AbstractMutableDoubleMatrixRelWithAbs.java.AbstractDoubleMatrixRel<U extends Unit<U>,S extends AbstractDoubleScalarRel<U,S>,RV extends AbstractDoubleVectorRel<U,S,RV>,RM extends AbstractDoubleMatrixRel<U,S,RV,RM>> AbstractDoubleMatrixRel.java.AbstractDoubleMatrixRelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractDoubleScalarAbs<AU,A,RU,R>,AV extends AbstractDoubleVectorAbs<AU,A,AV,RU,R,RV>,AM extends AbstractDoubleMatrixAbs<AU,A,AV,AM,RU,R,RV,RM>,RU extends Unit<RU>,R extends AbstractDoubleScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractDoubleVectorRelWithAbs<AU,A,AV,RU,R,RV>,RM extends AbstractDoubleMatrixRelWithAbs<AU,A,AV,AM,RU,R,RV,RM>> AbstractMutableDoubleMatrixRelWithAbs.java.DoubleMatrix DoubleMatrix utility methods, e.g., for creating DoubleMatrixs from different types of data.DoubleSparseValue<U extends Unit<U>,S extends DoubleScalarInterface<U,S>> Data point for a matrix that can be used for constructing sparse matrices.