Package | Description |
---|---|
org.opentrafficsim.core.value.vdouble.matrix |
Double Matrix storage and calculations with units, absolute/relative, sparse/dense.
|
org.opentrafficsim.core.value.vdouble.vector |
Double Vector storage and calculations with units, absolute/relative, sparse/dense.
|
org.opentrafficsim.core.value.vfloat.matrix |
Float Matrix storage and calculations with units, absolute/relative, sparse/dense.
|
org.opentrafficsim.core.value.vfloat.vector |
Float Vector storage and calculations with units, absolute/relative, sparse/dense.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DoubleMatrix.checkIndex(int row,
int column)
Check that provided row and column indices are valid.
|
protected static <U extends Unit<U>> |
DoubleMatrix.checkNonEmpty(DoubleScalar<U>[][] dsArray)
Check that a provided array can be used to create some descendant of a DoubleMatrix.
|
protected void |
DoubleMatrix.checkSize(double[][] other)
Centralized size equality check.
|
protected void |
DoubleMatrix.checkSize(DoubleMatrix<?> other)
Centralized size equality check.
|
protected MutableDoubleMatrix.Rel<U> |
MutableDoubleMatrix.decrementBy(DoubleMatrix.Abs<U> abs)
Decrement the values in this Relative MutableDoubleMatrix by the corresponding values in an Absolute
DoubleMatrix.
|
MutableDoubleMatrix.Abs<U> |
MutableDoubleMatrix.Abs.decrementBy(DoubleMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
MutableDoubleMatrix.Rel<U> |
MutableDoubleMatrix.Rel.decrementBy(DoubleMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
protected MutableDoubleMatrix<U> |
MutableDoubleMatrix.decrementByImpl(DoubleMatrix.Rel<U> rel)
Decrement the corresponding values of this Relative DoubleMatrix from the values of this MutableDoubleMatrix.
|
double |
ReadOnlyDoubleMatrixFunctions.det()
Compute the determinant of the matrix.
|
double |
DoubleMatrix.det()
Compute the determinant of the matrix.
|
DoubleScalar<U> |
ReadOnlyDoubleMatrixFunctions.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleScalar.Abs<U> |
MutableDoubleMatrix.Abs.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleScalar.Rel<U> |
MutableDoubleMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleScalar.Abs<U> |
DoubleMatrix.Abs.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleScalar.Rel<U> |
DoubleMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
double |
ReadOnlyDoubleMatrixFunctions.getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
double |
DoubleMatrix.getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
double |
ReadOnlyDoubleMatrixFunctions.getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
double |
DoubleMatrix.getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
double |
ReadOnlyDoubleMatrixFunctions.getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
double |
DoubleMatrix.getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
MutableDoubleMatrix.Abs<U> |
MutableDoubleMatrix.Abs.incrementBy(DoubleMatrix.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
MutableDoubleMatrix.Rel<U> |
MutableDoubleMatrix.Rel.incrementBy(DoubleMatrix.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
protected MutableDoubleMatrix<U> |
MutableDoubleMatrix.incrementByImpl(DoubleMatrix.Rel<U> rel)
Increment the values in this MutableDoubleMatrix by the corresponding values in a Relative DoubleMatrix.
|
protected void |
DoubleMatrix.initialize(double[][] values)
Import the values and convert them into the SI standard unit.
|
protected void |
DoubleMatrix.initialize(DoubleScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.minus(DoubleMatrix.Abs.Dense<U> left,
DoubleMatrix.Abs<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleMatrix.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>> |
DoubleMatrix.minus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Abs.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>> |
DoubleMatrix.minus(DoubleMatrix.Abs.Sparse<U> left,
DoubleMatrix.Abs.Sparse<U> right)
Subtract two DoubleMatrices value by value and store the result in a new MutableDoubleMatrix.Rel.Sparse<U>.
|
static <U extends Unit<U>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>.
|
void |
WriteDoubleMatrixFunctions.normalize()
Normalize the matrix, i.e.
|
void |
MutableDoubleMatrix.normalize()
Normalize the matrix, i.e.
|
static <U extends Unit<U>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>> |
DoubleMatrix.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>.
|
protected MutableDoubleMatrix<U> |
MutableDoubleMatrix.scaleValueByValue(double[][] factor)
Scale the values in this MutableDoubleMatrix by the corresponding values in a double array.
|
protected void |
MutableDoubleMatrix.scaleValueByValue(DoubleMatrix<?> factor)
Scale the values in this MutableDoubleMatrix by the corresponding values in a DoubleMatrix.
|
void |
WriteDoubleMatrixFunctions.set(int row,
int column,
DoubleScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
MutableDoubleMatrix.set(int row,
int column,
DoubleScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
WriteDoubleMatrixFunctions.setInUnit(int row,
int column,
double value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
MutableDoubleMatrix.setInUnit(int row,
int column,
double value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
WriteDoubleMatrixFunctions.setSI(int row,
int column,
double valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
void |
MutableDoubleMatrix.setSI(int row,
int column,
double valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
static DoubleVector<SIUnit> |
DoubleMatrix.solve(DoubleMatrix<?> A,
DoubleVector<?> b)
Solve x for A*x = b.
|
static MutableDoubleMatrix.Abs.Dense<SIUnit> |
DoubleMatrix.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> |
DoubleMatrix.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>> |
DoubleMatrix.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> |
DoubleMatrix.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>> |
DoubleMatrix.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> |
DoubleMatrix.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> |
DoubleMatrix.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>> |
DoubleMatrix.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> |
DoubleMatrix.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>> |
DoubleMatrix.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>.
|
Constructor and Description |
---|
DoubleMatrix.Abs.Dense(double[][] values,
U unit)
Construct a new Absolute Dense Immutable DoubleMatrix.
|
DoubleMatrix.Abs.Dense(DoubleScalar.Abs<U>[][] values)
Construct a new Absolute Dense Immutable DoubleMatrix.
|
DoubleMatrix.Abs.Sparse(double[][] values,
U unit)
Construct a new Absolute Sparse Immutable DoubleMatrix.
|
DoubleMatrix.Abs.Sparse(DoubleScalar.Abs<U>[][] values)
Construct a new Absolute Sparse Immutable DoubleMatrix.
|
DoubleMatrix.Rel.Dense(double[][] values,
U unit)
Construct a new Relative Dense Immutable DoubleMatrix.
|
DoubleMatrix.Rel.Dense(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Dense Immutable DoubleMatrix.
|
DoubleMatrix.Rel.Sparse(double[][] values,
U unit)
Construct a new Relative Sparse Immutable DoubleMatrix.
|
DoubleMatrix.Rel.Sparse(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Sparse Immutable DoubleMatrix.
|
MutableDoubleMatrix.Abs.Dense(double[][] values,
U unit)
Construct a new Absolute Dense MutableDoubleMatrix.
|
MutableDoubleMatrix.Abs.Dense(DoubleScalar.Abs<U>[][] values)
Construct a new Absolute Dense MutableDoubleMatrix.
|
MutableDoubleMatrix.Abs.Sparse(double[][] values,
U unit)
Construct a new Absolute Sparse MutableDoubleMatrix.
|
MutableDoubleMatrix.Abs.Sparse(DoubleScalar.Abs<U>[][] values)
Construct a new Absolute Sparse MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel.Dense(double[][] values,
U unit)
Construct a new Relative Dense MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel.Dense(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Dense MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel.Sparse(double[][] values,
U unit)
Construct a new Relative Sparse MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel.Sparse(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Sparse MutableDoubleMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DoubleVector.checkIndex(int index)
Check that a provided index is valid.
|
protected static <U extends Unit<U>> |
DoubleVector.checkNonEmpty(DoubleScalar<U>[] dsArray)
Check that a provided array can be used to create some descendant of a DoubleVector.
|
protected void |
DoubleVector.checkSize(double[] other)
Centralized size equality check.
|
protected void |
DoubleVector.checkSize(DoubleVector<?> other)
Centralized size equality check.
|
protected MutableDoubleVector.Rel<U> |
MutableDoubleVector.decrementBy(DoubleVector.Abs<U> abs)
Decrement the values in this Relative MutableDoubleVector by the corresponding values in an Absolute
DoubleVector.
|
MutableDoubleVector.Abs<U> |
MutableDoubleVector.Abs.decrementBy(DoubleVector.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
MutableDoubleVector.Rel<U> |
MutableDoubleVector.Rel.decrementBy(DoubleVector.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
protected MutableDoubleVector<U> |
MutableDoubleVector.decrementByImpl(DoubleVector.Rel<U> rel)
Decrement the corresponding values of this Relative DoubleVector from the values of this MutableDoubleVector.
|
DoubleScalar<U> |
ReadOnlyDoubleVectorFunctions.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleScalar.Abs<U> |
MutableDoubleVector.Abs.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleScalar.Rel<U> |
MutableDoubleVector.Rel.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleScalar.Abs<U> |
DoubleVector.Abs.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleScalar.Rel<U> |
DoubleVector.Rel.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
double |
ReadOnlyDoubleVectorFunctions.getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
double |
DoubleVector.getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
double |
ReadOnlyDoubleVectorFunctions.getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
double |
DoubleVector.getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
double |
ReadOnlyDoubleVectorFunctions.getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
double |
DoubleVector.getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
MutableDoubleVector.Abs<U> |
MutableDoubleVector.Abs.incrementBy(DoubleVector.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
MutableDoubleVector.Rel<U> |
MutableDoubleVector.Rel.incrementBy(DoubleVector.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
protected MutableDoubleVector<U> |
MutableDoubleVector.incrementByImpl(DoubleVector.Rel<U> rel)
Increment the values in this MutableDoubleVector by the corresponding values in a Relative DoubleVector.
|
protected void |
DoubleVector.initialize(double[] values)
Import the values and convert them into the SI standard unit.
|
protected void |
DoubleVector.initialize(DoubleScalar<U>[] values)
Construct the vector and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
DoubleVector.interpolate(DoubleVector.Abs.Dense<U> zero,
DoubleVector.Abs.Dense<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleVector.interpolate(DoubleVector.Abs.Sparse<U> zero,
DoubleVector.Abs.Sparse<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleVector.interpolate(DoubleVector.Rel.Dense<U> zero,
DoubleVector.Rel.Dense<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleVector.interpolate(DoubleVector.Rel.Sparse<U> zero,
DoubleVector.Rel.Sparse<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Dense<U> left,
DoubleVector.Abs<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Dense<U> left,
DoubleVector.Rel<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Abs.Dense<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Abs.Sparse<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Sparse<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Rel.Dense<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Rel.Sparse<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Rel.Dense<U> left,
DoubleVector.Rel<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Rel.Sparse<U> left,
DoubleVector.Rel.Dense<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.minus(DoubleVector.Rel.Sparse<U> left,
DoubleVector.Rel.Sparse<U> right)
Subtract two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Sparse<U>.
|
void |
WriteDoubleVectorFunctions.normalize()
Normalize the vector, i.e.
|
void |
MutableDoubleVector.normalize()
Normalize the vector, i.e.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Abs.Dense<U> left,
DoubleVector.Rel<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Rel.Dense<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Abs.Sparse<U> left,
DoubleVector.Rel.Sparse<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Rel.Dense<U> left,
DoubleVector.Rel<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Rel.Sparse<U> left,
DoubleVector.Rel.Dense<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
DoubleVector.plus(DoubleVector.Rel.Sparse<U> left,
DoubleVector.Rel.Sparse<U> right)
Add two DoubleVectors value by value and store the result in a new MutableDoubleVector.Rel.Sparse<U>.
|
protected MutableDoubleVector<U> |
MutableDoubleVector.scaleValueByValue(double[] factor)
Scale the values in this MutableDoubleVector by the corresponding values in a double array.
|
protected void |
MutableDoubleVector.scaleValueByValue(DoubleVector<?> factor)
Scale the values in this MutableDoubleVector by the corresponding values in a DoubleVector.
|
void |
WriteDoubleVectorFunctions.set(int index,
DoubleScalar<U> value)
Replace the value at index by the supplied value which is in a compatible unit.
|
void |
MutableDoubleVector.set(int index,
DoubleScalar<U> value)
Replace the value at index by the supplied value which is in a compatible unit.
|
void |
WriteDoubleVectorFunctions.setInUnit(int index,
double value,
U valueUnit)
Replace the value at index by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
MutableDoubleVector.setInUnit(int index,
double value,
U valueUnit)
Replace the value at index by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
WriteDoubleVectorFunctions.setSI(int index,
double valueSI)
Replace the value at index by the supplied value which is expressed in the standard SI unit.
|
void |
MutableDoubleVector.setSI(int index,
double valueSI)
Replace the value at index by the supplied value which is expressed in the standard SI unit.
|
static MutableDoubleVector.Abs.Dense<SIUnit> |
DoubleVector.times(DoubleVector.Abs.Dense<?> left,
DoubleVector.Abs.Dense<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Abs.Dense<SIUnit>.
|
static MutableDoubleVector.Abs.Sparse<SIUnit> |
DoubleVector.times(DoubleVector.Abs.Dense<?> left,
DoubleVector.Abs.Sparse<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
DoubleVector.times(DoubleVector.Abs.Dense<U> left,
double[] right)
Multiply the values in a DoubleVector and a double array value by value and store the result in a new
MutableDoubleVector.Abs.Dense<U>.
|
static MutableDoubleVector.Abs.Sparse<SIUnit> |
DoubleVector.times(DoubleVector.Abs.Sparse<?> left,
DoubleVector.Abs<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
DoubleVector.times(DoubleVector.Abs.Sparse<U> left,
double[] right)
Multiply the values in a DoubleVector and a double array value by value and store the result in a new
MutableDoubleVector.Abs.Sparse<U>.
|
static MutableDoubleVector.Rel.Dense<SIUnit> |
DoubleVector.times(DoubleVector.Rel.Dense<?> left,
DoubleVector.Rel.Dense<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Rel.Dense<SIUnit>.
|
static MutableDoubleVector.Rel.Sparse<SIUnit> |
DoubleVector.times(DoubleVector.Rel.Dense<?> left,
DoubleVector.Rel.Sparse<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
DoubleVector.times(DoubleVector.Rel.Dense<U> left,
double[] right)
Multiply the values in a DoubleVector and a double array value by value and store the result in a new
MutableDoubleVector.Rel.Dense<U>.
|
static MutableDoubleVector.Rel.Sparse<SIUnit> |
DoubleVector.times(DoubleVector.Rel.Sparse<?> left,
DoubleVector.Rel<?> right)
Multiply two DoubleVectors value by value and store the result in a new
MutableDoubleVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
DoubleVector.times(DoubleVector.Rel.Sparse<U> left,
double[] right)
Multiply the values in a DoubleVector and a double array value by value and store the result in a new
MutableDoubleVector.Rel.Sparse<U>.
|
Constructor and Description |
---|
DoubleVector.Abs.Dense(double[] values,
U unit)
Construct a new Absolute Dense Immutable DoubleVector.
|
DoubleVector.Abs.Dense(DoubleScalar.Abs<U>[] values)
Construct a new Absolute Dense Immutable DoubleVector.
|
DoubleVector.Abs.Sparse(double[] values,
U unit)
Construct a new Absolute Sparse Immutable DoubleVector.
|
DoubleVector.Abs.Sparse(DoubleScalar.Abs<U>[] values)
Construct a new Absolute Sparse Immutable DoubleVector.
|
DoubleVector.Rel.Dense(double[] values,
U unit)
Construct a new Relative Dense Immutable DoubleVector.
|
DoubleVector.Rel.Dense(DoubleScalar.Rel<U>[] values)
Construct a new Relative Dense Immutable DoubleVector.
|
DoubleVector.Rel.Sparse(double[] values,
U unit)
Construct a new Relative Sparse Immutable DoubleVector.
|
DoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values)
Construct a new Relative Sparse Immutable DoubleVector.
|
MutableDoubleVector.Abs.Dense(double[] values,
U unit)
Construct a new Absolute Dense MutableDoubleVector.
|
MutableDoubleVector.Abs.Dense(DoubleScalar.Abs<U>[] values)
Construct a new Absolute Dense MutableDoubleVector.
|
MutableDoubleVector.Abs.Sparse(double[] values,
U unit)
Construct a new Absolute Sparse MutableDoubleVector.
|
MutableDoubleVector.Abs.Sparse(DoubleScalar.Abs<U>[] values)
Construct a new Absolute Sparse MutableDoubleVector.
|
MutableDoubleVector.Rel.Dense(double[] values,
U unit)
Construct a new Relative Dense MutableDoubleVector.
|
MutableDoubleVector.Rel.Dense(DoubleScalar.Rel<U>[] values)
Construct a new Relative Dense MutableDoubleVector.
|
MutableDoubleVector.Rel.Sparse(double[] values,
U unit)
Construct a new Relative Sparse MutableDoubleVector.
|
MutableDoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values)
Construct a new Relative Sparse MutableDoubleVector.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FloatMatrix.checkIndex(int row,
int column)
Check that provided row and column indices are valid.
|
protected static <U extends Unit<U>> |
FloatMatrix.checkNonEmpty(FloatScalar<U>[][] fsArray)
Check that a provided array can be used to create some descendant of a FloatMatrix.
|
protected void |
FloatMatrix.checkSize(float[][] other)
Centralized size equality check.
|
protected void |
FloatMatrix.checkSize(FloatMatrix<?> other)
Centralized size equality check.
|
protected MutableFloatMatrix.Rel<U> |
MutableFloatMatrix.decrementBy(FloatMatrix.Abs<U> abs)
Decrement the values in this Relative MutableFloatMatrix by the corresponding values in an Absolute FloatMatrix.
|
MutableFloatMatrix.Abs<U> |
MutableFloatMatrix.Abs.decrementBy(FloatMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
MutableFloatMatrix.Rel<U> |
MutableFloatMatrix.Rel.decrementBy(FloatMatrix.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
protected MutableFloatMatrix<U> |
MutableFloatMatrix.decrementByImpl(FloatMatrix.Rel<U> rel)
Decrement the corresponding values of this Relative FloatMatrix from the values of this MutableFloatMatrix.
|
float |
ReadOnlyFloatMatrixFunctions.det()
Compute the determinant of the matrix.
|
float |
FloatMatrix.det()
Compute the determinant of the matrix.
|
FloatScalar<U> |
ReadOnlyFloatMatrixFunctions.get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
FloatScalar.Abs<U> |
MutableFloatMatrix.Abs.get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
FloatScalar.Rel<U> |
MutableFloatMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
FloatScalar.Abs<U> |
FloatMatrix.Abs.get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
FloatScalar.Rel<U> |
FloatMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a FloatScalar.
|
float |
ReadOnlyFloatMatrixFunctions.getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
float |
FloatMatrix.getInUnit(int row,
int column)
Retrieve the value stored at a specified row and column in the original unit.
|
float |
ReadOnlyFloatMatrixFunctions.getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
float |
FloatMatrix.getInUnit(int row,
int column,
U targetUnit)
Retrieve the value stored at a specified row and column converted into a specified unit.
|
float |
ReadOnlyFloatMatrixFunctions.getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
float |
FloatMatrix.getSI(int row,
int column)
Retrieve the value stored at a specified row and column in the standard SI unit.
|
MutableFloatMatrix.Abs<U> |
MutableFloatMatrix.Abs.incrementBy(FloatMatrix.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
MutableFloatMatrix.Rel<U> |
MutableFloatMatrix.Rel.incrementBy(FloatMatrix.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
protected MutableFloatMatrix<U> |
MutableFloatMatrix.incrementByImpl(FloatMatrix.Rel<U> rel)
Increment the values in this MutableFloatMatrix by the corresponding values in a Relative FloatMatrix.
|
protected void |
FloatMatrix.initialize(float[][] values)
Import the values and convert them into the SI standard unit.
|
protected void |
FloatMatrix.initialize(FloatScalar<U>[][] values)
Construct the matrix and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>.
|
void |
WriteFloatMatrixFunctions.normalize()
Normalize the matrix, i.e.
|
void |
MutableFloatMatrix.normalize()
Normalize the matrix, i.e.
|
static <U extends Unit<U>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>> |
FloatMatrix.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>.
|
protected MutableFloatMatrix<U> |
MutableFloatMatrix.scaleValueByValue(float[][] factor)
Scale the values in this MutableFloatMatrix by the corresponding values in a float array.
|
protected void |
MutableFloatMatrix.scaleValueByValue(FloatMatrix<?> factor)
Scale the values in this MutableFloatMatrix by the corresponding values in a FloatMatrix.
|
void |
WriteFloatMatrixFunctions.set(int row,
int column,
FloatScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
MutableFloatMatrix.set(int row,
int column,
FloatScalar<U> value)
Replace the value at row, column by the supplied value which is in a compatible unit.
|
void |
WriteFloatMatrixFunctions.setInUnit(int row,
int column,
float value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
MutableFloatMatrix.setInUnit(int row,
int column,
float value,
U valueUnit)
Replace the value at row, column by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
WriteFloatMatrixFunctions.setSI(int row,
int column,
float valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
void |
MutableFloatMatrix.setSI(int row,
int column,
float valueSI)
Replace the value at row, column by the supplied value which is expressed in the standard SI unit.
|
static FloatVector<SIUnit> |
FloatMatrix.solve(FloatMatrix<?> A,
FloatVector<?> b)
Solve x for A*x = b.
|
static MutableFloatMatrix.Abs.Dense<SIUnit> |
FloatMatrix.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> |
FloatMatrix.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>> |
FloatMatrix.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> |
FloatMatrix.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>> |
FloatMatrix.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> |
FloatMatrix.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> |
FloatMatrix.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>> |
FloatMatrix.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> |
FloatMatrix.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>> |
FloatMatrix.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>.
|
Constructor and Description |
---|
FloatMatrix.Abs.Dense(float[][] values,
U unit)
Construct a new Absolute Dense Immutable FloatMatrix.
|
FloatMatrix.Abs.Dense(FloatScalar.Abs<U>[][] values)
Construct a new Absolute Dense Immutable FloatMatrix.
|
FloatMatrix.Abs.Sparse(float[][] values,
U unit)
Construct a new Absolute Sparse Immutable FloatMatrix.
|
FloatMatrix.Abs.Sparse(FloatScalar.Abs<U>[][] values)
Construct a new Absolute Sparse Immutable FloatMatrix.
|
FloatMatrix.Rel.Dense(float[][] values,
U unit)
Construct a new Relative Dense Immutable FloatMatrix.
|
FloatMatrix.Rel.Dense(FloatScalar.Rel<U>[][] values)
Construct a new Relative Dense Immutable FloatMatrix.
|
FloatMatrix.Rel.Sparse(float[][] values,
U unit)
Construct a new Relative Sparse Immutable FloatMatrix.
|
FloatMatrix.Rel.Sparse(FloatScalar.Rel<U>[][] values)
Construct a new Relative Sparse Immutable FloatMatrix.
|
MutableFloatMatrix.Abs.Dense(float[][] values,
U unit)
Construct a new Absolute Dense MutableFloatMatrix.
|
MutableFloatMatrix.Abs.Dense(FloatScalar.Abs<U>[][] values)
Construct a new Absolute Dense MutableFloatMatrix.
|
MutableFloatMatrix.Abs.Sparse(float[][] values,
U unit)
Construct a new Absolute Sparse MutableFloatMatrix.
|
MutableFloatMatrix.Abs.Sparse(FloatScalar.Abs<U>[][] values)
Construct a new Absolute Sparse MutableFloatMatrix.
|
MutableFloatMatrix.Rel.Dense(float[][] values,
U unit)
Construct a new Relative Dense MutableFloatMatrix.
|
MutableFloatMatrix.Rel.Dense(FloatScalar.Rel<U>[][] values)
Construct a new Relative Dense MutableFloatMatrix.
|
MutableFloatMatrix.Rel.Sparse(float[][] values,
U unit)
Construct a new Relative Sparse MutableFloatMatrix.
|
MutableFloatMatrix.Rel.Sparse(FloatScalar.Rel<U>[][] values)
Construct a new Relative Sparse MutableFloatMatrix.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FloatVector.checkIndex(int index)
Check that a provided index is valid.
|
protected static <U extends Unit<U>> |
FloatVector.checkNonEmpty(FloatScalar<U>[] fsArray)
Check that a provided array can be used to create some descendant of a FloatVector.
|
protected void |
FloatVector.checkSize(float[] other)
Centralized size equality check.
|
protected void |
FloatVector.checkSize(FloatVector<?> other)
Centralized size equality check.
|
protected MutableFloatVector.Rel<U> |
MutableFloatVector.decrementBy(FloatVector.Abs<U> abs)
Decrement the values in this Relative MutableFloatVector by the corresponding values in an Absolute FloatVector.
|
MutableFloatVector.Abs<U> |
MutableFloatVector.Abs.decrementBy(FloatVector.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
MutableFloatVector.Rel<U> |
MutableFloatVector.Rel.decrementBy(FloatVector.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
protected MutableFloatVector<U> |
MutableFloatVector.decrementByImpl(FloatVector.Rel<U> rel)
Decrement the corresponding values of this Relative FloatVector from the values of this MutableFloatVector.
|
FloatScalar<U> |
ReadOnlyFloatVectorFunctions.get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatScalar.Abs<U> |
MutableFloatVector.Abs.get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatScalar.Rel<U> |
MutableFloatVector.Rel.get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatScalar.Abs<U> |
FloatVector.Abs.get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
FloatScalar.Rel<U> |
FloatVector.Rel.get(int index)
Retrieve the value stored at a specified index as a FloatScalar.
|
float |
ReadOnlyFloatVectorFunctions.getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
float |
FloatVector.getInUnit(int index)
Retrieve the value stored at a specified position in the original unit.
|
float |
ReadOnlyFloatVectorFunctions.getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
float |
FloatVector.getInUnit(int index,
U targetUnit)
Retrieve the value stored at a specified position converted into a specified unit.
|
float |
ReadOnlyFloatVectorFunctions.getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
float |
FloatVector.getSI(int index)
Retrieve the value stored at a specified position in the standard SI unit.
|
MutableFloatVector.Abs<U> |
MutableFloatVector.Abs.incrementBy(FloatVector.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
MutableFloatVector.Rel<U> |
MutableFloatVector.Rel.incrementBy(FloatVector.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
protected MutableFloatVector<U> |
MutableFloatVector.incrementByImpl(FloatVector.Rel<U> rel)
Increment the values in this MutableFloatVector by the corresponding values in a Relative FloatVector.
|
protected void |
FloatVector.initialize(float[] values)
Import the values and convert them into the SI standard unit.
|
protected void |
FloatVector.initialize(FloatScalar<U>[] values)
Construct the vector and store the values in the standard SI unit.
|
static <U extends Unit<U>> |
FloatVector.interpolate(FloatVector.Abs.Dense<U> zero,
FloatVector.Abs.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
FloatVector.interpolate(FloatVector.Abs.Sparse<U> zero,
FloatVector.Abs.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
FloatVector.interpolate(FloatVector.Rel.Dense<U> zero,
FloatVector.Rel.Dense<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
FloatVector.interpolate(FloatVector.Rel.Sparse<U> zero,
FloatVector.Rel.Sparse<U> one,
float ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Dense<U> left,
FloatVector.Abs<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Dense<U> left,
FloatVector.Rel<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Abs.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Abs.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Rel.Dense<U> left,
FloatVector.Rel<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.minus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Subtract two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
void |
WriteFloatVectorFunctions.normalize()
Normalize the vector, i.e.
|
void |
MutableFloatVector.normalize()
Normalize the vector, i.e.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Abs.Dense<U> left,
FloatVector.Rel<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Abs.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Abs.Sparse<U>.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Rel.Dense<U> left,
FloatVector.Rel<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Dense<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Dense<U>.
|
static <U extends Unit<U>> |
FloatVector.plus(FloatVector.Rel.Sparse<U> left,
FloatVector.Rel.Sparse<U> right)
Add two FloatVectors value by value and store the result in a new MutableFloatVector.Rel.Sparse<U>.
|
protected MutableFloatVector<U> |
MutableFloatVector.scaleValueByValue(float[] factor)
Scale the values in this MutableFloatVector by the corresponding values in a float array.
|
protected void |
MutableFloatVector.scaleValueByValue(FloatVector<?> factor)
Scale the values in this MutableFloatVector by the corresponding values in a FloatVector.
|
void |
WriteFloatVectorFunctions.set(int index,
FloatScalar<U> value)
Replace the value at index by the supplied value which is in a compatible unit.
|
void |
MutableFloatVector.set(int index,
FloatScalar<U> value)
Replace the value at index by the supplied value which is in a compatible unit.
|
void |
WriteFloatVectorFunctions.setInUnit(int index,
float value,
U valueUnit)
Replace the value at index by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
MutableFloatVector.setInUnit(int index,
float value,
U valueUnit)
Replace the value at index by the supplied value which is expressed in a supplied (compatible) unit.
|
void |
WriteFloatVectorFunctions.setSI(int index,
float valueSI)
Replace the value at index by the supplied value which is expressed in the standard SI unit.
|
void |
MutableFloatVector.setSI(int index,
float valueSI)
Replace the value at index by the supplied value which is expressed in the standard SI unit.
|
static MutableFloatVector.Abs.Dense<SIUnit> |
FloatVector.times(FloatVector.Abs.Dense<?> left,
FloatVector.Abs.Dense<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Dense<SIUnit>.
|
static MutableFloatVector.Abs.Sparse<SIUnit> |
FloatVector.times(FloatVector.Abs.Dense<?> left,
FloatVector.Abs.Sparse<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
FloatVector.times(FloatVector.Abs.Dense<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Abs.Dense<U>.
|
static MutableFloatVector.Abs.Sparse<SIUnit> |
FloatVector.times(FloatVector.Abs.Sparse<?> left,
FloatVector.Abs<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Abs.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
FloatVector.times(FloatVector.Abs.Sparse<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Abs.Sparse<U>.
|
static MutableFloatVector.Rel.Dense<SIUnit> |
FloatVector.times(FloatVector.Rel.Dense<?> left,
FloatVector.Rel.Dense<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Dense<SIUnit>.
|
static MutableFloatVector.Rel.Sparse<SIUnit> |
FloatVector.times(FloatVector.Rel.Dense<?> left,
FloatVector.Rel.Sparse<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
FloatVector.times(FloatVector.Rel.Dense<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Rel.Dense<U>.
|
static MutableFloatVector.Rel.Sparse<SIUnit> |
FloatVector.times(FloatVector.Rel.Sparse<?> left,
FloatVector.Rel<?> right)
Multiply two FloatVectors value by value and store the result in a new
MutableFloatVector.Rel.Sparse<SIUnit>.
|
static <U extends Unit<U>> |
FloatVector.times(FloatVector.Rel.Sparse<U> left,
float[] right)
Multiply the values in a FloatVector and a float array value by value and store the result in a new
MutableFloatVector.Rel.Sparse<U>.
|
Constructor and Description |
---|
FloatVector.Abs.Dense(float[] values,
U unit)
Construct a new Absolute Dense Immutable FloatVector.
|
FloatVector.Abs.Dense(FloatScalar.Abs<U>[] values)
Construct a new Absolute Dense Immutable FloatVector.
|
FloatVector.Abs.Sparse(float[] values,
U unit)
Construct a new Absolute Sparse Immutable FloatVector.
|
FloatVector.Abs.Sparse(FloatScalar.Abs<U>[] values)
Construct a new Absolute Sparse Immutable FloatVector.
|
FloatVector.Rel.Dense(float[] values,
U unit)
Construct a new Relative Dense Immutable FloatVector.
|
FloatVector.Rel.Dense(FloatScalar.Rel<U>[] values)
Construct a new Relative Dense Immutable FloatVector.
|
FloatVector.Rel.Sparse(float[] values,
U unit)
Construct a new Relative Sparse Immutable FloatVector.
|
FloatVector.Rel.Sparse(FloatScalar.Rel<U>[] values)
Construct a new Relative Sparse Immutable FloatVector.
|
MutableFloatVector.Abs.Dense(float[] values,
U unit)
Construct a new Absolute Dense MutableFloatVector.
|
MutableFloatVector.Abs.Dense(FloatScalar.Abs<U>[] values)
Construct a new Absolute Dense MutableFloatVector.
|
MutableFloatVector.Abs.Sparse(float[] values,
U unit)
Construct a new Absolute Sparse MutableFloatVector.
|
MutableFloatVector.Abs.Sparse(FloatScalar.Abs<U>[] values)
Construct a new Absolute Sparse MutableFloatVector.
|
MutableFloatVector.Rel.Dense(float[] values,
U unit)
Construct a new Relative Dense MutableFloatVector.
|
MutableFloatVector.Rel.Dense(FloatScalar.Rel<U>[] values)
Construct a new Relative Dense MutableFloatVector.
|
MutableFloatVector.Rel.Sparse(float[] values,
U unit)
Construct a new Relative Sparse MutableFloatVector.
|
MutableFloatVector.Rel.Sparse(FloatScalar.Rel<U>[] values)
Construct a new Relative Sparse MutableFloatVector.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.