public abstract class ElectricalPotentialVector extends DoubleVector.Rel<ElectricalPotentialUnit>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-09-29 14:14:28 +0200 (Tue, 29 Sep 2015) $, @version $Revision: 73 $, by $Author: pknoppers $, initial
version Sep 5, 2015
| Modifier and Type | Class and Description |
|---|---|
static class |
ElectricalPotentialVector.Dense
Double Dense Relative Immutable ElectricalPotential class.
|
static class |
ElectricalPotentialVector.Sparse
Double Sparse Relative Immutable ElectricalPotential class.
|
DoubleVector.Abs<U extends Unit<U>>, DoubleVector.Rel<U extends Unit<U>>data| Constructor and Description |
|---|
ElectricalPotentialVector(ElectricalPotentialUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
ElectricalPotentialVector |
divide(ElectricalPotentialVector rel)
Divide this Relative value by a Relative value for a vector or matrix.
|
ElectricalPotential |
get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
ElectricalPotentialVector |
minus(ElectricalPotentialVector rel)
Subtract a Relative value from this Relative value for a vector or matrix.
|
abstract MutableElectricalPotentialVector |
mutable()
Create a mutable version of this DoubleVector.
|
ElectricalPotentialVector |
plus(ElectricalPotentialVector rel)
Add a Relative value to this Relative value for a vector or matrix.
|
ElectricalPotentialVector |
times(ElectricalPotentialVector rel)
Multiply a Relative value with this Relative value for a vector or matrix.
|
abstract ElectricalPotentialVector |
toDense()
Create a dense version of this DoubleVector.
|
abstract ElectricalPotentialVector |
toSparse()
Create a sparse version of this DoubleVector.
|
divide, minus, plus, plus, timescardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, initializeSparse, initializeSparseMA, initializeSparseMR, safeGet, safeSet, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativepublic ElectricalPotentialVector(ElectricalPotentialUnit unit)
unit - the unit to usepublic abstract MutableElectricalPotentialVector mutable()
mutable in interface DoubleVectorInterface<ElectricalPotentialUnit>mutable in class DoubleVector.Rel<ElectricalPotentialUnit>public abstract ElectricalPotentialVector toDense()
toDense in interface DoubleVectorInterface<ElectricalPotentialUnit>toDense in class DoubleVector.Rel<ElectricalPotentialUnit>public abstract ElectricalPotentialVector toSparse()
toSparse in interface DoubleVectorInterface<ElectricalPotentialUnit>toSparse in class DoubleVector.Rel<ElectricalPotentialUnit>public final ElectricalPotential get(int index) throws ValueException
get in interface DoubleVectorInterface<ElectricalPotentialUnit>get in class DoubleVector.Rel<ElectricalPotentialUnit>index - int; index of the value to retrieveValueException - when index out of range (index < 0 or index >= size())public final ElectricalPotentialVector plus(ElectricalPotentialVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final ElectricalPotentialVector minus(ElectricalPotentialVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final ElectricalPotentialVector times(ElectricalPotentialVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizepublic final ElectricalPotentialVector divide(ElectricalPotentialVector rel) throws ValueException
rel - the right operandValueException - in case this vector or matrix and the operand have a different sizeCopyright © 2015 Delft University of Technology. All rights reserved.