| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Field and Description |
|---|---|
static VectorI2L |
VectorI2L.ZERO
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static VectorI2L |
VectorI2L.absolute(VectorReadable2LType v)
Calculate the absolute values of the elements in vector
v. |
static VectorI2L |
VectorI2L.add(VectorReadable2LType v0,
VectorReadable2LType v1)
Calculate the element-wise sum of the vectors
v0 and v1. |
static VectorI2L |
VectorI2L.addScaled(VectorReadable2LType v0,
VectorReadable2LType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r. |
static VectorI2L |
VectorI2L.clamp(VectorReadable2LType v,
long minimum,
long maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static VectorI2L |
VectorI2L.clampByVector(VectorReadable2LType v,
VectorReadable2LType minimum,
VectorReadable2LType maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum and maximum. |
static VectorI2L |
VectorI2L.clampMaximum(VectorReadable2LType v,
long maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static VectorI2L |
VectorI2L.clampMaximumByVector(VectorReadable2LType v,
VectorReadable2LType maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in maximum. |
static VectorI2L |
VectorI2L.clampMinimum(VectorReadable2LType v,
long minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static VectorI2L |
VectorI2L.clampMinimumByVector(VectorReadable2LType v,
VectorReadable2LType minimum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum. |
static VectorI2L |
VectorI2L.interpolateLinear(VectorReadable2LType v0,
VectorReadable2LType v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static VectorI2L |
VectorI2L.projection(VectorReadable2LType p,
VectorReadable2LType q)
Calculate the projection of the vector
p onto the vector q. |
static VectorI2L |
VectorI2L.scale(VectorReadable2LType v,
double r)
Scale the vector
v by the scalar r. |
static VectorI2L |
VectorI2L.subtract(VectorReadable2LType v0,
VectorReadable2LType v1)
Subtract the vector
v1 from the vector v0. |
Copyright © 2016 <code@io7m.com> http://io7m.com