Class FloatSparseValue<U extends Unit<U>,S extends FloatScalarInterface<U,S>>
java.lang.Object
org.djunits.value.vfloat.matrix.base.FloatSparseValue<U,S>
- Type Parameters:
U
- the unit type of the valueS
- the scalar type of the value
- All Implemented Interfaces:
Serializable
public class FloatSparseValue<U extends Unit<U>,S extends FloatScalarInterface<U,S>> extends Object implements Serializable
Data point for a matrix that can be used for constructing sparse matrices.
Copyright (c) 2019-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FloatSparseValue(int row, int column, float valueSI)
Create a data point for a sparse matrix.FloatSparseValue(int row, int column, float valueInUnit, U unit)
Create a data point for a sparse matrix.FloatSparseValue(int row, int column, S value)
Create a data point for a sparse matrix. -
Method Summary
Modifier and Type Method Description int
getColumn()
int
getRow()
float
getValueSI()
String
toString()
-
Constructor Details
-
FloatSparseValue
Create a data point for a sparse matrix.- Parameters:
row
- the row of the sparse data point in the matrixcolumn
- the column of the sparse data point in the matrixvalue
- the value in the given unit of the data point in the matrix
-
FloatSparseValue
Create a data point for a sparse matrix.- Parameters:
row
- the row of the sparse data point in the matrixcolumn
- the column of the sparse data point in the matrixvalueInUnit
- the value in the given unit of the data point in the matrixunit
- the unit of the value
-
FloatSparseValue
public FloatSparseValue(int row, int column, float valueSI)Create a data point for a sparse matrix.- Parameters:
row
- the row of the sparse data point in the matrixcolumn
- the column of the sparse data point in the matrixvalueSI
- the SI value of the data point in the matrix
-
-
Method Details