public class MutableDimensionlessMatrix extends AbstractMutableDoubleMatrixRel<DimensionlessUnit,DimensionlessMatrix,MutableDimensionlessMatrix,Dimensionless> implements MathFunctionsDimensionless<MutableDimensionlessMatrix>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
data
Constructor and Description |
---|
MutableDimensionlessMatrix(Dimensionless[][] values,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessMatrix.
|
MutableDimensionlessMatrix(double[][] values,
DimensionlessUnit unit,
StorageType storageType)
Construct a new Relative Immutable Double DimensionlessMatrix.
|
MutableDimensionlessMatrix(DoubleMatrixData data,
DimensionlessUnit unit) |
Modifier and Type | Method and Description |
---|---|
MutableDimensionlessMatrix |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MutableDimensionlessMatrix |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableDimensionlessMatrix |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MutableDimensionlessMatrix |
cbrt()
Set the value(s) to the(ir) cube root.
|
MutableDimensionlessMatrix |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MutableDimensionlessMatrix |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MutableDimensionlessMatrix |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MutableDimensionlessMatrix |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
protected MutableDimensionlessMatrix |
instantiateMutableType(DoubleMatrixData dmd,
DimensionlessUnit unit)
Construct a new Relative Mutable DoubleMatrix of the right type.
|
protected Dimensionless |
instantiateScalar(double value,
DimensionlessUnit unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
protected DimensionlessMatrix |
instantiateType(DoubleMatrixData dmd,
DimensionlessUnit unit)
Construct a new Relative Immutable DoubleMatrix of the right type.
|
MutableDimensionlessMatrix |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MutableDimensionlessMatrix |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MutableDimensionlessMatrix |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MutableDimensionlessMatrix |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MutableDimensionlessMatrix |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MutableDimensionlessMatrix |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
MutableDimensionlessMatrix |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MutableDimensionlessMatrix |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MutableDimensionlessMatrix |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MutableDimensionlessMatrix |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MutableDimensionlessMatrix |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MutableDimensionlessMatrix |
toDense()
Create a dense version of this DoubleMatrix.
|
MutableDimensionlessMatrix |
toSparse()
Create a sparse version of this DoubleMatrix.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSI
checkUnit, divide, ensureRectangularAndNonEmpty, get, minus, plus, times
cardinality, checkIndex, checkSize, checkSize, columns, determinant, ensureRectangularAndNonEmpty, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, rows, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
neg
DIV, MULT, POW
public MutableDimensionlessMatrix(double[][] values, DimensionlessUnit unit, StorageType storageType) throws ValueException
values
- double[][]; the values of the entries in the new Relative Immutable Double DimensionlessMatrixunit
- U; the unit of the new Relative Immutable Double DimensionlessMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic MutableDimensionlessMatrix(Dimensionless[][] values, StorageType storageType) throws ValueException
values
- DoubleScalar.Rel<U>[][]; the values of the entries in the new Relative Immutable Double
DimensionlessMatrixstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriesMutableDimensionlessMatrix(DoubleMatrixData data, DimensionlessUnit unit)
data
- an internal data objectunit
- the unitpublic final MutableDimensionlessMatrix toDense()
toDense
in interface DoubleMatrixInterface<DimensionlessUnit>
public final MutableDimensionlessMatrix toSparse()
toSparse
in interface DoubleMatrixInterface<DimensionlessUnit>
protected final DimensionlessMatrix instantiateType(DoubleMatrixData dmd, DimensionlessUnit unit)
instantiateType
in class AbstractDoubleMatrixRel<DimensionlessUnit,DimensionlessMatrix,MutableDimensionlessMatrix,Dimensionless>
dmd
- an internal data objectunit
- the unitprotected final MutableDimensionlessMatrix instantiateMutableType(DoubleMatrixData dmd, DimensionlessUnit unit)
instantiateMutableType
in class AbstractDoubleMatrixRel<DimensionlessUnit,DimensionlessMatrix,MutableDimensionlessMatrix,Dimensionless>
dmd
- an internal data objectunit
- the unitprotected final Dimensionless instantiateScalar(double value, DimensionlessUnit unit)
instantiateScalar
in class AbstractDoubleMatrixRel<DimensionlessUnit,DimensionlessMatrix,MutableDimensionlessMatrix,Dimensionless>
value
- the valueunit
- the unitpublic final MutableDimensionlessMatrix acos()
acos
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix asin()
asin
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix atan()
atan
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix cbrt()
cbrt
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix cos()
cos
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix cosh()
cosh
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix exp()
exp
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix expm1()
expm1
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix log()
log
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix log10()
log10
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix log1p()
log1p
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix pow(double x)
pow
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
x
- double; the value to use as the powerpublic final MutableDimensionlessMatrix signum()
signum
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix sin()
sin
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix sinh()
sinh
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix sqrt()
sqrt
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix tan()
tan
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix tanh()
tanh
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
public final MutableDimensionlessMatrix inv()
inv
in interface MathFunctionsDimensionless<MutableDimensionlessMatrix>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.