U - Unit; the unit of this FloatMatrixpublic abstract class FloatMatrix<U extends Unit<U>> extends AbstractValue<U> implements Serializable, ReadOnlyFloatMatrixFunctions<U>
This file was generated by the djunits value classes generator, 26 jun, 2015
Copyright (c) 2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-07 01:17:57 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 88 $, by $Author: averbraeck $, initial
version 26 jun, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
FloatMatrix.Abs<U extends Unit<U>> |
static class |
FloatMatrix.Rel<U extends Unit<U>> |
| Modifier and Type | Field and Description |
|---|---|
protected org.djunits.value.vfloat.matrix.FloatMatrixData |
data
The stored data as an object, can be sparse or dense.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FloatMatrix(U unit)
Construct a new Immutable FloatMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality()
Count the number of cells that have a non-zero value (ignores tolerance).
|
protected void |
checkIndex(int row,
int column)
Check that provided row and column indices are valid.
|
protected static <U extends Unit<U>> |
checkNonEmpty(FloatScalar<U>[][] dsArray)
Check that a provided array can be used to create some descendant of a FloatMatrix.
|
protected void |
checkSize(float[][] other)
Centralized size equality check.
|
protected void |
checkSize(FloatMatrix<?> other)
Centralized size equality check.
|
int |
columns()
Retrieve the number of columns of the matrix.
|
static <U extends Unit<U>> |
denseToSparse(FloatMatrix.Abs.Dense<U> in)
Create a Sparse version of a Dense FloatMatrix.
|
static <U extends Unit<U>> |
denseToSparse(FloatMatrix.Rel.Dense<U> in)
Create a Sparse version of a Dense FloatMatrix.
|
float |
determinant()
Compute the determinant of the matrix.
|
boolean |
equals(Object obj) |
protected abstract org.djunits.value.vfloat.matrix.FloatMatrixData |
getData() |
float |
getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
float |
getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
float |
getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
float[][] |
getValuesInUnit()
Create a float[][] array filled with the values in the original unit.
|
float[][] |
getValuesInUnit(U targetUnit)
Create a float[][] array filled with the values converted into a specified unit.
|
float[][] |
getValuesSI()
Create a float[][] array filled with the values in the standard SI unit.
|
int |
hashCode() |
protected FloatMatrixDataDense |
initializeDense(float[][] values)
Import the values and convert them into the SI standard unit.
|
protected FloatMatrixDataDense |
initializeDense(FloatScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
protected FloatMatrixDataSparse |
initializeSparse(float[][] values)
Import the values and convert them into the SI standard unit.
|
protected FloatMatrixDataSparse |
initializeSparse(FloatScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
interpolate(FloatMatrix.Abs.Dense<U> zero,
FloatMatrix.Abs.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatMatrix.Abs.Sparse<U> zero,
FloatMatrix.Abs.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatMatrix.Rel.Dense<U> zero,
FloatMatrix.Rel.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(FloatMatrix.Rel.Sparse<U> zero,
FloatMatrix.Rel.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Abs.Dense<U> left,
FloatMatrix.Rel<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Abs.Sparse<U> left,
FloatMatrix.Rel.Dense<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Abs.Sparse<U> left,
FloatMatrix.Rel.Sparse<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Rel.Dense<U> left,
FloatMatrix.Rel<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Rel.Sparse<U> left,
FloatMatrix.Rel.Dense<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(FloatMatrix.Rel.Sparse<U> left,
FloatMatrix.Rel.Sparse<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Sparse<U>.
|
abstract MutableFloatMatrix<U> |
mutable()
Create a mutable version of this FloatMatrix.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Abs.Dense<U> left,
FloatMatrix.Rel<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Abs.Sparse<U> left,
FloatMatrix.Rel.Dense<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Abs.Sparse<U> left,
FloatMatrix.Rel.Sparse<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Rel.Dense<U> left,
FloatMatrix.Rel<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Rel.Sparse<U> left,
FloatMatrix.Rel.Dense<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(FloatMatrix.Rel.Sparse<U> left,
FloatMatrix.Rel.Sparse<U> right)
Add two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Sparse<U>.
|
int |
rows()
Retrieve the number of rows of the matrix.
|
protected float |
safeGet(int row,
int column)
Retrieve a value in matrixSI without checking validity of the indices.
|
protected void |
safeSet(int row,
int column,
float valueSI)
Modify a value in matrixSI without checking validity of the indices.
|
static <U extends Unit<U>> |
sparseToDense(FloatMatrix.Abs.Sparse<U> in)
Create a Dense version of a Sparse FloatMatrix.
|
static <U extends Unit<U>> |
sparseToDense(FloatMatrix.Rel.Sparse<U> in)
Create a Dense version of a Sparse FloatMatrix.
|
static MutableFloatMatrix.Abs.Dense<SIUnit> |
times(FloatMatrix.Abs.Dense<?> left,
FloatMatrix.Abs.Dense<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Dense<SIUnit>.
|
static MutableFloatMatrix.Abs.Sparse<SIUnit> |
times(FloatMatrix.Abs.Dense<?> left,
FloatMatrix.Abs.Sparse<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatMatrix.Abs.Dense<U> left,
float[][] right)
Multiply the values in a FloatMatrix and a float array value by value and store the result in a new
MutableFloatMatrix.Abs.Dense<U>.
|
static MutableFloatMatrix.Abs.Sparse<SIUnit> |
times(FloatMatrix.Abs.Sparse<?> left,
FloatMatrix.Abs<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatMatrix.Abs.Sparse<U> left,
float[][] right)
Multiply the values in a FloatMatrix and a float array value by value and store the result in a new
MutableFloatMatrix.Abs.Sparse<U>.
|
static MutableFloatMatrix.Rel.Dense<SIUnit> |
times(FloatMatrix.Rel.Dense<?> left,
FloatMatrix.Rel.Dense<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Dense<SIUnit>.
|
static MutableFloatMatrix.Rel.Sparse<SIUnit> |
times(FloatMatrix.Rel.Dense<?> left,
FloatMatrix.Rel.Sparse<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatMatrix.Rel.Dense<U> left,
float[][] right)
Multiply the values in a FloatMatrix and a float array value by value and store the result in a new
MutableFloatMatrix.Rel.Dense<U>.
|
static MutableFloatMatrix.Rel.Sparse<SIUnit> |
times(FloatMatrix.Rel.Sparse<?> left,
FloatMatrix.Rel<?> right)
Multiply two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(FloatMatrix.Rel.Sparse<U> left,
float[][] right)
Multiply the values in a FloatMatrix and a float array value by value and store the result in a new
MutableFloatMatrix.Rel.Sparse<U>.
|
String |
toString() |
String |
toString(boolean verbose,
boolean withUnit)
Print this FloatMatrix with optional type and unit information.
|
String |
toString(U displayUnit)
Print this FloatMatrix with the values expressed in the specified unit.
|
String |
toString(U displayUnit,
boolean verbose,
boolean withUnit)
Print this FloatMatrix with the values expressed in the specified unit.
|
float |
zSum()
Compute the sum of all values of this matrix.
|
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetprotected org.djunits.value.vfloat.matrix.FloatMatrixData data
protected FloatMatrix(U unit)
unit - U; the unit of the new FloatMatrixprotected abstract org.djunits.value.vfloat.matrix.FloatMatrixData getData()
protected static <U extends Unit<U>> FloatScalar<U>[][] checkNonEmpty(FloatScalar<U>[][] dsArray) throws ValueException
U - Unit; the unit of the FloatScalar arraydsArray - FloatScalar<U>[][]; the provided arrayValueException - when the array has zero entriesprotected final FloatMatrixDataDense initializeDense(float[][] values) throws ValueException
values - float[][]; an array of valuesValueException - when values is null, or not rectangularprotected final FloatMatrixDataDense initializeDense(FloatScalar<U>[][] values) throws ValueException
values - FloatScalar<U>[][]; a 2D array of valuesValueException - when values is null, empty, or is not rectangularprotected final FloatMatrixDataSparse initializeSparse(float[][] values) throws ValueException
values - float[][]; an array of valuesValueException - when values is null, or not rectangularprotected final FloatMatrixDataSparse initializeSparse(FloatScalar<U>[][] values) throws ValueException
values - FloatScalar<U>[][]; a 2D array of valuesValueException - when values is null, empty, or is not rectangularpublic abstract MutableFloatMatrix<U> mutable()
public final float[][] getValuesSI()
public final float[][] getValuesInUnit()
public final float[][] getValuesInUnit(U targetUnit)
targetUnit - U; the unit into which the values are converted for usepublic final int rows()
rows in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>public final int columns()
columns in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>public final float getSI(int row,
int column)
throws ValueException
getSI in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>row - int; row of the value to retrievecolumn - int; column of the value to retrieveValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final float getInUnit(int row,
int column)
throws ValueException
getInUnit in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>row - int; row of the value to retrievecolumn - int; column of the value to retrieveValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final float getInUnit(int row,
int column,
U targetUnit)
throws ValueException
getInUnit in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>row - int; row of the value to retrievecolumn - int; column of the value to retrievetargetUnit - U; the unit for the resultValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final String toString(U displayUnit)
displayUnit - U; the unit into which the values are converted for displaypublic final String toString(boolean verbose, boolean withUnit)
verbose - boolean; if true; include type info; if false; exclude type infowithUnit - boolean; if true; include the unit; of false; exclude the unitpublic final String toString(U displayUnit, boolean verbose, boolean withUnit)
displayUnit - U; the unit into which the values are converted for displayverbose - boolean; if true; include type info; if false; exclude type infowithUnit - boolean; if true; include the unit; of false; exclude the unitprotected final void checkSize(FloatMatrix<?> other) throws ValueException
other - FloatMatrix<?>; other FloatMatrixValueException - when other is null, or matrices have unequal sizeprotected final void checkSize(float[][] other)
throws ValueException
other - float[][]; array of floatValueException - when matrices have unequal sizeprotected final void checkIndex(int row,
int column)
throws ValueException
row - int; the row value to checkcolumn - int; the column value to checkValueException - when row or column is invalidprotected final float safeGet(int row,
int column)
row - int; the row where the value must be retrievedcolumn - int; the column where the value must be retrievedprotected final void safeSet(int row,
int column,
float valueSI)
row - int; the row where the value must be storedcolumn - int; the column where the value must be storedvalueSI - float; the new value for the entry in matrixSIpublic final float zSum()
zSum in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>public final int cardinality()
cardinality in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>public final float determinant()
throws ValueException
determinant in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>ValueException - when matrix is neither sparse, nor dense, or not squarepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> plus(FloatMatrix.Abs.Dense<U> left, FloatMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Dense<U>; the left operandright - FloatMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> plus(FloatMatrix.Abs.Sparse<U> left, FloatMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Sparse<U>; the left operandright - FloatMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Sparse<U> plus(FloatMatrix.Abs.Sparse<U> left, FloatMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Sparse<U>; the left operandright - FloatMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> plus(FloatMatrix.Rel.Dense<U> left, FloatMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Dense<U>; the left operandright - FloatMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> plus(FloatMatrix.Rel.Sparse<U> left, FloatMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Sparse<U>; the left operandright - FloatMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> plus(FloatMatrix.Rel.Sparse<U> left, FloatMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Sparse<U>; the left operandright - FloatMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> minus(FloatMatrix.Abs.Dense<U> left, FloatMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Dense<U>; the left operandright - FloatMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> minus(FloatMatrix.Abs.Sparse<U> left, FloatMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Sparse<U>; the left operandright - FloatMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Sparse<U> minus(FloatMatrix.Abs.Sparse<U> left, FloatMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Abs.Sparse<U>; the left operandright - FloatMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> minus(FloatMatrix.Rel.Dense<U> left, FloatMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Dense<U>; the left operandright - FloatMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> minus(FloatMatrix.Rel.Sparse<U> left, FloatMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Sparse<U>; the left operandright - FloatMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> minus(FloatMatrix.Rel.Sparse<U> left, FloatMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - FloatMatrix.Rel.Sparse<U>; the left operandright - FloatMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Abs.Dense<SIUnit> times(FloatMatrix.Abs.Dense<?> left, FloatMatrix.Abs.Dense<?> right) throws ValueException
left - FloatMatrix.Abs.Dense<?>; the left operandright - FloatMatrix.Abs.Dense<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Abs.Sparse<SIUnit> times(FloatMatrix.Abs.Dense<?> left, FloatMatrix.Abs.Sparse<?> right) throws ValueException
left - FloatMatrix.Abs.Dense<?>; the left operandright - FloatMatrix.Abs.Sparse<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Abs.Sparse<SIUnit> times(FloatMatrix.Abs.Sparse<?> left, FloatMatrix.Abs<?> right) throws ValueException
left - FloatMatrix.Abs.Sparse<?>; the left operandright - FloatMatrix.Abs<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Rel.Dense<SIUnit> times(FloatMatrix.Rel.Dense<?> left, FloatMatrix.Rel.Dense<?> right) throws ValueException
left - FloatMatrix.Rel.Dense<?>; the left operandright - FloatMatrix.Rel.Dense<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Rel.Sparse<SIUnit> times(FloatMatrix.Rel.Dense<?> left, FloatMatrix.Rel.Sparse<?> right) throws ValueException
left - FloatMatrix.Rel.Dense<?>; the left operandright - FloatMatrix.Rel.Sparse<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableFloatMatrix.Rel.Sparse<SIUnit> times(FloatMatrix.Rel.Sparse<?> left, FloatMatrix.Rel<?> right) throws ValueException
left - FloatMatrix.Rel.Sparse<?>; the left operandright - FloatMatrix.Rel<?>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> times(FloatMatrix.Abs.Dense<U> left, float[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - FloatMatrix.Abs.Dense<U>; the FloatMatrixright - float[][]; the float arrayValueException - when the FloatMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Sparse<U> times(FloatMatrix.Abs.Sparse<U> left, float[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - FloatMatrix.Abs.Sparse<U>; the FloatMatrixright - float[][]; the float arrayValueException - when the FloatMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> times(FloatMatrix.Rel.Dense<U> left, float[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - FloatMatrix.Rel.Dense<U>; the FloatMatrixright - float[][]; the float arrayValueException - when the FloatMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> times(FloatMatrix.Rel.Sparse<U> left, float[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - FloatMatrix.Rel.Sparse<U>; the FloatMatrixright - float[][]; the float arrayValueException - when the FloatMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Sparse<U> denseToSparse(FloatMatrix.Abs.Dense<U> in)
U - Unit; the unit of the parameter and the resultin - FloatMatrix.Abs.Dense<U>; the Dense FloatMatrixpublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> denseToSparse(FloatMatrix.Rel.Dense<U> in)
U - Unit; the unit of the parameter and the resultin - FloatMatrix.Rel.Dense<U>; the Dense FloatMatrixpublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> sparseToDense(FloatMatrix.Abs.Sparse<U> in)
U - Unit; the unit of the parameter and the resultin - FloatMatrix.Abs.Sparse<U>; the Sparse FloatMatrixpublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> sparseToDense(FloatMatrix.Rel.Sparse<U> in)
U - Unit; the unit of the parameter and the resultin - FloatMatrix.Rel.Sparse<U>; the Sparse FloatMatrixpublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Dense<U> interpolate(FloatMatrix.Abs.Dense<U> zero, FloatMatrix.Abs.Dense<U> one, float ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - FloatMatrix.Abs.Dense<U>; zero reference (returned when ratio == 0)one - FloatMatrix.Abs.Dense<U>; one reference (returned when ratio == 1)ratio - float; the ratio that determines where between (or outside) zero and one the result liesValueException - when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Dense<U> interpolate(FloatMatrix.Rel.Dense<U> zero, FloatMatrix.Rel.Dense<U> one, float ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - FloatMatrix.Rel.Dense<U>; zero reference (returned when ratio == 0)one - FloatMatrix.Rel.Dense<U>; one reference (returned when ratio == 1)ratio - float; the ratio that determines where between (or outside) zero and one the result liesValueException - when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Abs.Sparse<U> interpolate(FloatMatrix.Abs.Sparse<U> zero, FloatMatrix.Abs.Sparse<U> one, float ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - FloatMatrix.Abs.Sparse<U>; zero reference (returned when ratio == 0)one - FloatMatrix.Abs.Sparse<U>; one reference (returned when ratio == 1)ratio - float; the ratio that determines where between (or outside) zero and one the result liesValueException - when zero and one do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> interpolate(FloatMatrix.Rel.Sparse<U> zero, FloatMatrix.Rel.Sparse<U> one, float ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - FloatMatrix.Rel.Sparse<U>; zero reference (returned when ratio == 0)one - FloatMatrix.Rel.Sparse<U>; one reference (returned when ratio == 1)ratio - float; the ratio that determines where between (or outside) zero and one the result liesValueException - when zero and one do not have the same sizeCopyright © 2015 Delft University of Technology. All rights reserved.