Uses of Interface
jdk.incubator.vector.VectorSpecies
-
Uses of VectorSpecies in jdk.incubator.vector
Modifier and TypeFieldDescriptionstatic final VectorSpecies<Byte>
ByteVector.SPECIES_128
Species representingByteVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_128
Species representingDoubleVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Float>
FloatVector.SPECIES_128
Species representingFloatVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Integer>
IntVector.SPECIES_128
Species representingIntVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Long>
LongVector.SPECIES_128
Species representingLongVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Short>
ShortVector.SPECIES_128
Species representingShortVector
s ofVectorShape.S_128_BIT
.static final VectorSpecies<Byte>
ByteVector.SPECIES_256
Species representingByteVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_256
Species representingDoubleVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Float>
FloatVector.SPECIES_256
Species representingFloatVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Integer>
IntVector.SPECIES_256
Species representingIntVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Long>
LongVector.SPECIES_256
Species representingLongVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Short>
ShortVector.SPECIES_256
Species representingShortVector
s ofVectorShape.S_256_BIT
.static final VectorSpecies<Byte>
ByteVector.SPECIES_512
Species representingByteVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_512
Species representingDoubleVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Float>
FloatVector.SPECIES_512
Species representingFloatVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Integer>
IntVector.SPECIES_512
Species representingIntVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Long>
LongVector.SPECIES_512
Species representingLongVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Short>
ShortVector.SPECIES_512
Species representingShortVector
s ofVectorShape.S_512_BIT
.static final VectorSpecies<Byte>
ByteVector.SPECIES_64
Species representingByteVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_64
Species representingDoubleVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Float>
FloatVector.SPECIES_64
Species representingFloatVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Integer>
IntVector.SPECIES_64
Species representingIntVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Long>
LongVector.SPECIES_64
Species representingLongVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Short>
ShortVector.SPECIES_64
Species representingShortVector
s ofVectorShape.S_64_BIT
.static final VectorSpecies<Byte>
ByteVector.SPECIES_MAX
Species representingByteVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Double>
DoubleVector.SPECIES_MAX
Species representingDoubleVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Float>
FloatVector.SPECIES_MAX
Species representingFloatVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Integer>
IntVector.SPECIES_MAX
Species representingIntVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Long>
LongVector.SPECIES_MAX
Species representingLongVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Short>
ShortVector.SPECIES_MAX
Species representingShortVector
s ofVectorShape.S_Max_BIT
.static final VectorSpecies<Byte>
ByteVector.SPECIES_PREFERRED
Preferred species forByteVector
s.static final VectorSpecies<Double>
DoubleVector.SPECIES_PREFERRED
Preferred species forDoubleVector
s.static final VectorSpecies<Float>
FloatVector.SPECIES_PREFERRED
Preferred species forFloatVector
s.static final VectorSpecies<Integer>
IntVector.SPECIES_PREFERRED
Preferred species forIntVector
s.static final VectorSpecies<Long>
LongVector.SPECIES_PREFERRED
Preferred species forLongVector
s.static final VectorSpecies<Short>
ShortVector.SPECIES_PREFERRED
Preferred species forShortVector
s.Modifier and TypeMethodDescription<F> VectorSpecies<F>
Checks that this species has the given element type, and returns this species unchanged.static <E> VectorSpecies<E>
VectorSpecies.of
(Class<E> elementType, VectorShape shape) Finds a species for an element type and shape.static <E> VectorSpecies<E>
VectorSpecies.ofLargestShape
(Class<E> etype) Finds the largest vector species of the given element type.static <E> VectorSpecies<E>
VectorSpecies.ofPreferred
(Class<E> etype) Finds the species preferred by the current platform for a given vector element type.abstract VectorSpecies<E>
Vector.species()
Returns the species of this vector.abstract VectorSpecies<E>
VectorMask.vectorSpecies()
Returns the vector species to which this mask applies.abstract VectorSpecies<E>
VectorShuffle.vectorSpecies()
Returns the species of this shuffle.<E> VectorSpecies<E>
Finds a vector species with the given element type and the current shape.<F> VectorSpecies<F>
Finds a species with the given element type and the same shape as this species.VectorSpecies.withShape
(VectorShape newShape) Finds a species with the given shape and the same elementType as this species.Modifier and TypeMethodDescriptionstatic ByteVector
ByteVector.broadcast
(VectorSpecies<Byte> species, byte e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static ByteVector
ByteVector.broadcast
(VectorSpecies<Byte> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static DoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, double e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static DoubleVector
DoubleVector.broadcast
(VectorSpecies<Double> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static FloatVector
FloatVector.broadcast
(VectorSpecies<Float> species, float e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static FloatVector
FloatVector.broadcast
(VectorSpecies<Float> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static IntVector
IntVector.broadcast
(VectorSpecies<Integer> species, int e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static IntVector
IntVector.broadcast
(VectorSpecies<Integer> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static LongVector
LongVector.broadcast
(VectorSpecies<Long> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static ShortVector
ShortVector.broadcast
(VectorSpecies<Short> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.static ShortVector
ShortVector.broadcast
(VectorSpecies<Short> species, short e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.abstract <F> VectorMask<F>
VectorMask.cast
(VectorSpecies<F> species) Converts this mask to a mask of the given species of element typeF
.abstract <F> VectorShuffle<F>
VectorShuffle.cast
(VectorSpecies<F> species) Converts this shuffle to a shuffle of the given species of element typeF
.abstract <F> Vector<F>
Vector.castShape
(VectorSpecies<F> rsp, int part) Convenience method for converting a vector from one lane type to another, reshaping as needed when lane sizes change.abstract <F> Vector<F>
Vector.check
(VectorSpecies<F> species) Checks that this vector has the given species, and returns this vector unchanged.abstract <F> VectorMask<F>
VectorMask.check
(VectorSpecies<F> species) Checks that this mask has the given species, and returns this mask unchanged.abstract <F> VectorShuffle<F>
VectorShuffle.check
(VectorSpecies<F> species) Checks that this shuffle has the given species, and returns this shuffle unchanged.abstract <F> Vector<F>
Vector.convertShape
(VectorOperators.Conversion<E, F> conv, VectorSpecies<F> rsp, int part) Converts this vector to a vector of the given species, shape and element type, converting lane values from the currentETYPE
to a new lane type (calledFTYPE
here) according to the indicated conversion.static ByteVector
ByteVector.fromArray
(VectorSpecies<Byte> species, byte[] a, int offset) Loads a vector from an array of typebyte[]
starting at an offset.static ByteVector
ByteVector.fromArray
(VectorSpecies<Byte> species, byte[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typebyte[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ByteVector
ByteVector.fromArray
(VectorSpecies<Byte> species, byte[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Byte> m) Gathers a new vector composed of elements from an array of typebyte[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ByteVector
ByteVector.fromArray
(VectorSpecies<Byte> species, byte[] a, int offset, VectorMask<Byte> m) Loads a vector from an array of typebyte[]
starting at an offset and using a mask.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset) Loads a vector from an array of typedouble[]
starting at an offset.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typedouble[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) Gathers a new vector composed of elements from an array of typedouble[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static DoubleVector
DoubleVector.fromArray
(VectorSpecies<Double> species, double[] a, int offset, VectorMask<Double> m) Loads a vector from an array of typedouble[]
starting at an offset and using a mask.static FloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset) Loads a vector from an array of typefloat[]
starting at an offset.static FloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typefloat[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static FloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float> m) Gathers a new vector composed of elements from an array of typefloat[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static FloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, VectorMask<Float> m) Loads a vector from an array of typefloat[]
starting at an offset and using a mask.static IntVector
IntVector.fromArray
(VectorSpecies<Integer> species, int[] a, int offset) Loads a vector from an array of typeint[]
starting at an offset.static IntVector
IntVector.fromArray
(VectorSpecies<Integer> species, int[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typeint[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static IntVector
IntVector.fromArray
(VectorSpecies<Integer> species, int[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Integer> m) Gathers a new vector composed of elements from an array of typeint[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static IntVector
IntVector.fromArray
(VectorSpecies<Integer> species, int[] a, int offset, VectorMask<Integer> m) Loads a vector from an array of typeint[]
starting at an offset and using a mask.static LongVector
LongVector.fromArray
(VectorSpecies<Long> species, long[] a, int offset) Loads a vector from an array of typelong[]
starting at an offset.static LongVector
LongVector.fromArray
(VectorSpecies<Long> species, long[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typelong[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static LongVector
LongVector.fromArray
(VectorSpecies<Long> species, long[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Long> m) Gathers a new vector composed of elements from an array of typelong[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static LongVector
LongVector.fromArray
(VectorSpecies<Long> species, long[] a, int offset, VectorMask<Long> m) Loads a vector from an array of typelong[]
starting at an offset and using a mask.static ShortVector
ShortVector.fromArray
(VectorSpecies<Short> species, short[] a, int offset) Loads a vector from an array of typeshort[]
starting at an offset.static ShortVector
ShortVector.fromArray
(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typeshort[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromArray
(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m) Gathers a new vector composed of elements from an array of typeshort[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromArray
(VectorSpecies<Short> species, short[] a, int offset, VectorMask<Short> m) Loads a vector from an array of typeshort[]
starting at an offset and using a mask.static <E> VectorMask<E>
VectorMask.fromArray
(VectorSpecies<E> species, boolean[] bits, int offset) Loads a mask from aboolean
array starting at an offset.static <E> VectorShuffle<E>
VectorShuffle.fromArray
(VectorSpecies<E> species, int[] sourceIndexes, int offset) Creates a shuffle for a given species from anint
array starting at an offset.static ByteVector
ByteVector.fromBooleanArray
(VectorSpecies<Byte> species, boolean[] a, int offset) Loads a vector from an array of typeboolean[]
starting at an offset.static ByteVector
ByteVector.fromBooleanArray
(VectorSpecies<Byte> species, boolean[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typeboolean[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ByteVector
ByteVector.fromBooleanArray
(VectorSpecies<Byte> species, boolean[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Byte> m) Gathers a new vector composed of elements from an array of typeboolean[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ByteVector
ByteVector.fromBooleanArray
(VectorSpecies<Byte> species, boolean[] a, int offset, VectorMask<Byte> m) Loads a vector from an array of typeboolean[]
starting at an offset and using a mask.static ByteVector
ByteVector.fromByteArray
(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static ByteVector
ByteVector.fromByteArray
(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m) Loads a vector from a byte array starting at an offset and using a mask.static DoubleVector
DoubleVector.fromByteArray
(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static DoubleVector
DoubleVector.fromByteArray
(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte array starting at an offset and using a mask.static FloatVector
FloatVector.fromByteArray
(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static FloatVector
FloatVector.fromByteArray
(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo, VectorMask<Float> m) Loads a vector from a byte array starting at an offset and using a mask.static IntVector
IntVector.fromByteArray
(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static IntVector
IntVector.fromByteArray
(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m) Loads a vector from a byte array starting at an offset and using a mask.static LongVector
LongVector.fromByteArray
(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static LongVector
LongVector.fromByteArray
(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo, VectorMask<Long> m) Loads a vector from a byte array starting at an offset and using a mask.static ShortVector
ShortVector.fromByteArray
(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static ShortVector
ShortVector.fromByteArray
(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m) Loads a vector from a byte array starting at an offset and using a mask.static ByteVector
ByteVector.fromByteBuffer
(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static ByteVector
ByteVector.fromByteBuffer
(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static DoubleVector
DoubleVector.fromByteBuffer
(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static DoubleVector
DoubleVector.fromByteBuffer
(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static FloatVector
FloatVector.fromByteBuffer
(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static FloatVector
FloatVector.fromByteBuffer
(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static IntVector
IntVector.fromByteBuffer
(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static IntVector
IntVector.fromByteBuffer
(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static LongVector
LongVector.fromByteBuffer
(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static LongVector
LongVector.fromByteBuffer
(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static ShortVector
ShortVector.fromByteBuffer
(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static ShortVector
ShortVector.fromByteBuffer
(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static ShortVector
ShortVector.fromCharArray
(VectorSpecies<Short> species, char[] a, int offset) Loads a vector from an array of typechar[]
starting at an offset.static ShortVector
ShortVector.fromCharArray
(VectorSpecies<Short> species, char[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typechar[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromCharArray
(VectorSpecies<Short> species, char[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m) Gathers a new vector composed of elements from an array of typechar[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromCharArray
(VectorSpecies<Short> species, char[] a, int offset, VectorMask<Short> m) Loads a vector from an array of typechar[]
starting at an offset and using a mask.static <E> VectorMask<E>
VectorMask.fromLong
(VectorSpecies<E> species, long bits) Returns a mask where each lane is set or unset according to the bits in the given bitmask, starting with the least significant bit, and continuing up to the sign bit.static <E> VectorShuffle<E>
VectorShuffle.fromOp
(VectorSpecies<E> species, IntUnaryOperator fn) Creates a shuffle for a given species from the successive values of an operator applied to the range[0..VLENGTH-1]
.static <E> VectorMask<E>
VectorMask.fromValues
(VectorSpecies<E> species, boolean... bits) Returns a mask where each lane is set or unset according to givenboolean
values.static <E> VectorShuffle<E>
VectorShuffle.fromValues
(VectorSpecies<E> species, int... sourceIndexes) Creates a shuffle for a given species from a series of source indexes.static <E> VectorShuffle<E>
VectorShuffle.iota
(VectorSpecies<E> species, int start, int step, boolean wrap) Creates a shuffle using source indexes set to sequential values starting fromstart
and stepping by the givenstep
.static <E> VectorShuffle<E>
VectorShuffle.makeUnzip
(VectorSpecies<E> species, int part) Creates a shuffle which will unzip the concatenation of two vectors, alternatively storing input lanes into one or the other output vector.static <E> VectorShuffle<E>
VectorShuffle.makeZip
(VectorSpecies<E> species, int part) Creates a shuffle which will zip together two vectors, alternatively selecting lanes from one or the other.int
VectorSpecies.partLimit
(VectorSpecies<?> outputSpecies, boolean lanewise) Given this species and a second one, reports the net expansion or contraction of a (potentially) resizing reinterpretation cast orlane-wise conversion
from this species to the second.abstract <F> Vector<F>
Vector.reinterpretShape
(VectorSpecies<F> species, int part) Transforms this vector to a vector of the given species of element typeF
, reinterpreting the bytes of this vector without performing any value conversions.static ByteVector
ByteVector.zero
(VectorSpecies<Byte> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.static DoubleVector
DoubleVector.zero
(VectorSpecies<Double> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.static FloatVector
FloatVector.zero
(VectorSpecies<Float> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.static IntVector
IntVector.zero
(VectorSpecies<Integer> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.static LongVector
LongVector.zero
(VectorSpecies<Long> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.static ShortVector
ShortVector.zero
(VectorSpecies<Short> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.