Structure1D
A structure that is guaranteed to be one-dimensional
Inheritors
Functions
Represent a StructureND as Structure1D. Throw error in case of dimension mismatch.
Represents a StructureND as Structure2D. Throws runtime error in case of dimension mismatch.
Creates an n × 1 VirtualMatrix, where n is the size of the given buffer.
Divides an ND structure by an element of it.
Division of this element by scalar.
Division of two elements.
Resize original buffer to a given range using given range, filling additional segments with defaultValue. Range left border could be negative to designate adding new blank segment to the beginning of the buffer
Feature is some additional structure information that allows to access it special properties or hints. If the feature is not present, null
is returned.
Return a new array filled with buffer indices. Indices order is defined by sorting associated buffer value. This feature allows sorting buffer values without reordering its content.
Maps elements from one structure to another one by applying transform to them.
Maps elements from one structure to another one by applying transform to them.
Maps elements from one structure to another one by applying transform to them.
Maps elements from one structure to another one by applying transform to them alongside with their indices.
Maps elements from one structure to another one by applying transform to them alongside with their indices.
Maps elements from one structure to another one by applying transform to them alongside with their indices.
Create a new buffer from this one with the given mapping (indexed) function. Provided bufferFactory is used to construct the new buffer.
Create a new buffer from this one with the given mapping function. Provided bufferFactory is used to construct the new buffer.
Vector subtraction
Subtracts an element from ND structure of it.
Subtraction of two elements.
Vector sum
Adds an ND structure to an element of it.
Addition of two elements.
Checks that the Buffer is sorted (ascending) and throws IllegalArgumentException if it is not.
Create a zero-copy virtual buffer that contains the same elements but in descending order
Multiplies a vector by its element.
Multiplication of this element by a scalar.
Multiplies this element by scalar.
Multiplies an ND structure by an element of it.
Returns a new DoubleArray containing all the elements of this Buffer.
Represent this buffer as DoubleBuffer. Does not guarantee that changes in the original buffer are reflected on this buffer.
Returns a new FloatArray containing all the elements of this Buffer.
Returns a new MutableList filled with all elements of this buffer. NOTE: this method uses a protective copy, so it should not be used in performance-critical code.
Returns a new ShortArray containing all the elements of this Buffer.
Returns a new Array containing all elements of this buffer. NOTE: this method uses a protective copy, so it should not be used in performance-critical code.
The negation of this element.
Returns this value.