Package | Description |
---|---|
org.opentrafficsim.core.value.vfloat.vector |
Float Vector storage and calculations with units, absolute/relative, sparse/dense.
|
Modifier and Type | Method and Description |
---|---|
FloatVector.Rel.Sparse<U> |
FloatVector.Rel.Sparse.copy()
Create a deep copy of this Value.
|
FloatVector.Rel.Sparse<U> |
MutableFloatVector.Rel.Sparse.immutable()
Make (immutable) FloatVector equivalent for any type of MutableFloatVector.
|
Modifier and Type | Method and Description |
---|---|
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.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.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.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>.
|
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>.
|
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.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>.
|
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>.
|
static <U extends Unit<U>> |
FloatVector.sparseToDense(FloatVector.Rel.Sparse<U> in)
Create a Dense version of a Sparse FloatVector.
|
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 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>.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.