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