| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Class and Description |
|---|---|
class |
VectorI4L
A four-dimensional immutable vector type with integer elements.
|
class |
VectorM4L
A four-dimensional mutable vector type with integer elements.
|
| Modifier and Type | Method and Description |
|---|---|
static VectorI4L |
VectorI4L.absolute(VectorReadable4LType v)
Calculate the absolute values of the elements in vector
v. |
static VectorM4L |
VectorM4L.absolute(VectorReadable4LType v,
VectorM4L out)
Calculate the absolute values of the elements in vector
v,
saving the result to out. |
static VectorI4L |
VectorI4L.add(VectorReadable4LType v0,
VectorReadable4LType v1)
Calculate the element-wise sum of the vectors
v0 and
v1. |
static VectorM4L |
VectorM4L.add(VectorReadable4LType v0,
VectorReadable4LType v1,
VectorM4L out)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to out. |
static VectorM4L |
VectorM4L.addInPlace(VectorM4L v0,
VectorReadable4LType v1)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to v0. |
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 VectorM4L |
VectorM4L.addScaled(VectorReadable4LType v0,
VectorReadable4LType v1,
double r,
VectorM4L out)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to out. |
static VectorM4L |
VectorM4L.addScaledInPlace(VectorM4L v0,
VectorReadable4LType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to v0. |
static VectorI4L |
VectorI4L.clamp(VectorReadable4LType v,
long minimum,
long maximum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4L |
VectorM4L.clamp(VectorReadable4LType v,
long minimum,
long maximum,
VectorM4L out)
Clamp the elements of the vector
v to the range
[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 VectorM4L |
VectorM4L.clampByVector(VectorReadable4LType v,
VectorReadable4LType minimum,
VectorReadable4LType maximum,
VectorM4L out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to out. |
static VectorM4L |
VectorM4L.clampByVectorInPlace(VectorM4L 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, saving the result to v. |
static VectorI4L |
VectorI4L.clampMaximum(VectorReadable4LType v,
long maximum)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4L |
VectorM4L.clampMaximum(VectorReadable4LType v,
long maximum,
VectorM4L out)
Clamp the elements of the vector
v to the range
[-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 VectorM4L |
VectorM4L.clampMaximumByVector(VectorReadable4LType v,
VectorReadable4LType maximum,
VectorM4L out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to out. |
static VectorM4L |
VectorM4L.clampMaximumByVectorInPlace(VectorM4L v,
VectorReadable4LType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to v. |
static VectorI4L |
VectorI4L.clampMinimum(VectorReadable4LType v,
long minimum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4L |
VectorM4L.clampMinimum(VectorReadable4LType v,
long minimum,
VectorM4L out)
Clamp the elements of the vector
v to the range
[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 VectorM4L |
VectorM4L.clampMinimumByVector(VectorReadable4LType v,
VectorReadable4LType minimum,
VectorM4L out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to out. |
static VectorM4L |
VectorM4L.clampMinimumByVectorInPlace(VectorM4L v,
VectorReadable4LType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to v. |
static <T extends VectorWritable4LType> |
VectorM4L.copy(VectorReadable4LType input,
T output)
Copy all elements of the vector
input to the vector
output. |
void |
VectorWritable4LType.copyFrom4L(VectorReadable4LType in_v)
Set the current vector to the contents of the input vector.
|
void |
VectorM4L.copyFrom4L(VectorReadable4LType in_v) |
static long |
VectorM4L.distance(VectorReadable4LType v0,
VectorReadable4LType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static long |
VectorI4L.distance(VectorReadable4LType v0,
VectorReadable4LType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static long |
VectorM4L.dotProduct(VectorReadable4LType v0,
VectorReadable4LType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static long |
VectorI4L.dotProduct(VectorReadable4LType v0,
VectorReadable4LType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static VectorI4L |
VectorI4L.interpolateLinear(VectorReadable4LType v0,
VectorReadable4LType v1,
double alpha)
Linearly interpolate between
v0 and v1 by the
amount alpha. |
static VectorM4L |
VectorM4L.interpolateLinear(VectorReadable4LType v0,
VectorReadable4LType v1,
double alpha,
VectorM4L r)
Linearly interpolate between
v0 and v1 by the
amount alpha, saving the result to r. |
static long |
VectorM4L.magnitude(VectorReadable4LType v)
Calculate the magnitude of the vector
v. |
static long |
VectorI4L.magnitude(VectorReadable4LType v)
Calculate the magnitude of the vector
v. |
static long |
VectorM4L.magnitudeSquared(VectorReadable4LType v)
Calculate the squared magnitude of the vector
v. |
static long |
VectorI4L.magnitudeSquared(VectorReadable4LType v)
Calculate the squared magnitude of the vector
v. |
static VectorI4L |
VectorI4L.projection(VectorReadable4LType p,
VectorReadable4LType q)
Calculate the projection of the vector
p onto the vector
q. |
static VectorM4L |
VectorM4L.projection(VectorReadable4LType p,
VectorReadable4LType q,
VectorM4L r)
Calculate the projection of the vector
p onto the vector
q, saving the result in r. |
static VectorI4L |
VectorI4L.scale(VectorReadable4LType v,
double r)
Scale the vector
v by the scalar r. |
static VectorM4L |
VectorM4L.scale(VectorReadable4LType v,
double r,
VectorM4L out)
Scale the vector
v by the scalar r, saving the
result to out. |
static VectorI4L |
VectorI4L.subtract(VectorReadable4LType v0,
VectorReadable4LType v1)
Subtract the vector
v1 from the vector v0. |
static VectorM4L |
VectorM4L.subtract(VectorReadable4LType v0,
VectorReadable4LType v1,
VectorM4L out)
Subtract the vector
v1 from the vector v0,
saving the result to out. |
static VectorM4L |
VectorM4L.subtractInPlace(VectorM4L v0,
VectorReadable4LType v1)
Subtract the vector
v1 from the vector v0,
saving the result to v0. |
| Constructor and Description |
|---|
VectorI4L(VectorReadable4LType in_v)
Construct a vector initialized with the values given in the vector
in_v. |
VectorM4L(VectorReadable4LType in_v)
Construct a vector initialized with the values given in the vector
in_v. |
Copyright © 2014 <code@io7m.com> http://io7m.com