U - Unit; the unit of this DoubleMatrixpublic abstract class DoubleMatrix<U extends Unit<U>> extends AbstractValue<U> implements Serializable, ReadOnlyDoubleMatrixFunctions<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 11:49:36 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 92 $, by $Author: averbraeck $, initial
version 26 jun, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleMatrix.Abs<U extends Unit<U>> |
static class |
DoubleMatrix.Rel<U extends Unit<U>> |
| Modifier and Type | Field and Description |
|---|---|
protected org.djunits.value.vdouble.matrix.DoubleMatrixData |
data
The stored data as an object, can be sparse or dense.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DoubleMatrix(U unit)
Construct a new Immutable DoubleMatrix.
|
| 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(DoubleScalar<U>[][] dsArray)
Check that a provided array can be used to create some descendant of a DoubleMatrix.
|
protected void |
checkSize(double[][] other)
Centralized size equality check.
|
protected void |
checkSize(DoubleMatrix<?> other)
Centralized size equality check.
|
int |
columns()
Retrieve the number of columns of the matrix.
|
static <U extends Unit<U>> |
denseToSparse(DoubleMatrix.Abs.Dense<U> in)
Create a Sparse version of a Dense DoubleMatrix.
|
static <U extends Unit<U>> |
denseToSparse(DoubleMatrix.Rel.Dense<U> in)
Create a Sparse version of a Dense DoubleMatrix.
|
double |
determinant()
Compute the determinant of the matrix.
|
boolean |
equals(Object obj) |
protected abstract org.djunits.value.vdouble.matrix.DoubleMatrixData |
getData() |
double |
getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
double |
getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
double |
getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
double[][] |
getValuesInUnit()
Create a double[][] array filled with the values in the original unit.
|
double[][] |
getValuesInUnit(U targetUnit)
Create a double[][] array filled with the values converted into a specified unit.
|
double[][] |
getValuesSI()
Create a double[][] array filled with the values in the standard SI unit.
|
int |
hashCode() |
protected DoubleMatrixDataDense |
initializeDense(double[][] values)
Import the values and convert them into the SI standard unit.
|
protected DoubleMatrixDataDense |
initializeDense(DoubleScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
protected DoubleMatrixDataSparse |
initializeSparse(double[][] values)
Import the values and convert them into the SI standard unit.
|
protected DoubleMatrixDataSparse |
initializeSparse(DoubleScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
interpolate(DoubleMatrix.Abs.Dense<U> zero,
DoubleMatrix.Abs.Dense<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(DoubleMatrix.Abs.Sparse<U> zero,
DoubleMatrix.Abs.Sparse<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(DoubleMatrix.Rel.Dense<U> zero,
DoubleMatrix.Rel.Dense<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
interpolate(DoubleMatrix.Rel.Sparse<U> zero,
DoubleMatrix.Rel.Sparse<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Abs.Dense<U> left,
DoubleMatrix.Rel<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Rel.Dense<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Rel.Sparse<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Rel.Dense<U> left,
DoubleMatrix.Rel<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Rel.Sparse<U> left,
DoubleMatrix.Rel.Dense<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
minus(DoubleMatrix.Rel.Sparse<U> left,
DoubleMatrix.Rel.Sparse<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Sparse<U>.
|
abstract MutableDoubleMatrix<U> |
mutable()
Create a mutable version of this DoubleMatrix.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Abs.Dense<U> left,
DoubleMatrix.Rel<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Rel.Dense<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Dense<U>.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Rel.Sparse<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Rel.Dense<U> left,
DoubleMatrix.Rel<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Rel.Sparse<U> left,
DoubleMatrix.Rel.Dense<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
plus(DoubleMatrix.Rel.Sparse<U> left,
DoubleMatrix.Rel.Sparse<U> right)
Add two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Sparse<U>.
|
int |
rows()
Retrieve the number of rows of the matrix.
|
protected double |
safeGet(int row,
int column)
Retrieve a value in matrixSI without checking validity of the indices.
|
protected void |
safeSet(int row,
int column,
double valueSI)
Modify a value in matrixSI without checking validity of the indices.
|
static <U extends Unit<U>> |
sparseToDense(DoubleMatrix.Abs.Sparse<U> in)
Create a Dense version of a Sparse DoubleMatrix.
|
static <U extends Unit<U>> |
sparseToDense(DoubleMatrix.Rel.Sparse<U> in)
Create a Dense version of a Sparse DoubleMatrix.
|
static MutableDoubleMatrix.Abs.Dense<SIUnit> |
times(DoubleMatrix.Abs.Dense<?> left,
DoubleMatrix.Abs.Dense<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Dense<SIUnit>.
|
static MutableDoubleMatrix.Abs.Sparse<SIUnit> |
times(DoubleMatrix.Abs.Dense<?> left,
DoubleMatrix.Abs.Sparse<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(DoubleMatrix.Abs.Dense<U> left,
double[][] right)
Multiply the values in a DoubleMatrix and a double array value by value and store the result in a new
MutableDoubleMatrix.Abs.Dense<U>.
|
static MutableDoubleMatrix.Abs.Sparse<SIUnit> |
times(DoubleMatrix.Abs.Sparse<?> left,
DoubleMatrix.Abs<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(DoubleMatrix.Abs.Sparse<U> left,
double[][] right)
Multiply the values in a DoubleMatrix and a double array value by value and store the result in a new
MutableDoubleMatrix.Abs.Sparse<U>.
|
static MutableDoubleMatrix.Rel.Dense<SIUnit> |
times(DoubleMatrix.Rel.Dense<?> left,
DoubleMatrix.Rel.Dense<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<SIUnit>.
|
static MutableDoubleMatrix.Rel.Sparse<SIUnit> |
times(DoubleMatrix.Rel.Dense<?> left,
DoubleMatrix.Rel.Sparse<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(DoubleMatrix.Rel.Dense<U> left,
double[][] right)
Multiply the values in a DoubleMatrix and a double array value by value and store the result in a new
MutableDoubleMatrix.Rel.Dense<U>.
|
static MutableDoubleMatrix.Rel.Sparse<SIUnit> |
times(DoubleMatrix.Rel.Sparse<?> left,
DoubleMatrix.Rel<?> right)
Multiply two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
times(DoubleMatrix.Rel.Sparse<U> left,
double[][] right)
Multiply the values in a DoubleMatrix and a double array value by value and store the result in a new
MutableDoubleMatrix.Rel.Sparse<U>.
|
String |
toString() |
String |
toString(boolean verbose,
boolean withUnit)
Print this DoubleMatrix with optional type and unit information.
|
String |
toString(U displayUnit)
Print this DoubleMatrix with the values expressed in the specified unit.
|
String |
toString(U displayUnit,
boolean verbose,
boolean withUnit)
Print this DoubleMatrix with the values expressed in the specified unit.
|
double |
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.vdouble.matrix.DoubleMatrixData data
protected DoubleMatrix(U unit)
unit - U; the unit of the new DoubleMatrixprotected abstract org.djunits.value.vdouble.matrix.DoubleMatrixData getData()
protected static <U extends Unit<U>> DoubleScalar<U>[][] checkNonEmpty(DoubleScalar<U>[][] dsArray) throws ValueException
U - Unit; the unit of the DoubleScalar arraydsArray - DoubleScalar<U>[][]; the provided arrayValueException - when the array has zero entriesprotected final DoubleMatrixDataDense initializeDense(double[][] values) throws ValueException
values - double[][]; an array of valuesValueException - when values is null, or not rectangularprotected final DoubleMatrixDataDense initializeDense(DoubleScalar<U>[][] values) throws ValueException
values - DoubleScalar<U>[][]; a 2D array of valuesValueException - when values is null, empty, or is not rectangularprotected final DoubleMatrixDataSparse initializeSparse(double[][] values) throws ValueException
values - double[][]; an array of valuesValueException - when values is null, or not rectangularprotected final DoubleMatrixDataSparse initializeSparse(DoubleScalar<U>[][] values) throws ValueException
values - DoubleScalar<U>[][]; a 2D array of valuesValueException - when values is null, empty, or is not rectangularpublic abstract MutableDoubleMatrix<U> mutable()
public final double[][] getValuesSI()
public final double[][] getValuesInUnit()
public final double[][] getValuesInUnit(U targetUnit)
targetUnit - U; the unit into which the values are converted for usepublic final int rows()
rows in interface ReadOnlyDoubleMatrixFunctions<U extends Unit<U>>public final int columns()
columns in interface ReadOnlyDoubleMatrixFunctions<U extends Unit<U>>public final double getSI(int row,
int column)
throws ValueException
getSI in interface ReadOnlyDoubleMatrixFunctions<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 double getInUnit(int row,
int column)
throws ValueException
getInUnit in interface ReadOnlyDoubleMatrixFunctions<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 double getInUnit(int row,
int column,
U targetUnit)
throws ValueException
getInUnit in interface ReadOnlyDoubleMatrixFunctions<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(DoubleMatrix<?> other) throws ValueException
other - DoubleMatrix<?>; other DoubleMatrixValueException - when other is null, or matrices have unequal sizeprotected final void checkSize(double[][] other)
throws ValueException
other - double[][]; array of doubleValueException - 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 double 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,
double valueSI)
row - int; the row where the value must be storedcolumn - int; the column where the value must be storedvalueSI - double; the new value for the entry in matrixSIpublic final double zSum()
zSum in interface ReadOnlyDoubleMatrixFunctions<U extends Unit<U>>public final int cardinality()
cardinality in interface ReadOnlyDoubleMatrixFunctions<U extends Unit<U>>public final double determinant()
throws ValueException
determinant in interface ReadOnlyDoubleMatrixFunctions<U extends Unit<U>>ValueException - when matrix is neither sparse, nor dense, or not squarepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> plus(DoubleMatrix.Abs.Dense<U> left, DoubleMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Dense<U>; the left operandright - DoubleMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> plus(DoubleMatrix.Abs.Sparse<U> left, DoubleMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Sparse<U>; the left operandright - DoubleMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Sparse<U> plus(DoubleMatrix.Abs.Sparse<U> left, DoubleMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Sparse<U>; the left operandright - DoubleMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> plus(DoubleMatrix.Rel.Dense<U> left, DoubleMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Dense<U>; the left operandright - DoubleMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> plus(DoubleMatrix.Rel.Sparse<U> left, DoubleMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Sparse<U>; the left operandright - DoubleMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Sparse<U> plus(DoubleMatrix.Rel.Sparse<U> left, DoubleMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Sparse<U>; the left operandright - DoubleMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> minus(DoubleMatrix.Abs.Dense<U> left, DoubleMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Dense<U>; the left operandright - DoubleMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> minus(DoubleMatrix.Abs.Sparse<U> left, DoubleMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Sparse<U>; the left operandright - DoubleMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Sparse<U> minus(DoubleMatrix.Abs.Sparse<U> left, DoubleMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Abs.Sparse<U>; the left operandright - DoubleMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> minus(DoubleMatrix.Rel.Dense<U> left, DoubleMatrix.Rel<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Dense<U>; the left operandright - DoubleMatrix.Rel<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> minus(DoubleMatrix.Rel.Sparse<U> left, DoubleMatrix.Rel.Dense<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Sparse<U>; the left operandright - DoubleMatrix.Rel.Dense<U>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Sparse<U> minus(DoubleMatrix.Rel.Sparse<U> left, DoubleMatrix.Rel.Sparse<U> right) throws ValueException
U - Unit; the unit of the parameters and the resultleft - DoubleMatrix.Rel.Sparse<U>; the left operandright - DoubleMatrix.Rel.Sparse<U>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Abs.Dense<SIUnit> times(DoubleMatrix.Abs.Dense<?> left, DoubleMatrix.Abs.Dense<?> right) throws ValueException
left - DoubleMatrix.Abs.Dense<?>; the left operandright - DoubleMatrix.Abs.Dense<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Abs.Sparse<SIUnit> times(DoubleMatrix.Abs.Dense<?> left, DoubleMatrix.Abs.Sparse<?> right) throws ValueException
left - DoubleMatrix.Abs.Dense<?>; the left operandright - DoubleMatrix.Abs.Sparse<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Abs.Sparse<SIUnit> times(DoubleMatrix.Abs.Sparse<?> left, DoubleMatrix.Abs<?> right) throws ValueException
left - DoubleMatrix.Abs.Sparse<?>; the left operandright - DoubleMatrix.Abs<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Rel.Dense<SIUnit> times(DoubleMatrix.Rel.Dense<?> left, DoubleMatrix.Rel.Dense<?> right) throws ValueException
left - DoubleMatrix.Rel.Dense<?>; the left operandright - DoubleMatrix.Rel.Dense<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Rel.Sparse<SIUnit> times(DoubleMatrix.Rel.Dense<?> left, DoubleMatrix.Rel.Sparse<?> right) throws ValueException
left - DoubleMatrix.Rel.Dense<?>; the left operandright - DoubleMatrix.Rel.Sparse<?>; the right operandValueException - when the matrices do not have the same sizepublic static MutableDoubleMatrix.Rel.Sparse<SIUnit> times(DoubleMatrix.Rel.Sparse<?> left, DoubleMatrix.Rel<?> right) throws ValueException
left - DoubleMatrix.Rel.Sparse<?>; the left operandright - DoubleMatrix.Rel<?>; the right operandValueException - when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> times(DoubleMatrix.Abs.Dense<U> left, double[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - DoubleMatrix.Abs.Dense<U>; the DoubleMatrixright - double[][]; the double arrayValueException - when the DoubleMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Sparse<U> times(DoubleMatrix.Abs.Sparse<U> left, double[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - DoubleMatrix.Abs.Sparse<U>; the DoubleMatrixright - double[][]; the double arrayValueException - when the DoubleMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> times(DoubleMatrix.Rel.Dense<U> left, double[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - DoubleMatrix.Rel.Dense<U>; the DoubleMatrixright - double[][]; the double arrayValueException - when the DoubleMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Sparse<U> times(DoubleMatrix.Rel.Sparse<U> left, double[][] right) throws ValueException
U - Unit; the unit of the left parameter and the resultleft - DoubleMatrix.Rel.Sparse<U>; the DoubleMatrixright - double[][]; the double arrayValueException - when the DoubleMatrix and the array do not have the same sizepublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Sparse<U> denseToSparse(DoubleMatrix.Abs.Dense<U> in)
U - Unit; the unit of the parameter and the resultin - DoubleMatrix.Abs.Dense<U>; the Dense DoubleMatrixpublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Sparse<U> denseToSparse(DoubleMatrix.Rel.Dense<U> in)
U - Unit; the unit of the parameter and the resultin - DoubleMatrix.Rel.Dense<U>; the Dense DoubleMatrixpublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> sparseToDense(DoubleMatrix.Abs.Sparse<U> in)
U - Unit; the unit of the parameter and the resultin - DoubleMatrix.Abs.Sparse<U>; the Sparse DoubleMatrixpublic static <U extends Unit<U>> MutableDoubleMatrix.Rel.Dense<U> sparseToDense(DoubleMatrix.Rel.Sparse<U> in)
U - Unit; the unit of the parameter and the resultin - DoubleMatrix.Rel.Sparse<U>; the Sparse DoubleMatrixpublic static <U extends Unit<U>> MutableDoubleMatrix.Abs.Dense<U> interpolate(DoubleMatrix.Abs.Dense<U> zero, DoubleMatrix.Abs.Dense<U> one, double ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - DoubleMatrix.Abs.Dense<U>; zero reference (returned when ratio == 0)one - DoubleMatrix.Abs.Dense<U>; one reference (returned when ratio == 1)ratio - double; 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>> MutableDoubleMatrix.Rel.Dense<U> interpolate(DoubleMatrix.Rel.Dense<U> zero, DoubleMatrix.Rel.Dense<U> one, double ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - DoubleMatrix.Rel.Dense<U>; zero reference (returned when ratio == 0)one - DoubleMatrix.Rel.Dense<U>; one reference (returned when ratio == 1)ratio - double; 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>> MutableDoubleMatrix.Abs.Sparse<U> interpolate(DoubleMatrix.Abs.Sparse<U> zero, DoubleMatrix.Abs.Sparse<U> one, double ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - DoubleMatrix.Abs.Sparse<U>; zero reference (returned when ratio == 0)one - DoubleMatrix.Abs.Sparse<U>; one reference (returned when ratio == 1)ratio - double; 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>> MutableDoubleMatrix.Rel.Sparse<U> interpolate(DoubleMatrix.Rel.Sparse<U> zero, DoubleMatrix.Rel.Sparse<U> one, double ratio) throws ValueException
U - Unit; the unit of the parameters and the resultzero - DoubleMatrix.Rel.Sparse<U>; zero reference (returned when ratio == 0)one - DoubleMatrix.Rel.Sparse<U>; one reference (returned when ratio == 1)ratio - double; 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.