# Uses of Class
jdk.incubator.vector.FloatVector

Packages that use FloatVector
Package
Description
jdk.incubator.vector
Incubating Feature. Will be removed in a future release.

## Uses of FloatVector in jdk.incubator.vector

Methods in jdk.incubator.vector that return FloatVector
Modifier and Type
Method
Description
`final FloatVector`
FloatVector.`abs()`
Returns the absolute value of this vector.
`final FloatVector`
FloatVector.`add(float e)`
Adds this vector to the broadcast of an input scalar.
`final FloatVector`
FloatVector.`add(float e, VectorMask<Float> m)`
Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.
`final FloatVector`
FloatVector.`add(Vector<Float> v)`
Adds this vector to a second input vector.
`final FloatVector`
FloatVector.`add(Vector<Float> v, VectorMask<Float> m)`
Adds this vector to a second input vector, selecting lanes under the control of a mask.
`abstract FloatVector`
FloatVector.`addIndex(int scale)`
Adds the lanes of this vector to their corresponding lane numbers, scaled by a given constant.
`final FloatVector`
FloatVector.`blend(float e, VectorMask<Float> m)`
Replaces selected lanes of this vector with a scalar value under the control of a mask.
`final FloatVector`
FloatVector.`blend(long e, VectorMask<Float> m)`
Replaces selected lanes of this vector with a scalar value under the control of a mask.
`abstract FloatVector`
FloatVector.`blend(Vector<Float> v, VectorMask<Float> m)`
Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.
`abstract FloatVector`
FloatVector.`broadcast(float e)`
Returns a vector of the same species as this one where all lane elements are set to the primitive value `e`.
`abstract FloatVector`
FloatVector.`broadcast(long e)`
Returns a vector of the same species as this one where all lane elements are set to the primitive value `e`.
`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 value `e`.
`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 value `e`.
`abstract FloatVector`
FloatVector.`compress(VectorMask<Float> m)`
Compresses the lane elements of this vector selecting lanes under the control of a specific mask.
`final FloatVector`
FloatVector.`div(float e)`
Divides this vector by the broadcast of an input scalar.
`final FloatVector`
FloatVector.`div(float e, VectorMask<Float> m)`
Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.
`final FloatVector`
FloatVector.`div(Vector<Float> v)`
Divides this vector by a second input vector.
`final FloatVector`
FloatVector.`div(Vector<Float> v, VectorMask<Float> m)`
Divides this vector by a second input vector under the control of a mask.
`abstract FloatVector`
FloatVector.`expand(VectorMask<Float> m)`
Expands the lane elements of this vector under the control of a specific mask.
`final FloatVector`
FloatVector.`fma(float b, float c)`
Multiplies this vector by a scalar multiplier, and sums the result with a scalar addend.
`final FloatVector`
FloatVector.`fma(Vector<Float> b, Vector<Float> c)`
Multiplies this vector by a second input vector, and sums the result with a third.
`static FloatVector`
FloatVector.`fromArray(VectorSpecies<Float> species, float[] a, int offset)`
Loads a vector from an array of type `float[]` 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 type `float[]`, using indexes obtained by adding a fixed `offset` 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 type `float[]`, under the control of a mask, and using indexes obtained by adding a fixed `offset` 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 type `float[]` starting at an offset and using a mask.
`static FloatVector`
FloatVector.`fromMemorySegment(VectorSpecies<Float> species, MemorySegment ms, long offset, ByteOrder bo)`
Loads a vector from a memory segment starting at an offset into the memory segment.
`static FloatVector`
FloatVector.`fromMemorySegment(VectorSpecies<Float> species, MemorySegment ms, long offset, ByteOrder bo, VectorMask<Float> m)`
Loads a vector from a memory segment starting at an offset into the memory segment and using a mask.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, float e)`
Combines the lane values of this vector with the value of a broadcast scalar.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, float e, VectorMask<Float> m)`
Combines the lane values of this vector with the value of a broadcast scalar, with selection of lane elements controlled by a mask.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, long e)`
Combines the lane values of this vector with the value of a broadcast scalar.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, long e, VectorMask<Float> m)`
Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, Vector<Float> v)`
Combines the corresponding lane values of this vector with those of a second input vector.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Binary op, Vector<Float> v, VectorMask<Float> m)`
Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, float e1, float e2)`
Combines the lane values of this vector with the values of two broadcast scalars.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, float e1, float e2, VectorMask<Float> m)`
Combines the lane values of this vector with the values of two broadcast scalars, with selection of lane elements controlled by a mask.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, float e1, Vector<Float> v2)`
Combines the lane values of this vector with the values of another vector and a broadcast scalar.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, float e1, Vector<Float> v2, VectorMask<Float> m)`
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, Vector<Float> v1, float e2)`
Combines the lane values of this vector with the values of another vector and a broadcast scalar.
`final FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, Vector<Float> v1, float e2, VectorMask<Float> m)`
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, Vector<Float> v1, Vector<Float> v2)`
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Ternary op, Vector<Float> v1, Vector<Float> v2, VectorMask<Float> m)`
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Unary op)`
Operates on the lane values of this vector.
`abstract FloatVector`
FloatVector.`lanewise(VectorOperators.Unary op, VectorMask<Float> m)`
Operates on the lane values of this vector, with selection of lane elements controlled by a mask.
`final FloatVector`
FloatVector.`max(float e)`
Computes the larger of this vector and the broadcast of an input scalar.
`final FloatVector`
FloatVector.`max(Vector<Float> v)`
Computes the larger of this vector and a second input vector.
`final FloatVector`
FloatVector.`min(float e)`
Computes the smaller of this vector and the broadcast of an input scalar.
`final FloatVector`
FloatVector.`min(Vector<Float> v)`
Computes the smaller of this vector and a second input vector.
`final FloatVector`
FloatVector.`mul(float e)`
Multiplies this vector by the broadcast of an input scalar.
`final FloatVector`
FloatVector.`mul(float e, VectorMask<Float> m)`
Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.
`final FloatVector`
FloatVector.`mul(Vector<Float> v)`
Multiplies this vector by a second input vector.
`final FloatVector`
FloatVector.`mul(Vector<Float> v, VectorMask<Float> m)`
Multiplies this vector by a second input vector under the control of a mask.
`final FloatVector`
FloatVector.`neg()`
Negates this vector.
`final FloatVector`
FloatVector.`pow(float b)`
Raises this vector to a scalar power.
`final FloatVector`
FloatVector.`pow(Vector<Float> b)`
Raises this vector to the power of a second input vector.
`abstract FloatVector`
FloatVector.`rearrange(VectorShuffle<Float> shuffle)`
Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.
`abstract FloatVector`
FloatVector.`rearrange(VectorShuffle<Float> s, Vector<Float> v)`
Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.
`abstract FloatVector`
FloatVector.`rearrange(VectorShuffle<Float> s, VectorMask<Float> m)`
Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.
`abstract FloatVector`
Vector.`reinterpretAsFloats()`
Reinterprets this vector as a vector of the same shape and contents but a lane type of `float`, where the lanes are assembled from successive bytes according to little-endian order.
`abstract FloatVector`
FloatVector.`selectFrom(Vector<Float> v)`
Using index values stored in the lanes of this vector, assemble values stored in second vector `v`.
`abstract FloatVector`
FloatVector.`selectFrom(Vector<Float> v1, Vector<Float> v2)`
Using values stored in the lanes of this vector, assemble values stored in the second vector `v1` and third vector `v2`.
`abstract FloatVector`
FloatVector.`selectFrom(Vector<Float> s, VectorMask<Float> m)`
Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.
`abstract FloatVector`
FloatVector.`slice(int origin)`
Slices a segment of adjacent lanes, starting at a given `origin` lane in the current vector.
`abstract FloatVector`
FloatVector.`slice(int origin, Vector<Float> v1)`
Slices a segment of adjacent lanes, starting at a given `origin` lane in the current vector, and continuing (as needed) into an immediately following vector.
`final FloatVector`
FloatVector.`slice(int origin, Vector<Float> w, VectorMask<Float> m)`
Slices a segment of adjacent lanes under the control of a mask, starting at a given `origin` lane in the current vector, and continuing (as needed) into an immediately following vector.
`final FloatVector`
FloatVector.`sqrt()`
Computes the square root of this vector.
`final FloatVector`
FloatVector.`sub(float e)`
Subtracts an input scalar from this vector.
`final FloatVector`
FloatVector.`sub(float e, VectorMask<Float> m)`
Subtracts an input scalar from this vector under the control of a mask.
`final FloatVector`
FloatVector.`sub(Vector<Float> v)`
Subtracts a second input vector from this vector.
`final FloatVector`
FloatVector.`sub(Vector<Float> v, VectorMask<Float> m)`
Subtracts a second input vector from this vector under the control of a mask.
`abstract FloatVector`
FloatVector.`unslice(int origin)`
Reverses a slice(), inserting the current vector as a slice within a "background" input of zero lane values.
`abstract FloatVector`
FloatVector.`unslice(int origin, Vector<Float> w, int part)`
Reverses a slice(), inserting the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequent `slice()` operation.
`abstract FloatVector`
FloatVector.`unslice(int origin, Vector<Float> w, int part, VectorMask<Float> m)`
Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequent `slice()` operation.
`final FloatVector`
FloatVector.`viewAsFloatingLanes()`
Views this vector as a vector of the same shape, length, and contents, but a lane type that is a floating-point type.
`final FloatVector`
IntVector.`viewAsFloatingLanes()`
Views this vector as a vector of the same shape, length, and contents, but a lane type that is a floating-point type.
`abstract FloatVector`
FloatVector.`withLane(int i, float e)`
Replaces the lane element of this vector at lane index `i` with value `e`.
`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.