U - Unit; the unit of this MutableDoubleMatrixpublic abstract class MutableDoubleMatrix<U extends Unit<U>> extends DoubleMatrix<U> implements WriteDoubleMatrixFunctions<U>, DoubleMathFunctions<MutableDoubleMatrix<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-04 05:23:13 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 81 $, by $Author: averbraeck $, initial
version 26 jun, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
MutableDoubleMatrix.Abs<U extends Unit<U>> |
static class |
MutableDoubleMatrix.Rel<U extends Unit<U>> |
data| Modifier | Constructor and Description |
|---|---|
protected |
MutableDoubleMatrix(U unit)
Construct a new MutableDoubleMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(DoubleFunction doubleFunction)
Execute a function on a cell by cell basis.
|
protected void |
checkCopyOnWrite()
Check the copyOnWrite flag and, if it is set, make a deep copy of the data and clear the flag.
|
protected MutableDoubleMatrix<U> |
decrementByImpl(DoubleMatrix.Rel<U> rel)
Decrement the corresponding values of this Relative DoubleMatrix from the values of this MutableDoubleMatrix.
|
abstract DoubleMatrix<U> |
immutable()
Make (immutable) DoubleMatrix equivalent for any type of MutableDoubleMatrix.
|
protected MutableDoubleMatrix<U> |
incrementByImpl(DoubleMatrix.Rel<U> rel)
Increment the values in this MutableDoubleMatrix by the corresponding values in a Relative DoubleMatrix.
|
void |
normalize()
Normalize the matrix, i.e.
|
protected MutableDoubleMatrix<U> |
scaleValueByValue(double[][] factor)
Scale the values in this MutableDoubleMatrix by the corresponding values in a double array.
|
protected void |
scaleValueByValue(DoubleMatrix<?> factor)
Scale the values in this MutableDoubleMatrix by the corresponding values in a DoubleMatrix.
|
void |
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 |
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 |
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.
|
cardinality, checkIndex, checkNonEmpty, checkSize, checkSize, columns, denseToSparse, denseToSparse, determinant, equals, getData, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeDense, initializeDense, initializeSparse, initializeSparse, interpolate, interpolate, interpolate, interpolate, minus, minus, minus, minus, minus, minus, mutable, plus, plus, plus, plus, plus, plus, rows, safeGet, safeSet, sparseToDense, sparseToDense, times, times, times, times, times, times, times, times, times, times, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopydivideBy, multiplyByabs, acos, asin, atan, cbrt, ceil, cos, cosh, exp, expm1, floor, inv, log, log10, log1p, pow, rint, round, signum, sin, sinh, sqrt, tan, tanh, toDegrees, toRadiansgetprotected MutableDoubleMatrix(U unit)
unit - U; the unit of the new MutableDoubleMatrixpublic abstract DoubleMatrix<U> immutable()
protected final void checkCopyOnWrite()
public final void setSI(int row,
int column,
double valueSI)
throws ValueException
setSI in interface WriteDoubleMatrixFunctions<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalueSI - double; the value to store (expressed in the standard SI unit)ValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void set(int row,
int column,
DoubleScalar<U> value)
throws ValueException
set in interface WriteDoubleMatrixFunctions<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalue - DoubleScalar<U>; the strongly typed value to storeValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void setInUnit(int row,
int column,
double value,
U valueUnit)
throws ValueException
setInUnit in interface WriteDoubleMatrixFunctions<U extends Unit<U>>row - int; row of the value to replacecolumn - int; column of the value to replacevalue - double; the value to store (which is expressed in valueUnit)valueUnit - U; unit of the supplied valueValueException - when row or column out of range (row < 0 or row >= rows() or column < 0 or column >=
columns())public final void assign(DoubleFunction doubleFunction)
doubleFunction - the function to applyprotected final MutableDoubleMatrix<U> incrementByImpl(DoubleMatrix.Rel<U> rel) throws ValueException
rel - DoubleMatrix.Rel<U>; the Relative DoubleMatrixValueException - when the matrices do not have the same sizeprotected final MutableDoubleMatrix<U> decrementByImpl(DoubleMatrix.Rel<U> rel) throws ValueException
rel - DoubleMatrix.Rel<U>; the Relative DoubleMatrixValueException - when the matrices do not have the same sizeprotected final void scaleValueByValue(DoubleMatrix<?> factor) throws ValueException
factor - DoubleMatrix<?>; contains the values by which to scale the corresponding values in this
MutableDoubleMatrixValueException - when the matrices do not have the same sizeprotected final MutableDoubleMatrix<U> scaleValueByValue(double[][] factor) throws ValueException
factor - double[][]; contains the values by which to scale the corresponding values in this MutableDoubleMatrixValueException - when the matrix and the array do not have the same sizepublic final void normalize()
throws ValueException
normalize in interface WriteDoubleMatrixFunctions<U extends Unit<U>>ValueException - when the sum of the values is zero and normalization is not possibleCopyright © 2015 Delft University of Technology. All rights reserved.