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 OpenTrafficSim value classes generator, 09 mrt, 2015
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
FloatMatrix.Abs<U extends Unit<U>> |
static class |
FloatMatrix.Rel<U extends Unit<U>> |
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>[][] fsArray)
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.
|
protected abstract cern.colt.matrix.tfloat.FloatMatrix2D |
createMatrix2D(int rows,
int columns)
Create storage for the data.
|
protected void |
deepCopyData()
Make a deep copy of the data (used ONLY in the MutableFloatMatrix sub class).
|
protected cern.colt.matrix.tfloat.FloatMatrix2D |
deepCopyOfData()
Create a deep copy of the data.
|
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 |
det()
Compute the determinant of the matrix.
|
boolean |
equals(Object obj) |
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.
|
protected cern.colt.matrix.tfloat.FloatMatrix2D |
getMatrixSI()
Retrieve the internal data.
|
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 void |
initialize(float[][] values)
Import the values and convert them into the SI standard unit.
|
protected void |
initialize(cern.colt.matrix.tfloat.FloatMatrix2D values)
Import the values from an existing FloatMatrix2D.
|
protected void |
initialize(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.Abs<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.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.Abs.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.Abs.Sparse<U> left,
FloatMatrix.Abs.Sparse<U> right)
Subtract two FloatMatrices value by value and store the result in a new MutableFloatMatrix.Rel.Sparse<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 FloatVector<SIUnit> |
solve(FloatMatrix<?> A,
FloatVector<?> b)
Solve x for A*x = b.
|
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, isRelative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get
protected FloatMatrix(U unit)
unit
- U; the unit of the new FloatMatrixprotected final cern.colt.matrix.tfloat.FloatMatrix2D getMatrixSI()
protected final void deepCopyData()
public abstract MutableFloatMatrix<U> mutable()
protected final void initialize(float[][] values) throws ValueException
values
- float[][]; an array of valuesValueException
- when values is null, or not rectangularprotected final void initialize(cern.colt.matrix.tfloat.FloatMatrix2D values)
values
- FloatMatrix2D; the valuesprotected final void initialize(FloatScalar<U>[][] values) throws ValueException
values
- FloatScalar<U>[][]; a 2D array of valuesValueException
- when values is null, empty, or is not rectangularprotected abstract cern.colt.matrix.tfloat.FloatMatrix2D createMatrix2D(int rows, int columns)
rows
- int; the number of rows in the matrixcolumns
- int; the number of columns in the matrixpublic 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 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 det() throws ValueException
det
in interface ReadOnlyFloatMatrixFunctions<U extends Unit<U>>
ValueException
- when matrix is neither sparse, nor dense, or not squarepublic 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 matrixSIprotected final cern.colt.matrix.tfloat.FloatMatrix2D deepCopyOfData()
protected static <U extends Unit<U>> FloatScalar<U>[][] checkNonEmpty(FloatScalar<U>[][] fsArray) throws ValueException
U
- Unit; the unit of the FloatScalar arrayfsArray
- FloatScalar<U>[][]; the provided arrayValueException
- when the array has zero entriespublic static FloatVector<SIUnit> solve(FloatMatrix<?> A, FloatVector<?> b) throws ValueException
A
- FloatMatrix<?>; matrix A in A*x = bb
- FloatVector<?>; vector b in A*x = bValueException
- when matrix A is neither Sparse nor Densepublic 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.Rel.Dense<U> minus(FloatMatrix.Abs.Dense<U> left, FloatMatrix.Abs<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatMatrix.Abs.Dense<U>; the left operandright
- FloatMatrix.Abs<U>; the right operandValueException
- when the matrices do not have the same sizepublic static <U extends Unit<U>> MutableFloatMatrix.Rel.Sparse<U> minus(FloatMatrix.Abs.Sparse<U> left, FloatMatrix.Abs.Sparse<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatMatrix.Abs.Sparse<U>; the left operandright
- FloatMatrix.Abs.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.Abs.Sparse<U> left, FloatMatrix.Abs.Dense<U> right) throws ValueException
U
- Unit; the unit of the parameters and the resultleft
- FloatMatrix.Abs.Sparse<U>; the left operandright
- FloatMatrix.Abs.Dense<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 © 2014–2015 Delft University of Technology. All rights reserved.