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