| Package | Description |
|---|---|
| com.io7m.jtensors.bytebuffered.parameterized |
ByteBuffer backed parameterized tensors. |
| com.io7m.jtensors.parameterized |
Parameterized vector and matrix types.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVectorByteBuffered2DType<T>
The type of
PVector2DType values that are also byte buffered. |
interface |
PVectorByteBuffered3DType<T>
The type of
PVector3DType values that are also byte buffered. |
interface |
PVectorByteBuffered4DType<T>
The type of
PVector4DType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorByteBufferedM2D<T>
A two-element vector type with
double elements, packed into a
ByteBuffer. |
class |
PVectorByteBufferedM3D<T>
A three-element vector type with
double elements, packed into a
ByteBuffer. |
class |
PVectorByteBufferedM4D<T>
A four-element vector type with
double elements, packed into a
ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVector2DType<T>
The type of two-element vectors that are both readable and writable, and
have
double elements |
interface |
PVector3DType<T>
The type of three-element vectors that are both readable and writable, and
have
double elements |
interface |
PVector4DType<T>
The type of four-element vectors that are both readable and writable, and
have
double elements |
interface |
PVectorWritable3DType<T>
'Write' interface to three-dimensional vectors with
double
elements. |
interface |
PVectorWritable4DType<T>
'Write' interface to four-dimensional vectors with
double
elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorM2D<T>
A two-dimensional mutable vector type with
double elements. |
class |
PVectorM3D<T>
A three-dimensional mutable vector type with
double elements. |
class |
PVectorM4D<T>
A four-dimensional mutable vector type with
double elements. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.absolute(PVectorReadable2DType<T> v,
V out)
Calculate the absolute values of the elements in vector
v, saving
the result to out. |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.absoluteInPlace(V v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.add(PVectorReadable2DType<T> v0,
PVectorReadable2DType<T> v1,
V out)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to out. |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.addInPlace(V v0,
PVectorReadable2DType<T> v1)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to v0. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.addScaled(PVectorReadable2DType<T> v0,
PVectorReadable2DType<T> v1,
double r,
V 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.addScaledInPlace(V v0,
PVectorReadable2DType<T> 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 <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clamp(PVectorReadable2DType<T> v,
double minimum,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clampByPVector(PVectorReadable2DType<T> v,
PVectorReadable2DType<T> minimum,
PVectorReadable2DType<T> maximum,
V 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampByPVectorInPlace(V v,
PVectorReadable2DType<T> minimum,
PVectorReadable2DType<T> 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampInPlace(V v,
double minimum,
double maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clampMaximum(PVectorReadable2DType<T> v,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clampMaximumByPVector(PVectorReadable2DType<T> v,
PVectorReadable2DType<T> maximum,
V 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampMaximumByPVectorInPlace(V v,
PVectorReadable2DType<T> 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampMaximumInPlace(V v,
double maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clampMinimum(PVectorReadable2DType<T> v,
double minimum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.clampMinimumByPVector(PVectorReadable2DType<T> v,
PVectorReadable2DType<T> minimum,
V 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 <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampMinimumByPVectorInPlace(V v,
PVectorReadable2DType<T> 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,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.clampMinimumInPlace(V v,
double minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,U extends PVectorReadable2DType<T>,V extends PVectorWritable2DType<T>> |
PVectorM2D.copy(U input,
V output)
Copy all elements of the vector
input to the vector output. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.interpolateLinear(PVectorM2D.ContextPVM2D c,
PVectorReadable2DType<T> v0,
PVectorReadable2DType<T> v1,
double alpha,
V r)
Linearly interpolate between
v0 and v1 by the amount alpha, saving the result to r. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.normalize(PVectorReadable2DType<T> v,
V out)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in out. |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.normalizeInPlace(V v)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in v. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.orthoNormalize(PVectorM2D.ContextPVM2D c,
PVectorReadable2DType<T> v0,
V v0_out,
PVectorReadable2DType<T> v1,
V v1_out)
Orthonormalize and return the vectors
v0 and v1 . |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.orthoNormalizeInPlace(PVectorM2D.ContextPVM2D c,
V v0,
V v1)
Orthonormalize and the vectors
v0 and v1. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.projection(PVectorReadable2DType<T> p,
PVectorReadable2DType<T> q,
V r)
Calculate the projection of the vector
p onto the vector q,
saving the result in r. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.scale(PVectorReadable2DType<T> v,
double r,
V out)
Scale the vector
v by the scalar r, saving the result to
out. |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.scaleInPlace(V v,
double r)
Scale the vector
v by the scalar r, saving the result to
v. |
static <T,V extends PVectorWritable2DType<T>> |
PVectorM2D.subtract(PVectorReadable2DType<T> v0,
PVectorReadable2DType<T> v1,
V out)
Subtract the vector
v1 from the vector v0, saving the
result to out. |
static <T,V extends PVectorWritable2DType<T> & PVectorReadable2DType<T>> |
PVectorM2D.subtractInPlace(V v0,
PVectorReadable2DType<T> v1)
Subtract the vector
v1 from the vector v0, saving the
result to v0. |
Copyright © 2017 <code@io7m.com> http://io7m.com