Uses of Class
jdk.incubator.vector.Float16
Packages that use Float16
-
Uses of Float16 in jdk.incubator.vector
Subclasses with type arguments of type Float16 in jdk.incubator.vectorModifier and TypeClassDescriptionclassA specializedVectorrepresenting an ordered immutable sequence of 16-bit data values in the IEEE 754 binary16 format.Classes in jdk.incubator.vector that implement interfaces with type arguments of type Float16Modifier and TypeClassDescriptionfinal classTheFloat16is a class holding 16-bit data in IEEE 754 binary16 format.Fields in jdk.incubator.vector declared as Float16Modifier and TypeFieldDescriptionstatic final Float16Float16.MAX_VALUEA constant holding the largest positive finite value of typeFloat16, (2-2-10)·215, numerically equal to 65504.0.static final Float16Float16.MIN_NORMALA constant holding the smallest positive normal value of typeFloat16, 2-14.static final Float16Float16.MIN_VALUEA constant holding the smallest positive nonzero value of typeFloat16, 2-24.static final Float16Float16.NaNA constant holding a Not-a-Number (NaN) value of typeFloat16.static final Float16Float16.NEGATIVE_INFINITYA constant holding the negative infinity of typeFloat16.static final Float16Float16.POSITIVE_INFINITYA constant holding the positive infinity of typeFloat16.Fields in jdk.incubator.vector with type parameters of type Float16Modifier and TypeFieldDescriptionstatic final VectorOperators.Conversion<Byte, Float16> VectorOperators.B2HConvertbyteValto(Float16)byteVal.static final VectorOperators.Conversion<Double, Float16> VectorOperators.D2HConvertdoubleValto(Float16)doubleVal.static final VectorOperators.Conversion<Float, Float16> VectorOperators.F2HConvertfloatValto(Float16)floatVal.static final VectorOperators.Conversion<Float16, Byte> VectorOperators.H2BConvertFloat16Valto(byte)Float16Val.static final VectorOperators.Conversion<Float16, Double> VectorOperators.H2DConvertFloat16Valto(double)Float16Val.static final VectorOperators.Conversion<Float16, Float> VectorOperators.H2FConvertFloat16Valto(float)Float16Val.static final VectorOperators.Conversion<Float16, Integer> VectorOperators.H2IConvertFloat16Valto(int)Float16Val.static final VectorOperators.Conversion<Float16, Long> VectorOperators.H2LConvertFloat16Valto(long)Float16Val.static final VectorOperators.Conversion<Float16, Short> VectorOperators.H2SConvertFloat16Valto(short)Float16Val.static final VectorOperators.Conversion<Integer, Float16> VectorOperators.I2HConvertintValto(Float16)intVal.static final VectorOperators.Conversion<Long, Float16> VectorOperators.L2HConvertlongValto(Float16)longVal.static final VectorOperators.Conversion<Short, Float16> VectorOperators.S2HConvertshortValto(Float16)shortVal.static final VectorSpecies<Float16> Float16Vector.SPECIES_128Species representingFloat16Vectors ofVectorShape.S_128_BIT.static final VectorSpecies<Float16> Float16Vector.SPECIES_256Species representingFloat16Vectors ofVectorShape.S_256_BIT.static final VectorSpecies<Float16> Float16Vector.SPECIES_512Species representingFloat16Vectors ofVectorShape.S_512_BIT.static final VectorSpecies<Float16> Float16Vector.SPECIES_64Species representingFloat16Vectors ofVectorShape.S_64_BIT.static final VectorSpecies<Float16> Float16Vector.SPECIES_MAXSpecies representingFloat16Vectors ofVectorShape.S_Max_BIT.static final VectorSpecies<Float16> Float16Vector.SPECIES_PREFERREDPreferred species forFloat16Vectors.Methods in jdk.incubator.vector that return Float16Modifier and TypeMethodDescriptionstatic Float16Returns the absolute value of the argument.static Float16Adds twoFloat16values together as per the+operator semantics using the round to nearest rounding policy.static Float16Returns the first floating-point argument with the sign of the second floating-point argument.static Float16Divides twoFloat16values as per the/operator semantics using the round to nearest rounding policy.static Float16Returns the fused multiply add of the three arguments; that is, returns the exact product of the first two arguments summed with the third argument and then rounded once to the nearestFloat16.static Float16Returns the larger of twoFloat16values.static Float16Returns the smaller of twoFloat16values.static Float16Multiplies twoFloat16values as per the*operator semantics using the round to nearest rounding policy.static Float16Returns the negation of the argument.static Float16Returns the floating-point value adjacent tovin the direction of negative infinity.static Float16Returns the floating-point value adjacent tovin the direction of positive infinity.static Float16Returnsv× 2scaleFactorrounded as if performed by a single correctly rounded floating-point multiply.static Float16Float16.shortBitsToFloat16(short bits) Returns theFloat16value corresponding to a given bit representation.static Float16Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.static Float16Returns the square root of the operand.static Float16Subtracts twoFloat16values as per the-operator semantics using the round to nearest rounding policy.static Float16Returns the size of an ulp of the argument.static Float16Float16.valueOf(double d) Returns aFloat16value rounded from thedoubleargument using the round to nearest rounding policy.static Float16Float16.valueOf(float f) Returns aFloat16value rounded from thefloatargument using the round to nearest rounding policy.static Float16Float16.valueOf(int value) Returns the value of anintconverted toFloat16.static Float16Float16.valueOf(long value) Returns the value of alongconverted toFloat16.static Float16Returns aFloat16holding the floating-point value represented by the argument string.static Float16Float16.valueOf(BigDecimal v) Returns aFloat16value rounded from theBigDecimalargument using the round to nearest rounding policy.Methods in jdk.incubator.vector that return types with arguments of type Float16Modifier and TypeMethodDescriptionabstract VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, long e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.final VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, long e, VectorMask<Float16> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, short e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.final VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, short e, VectorMask<Float16> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, Vector<Float16> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.final VectorMask<Float16> Float16Vector.eq(short e) Tests if this vector is equal to an input scalar.final VectorMask<Float16> Tests if this vector is equal to another input vector.final VectorMask<Float16> Float16Vector.lt(short e) Tests if this vector is less than an input scalar.final VectorMask<Float16> Tests if this vector is less than another input vector.abstract VectorMask<Float16> Float16Vector.test(VectorOperators.Test op) Tests the lanes of this vector according to the given operation.abstract VectorMask<Float16> Float16Vector.test(VectorOperators.Test op, VectorMask<Float16> m) Test selected lanes of this vector, according to the given operation.Methods in jdk.incubator.vector with parameters of type Float16Modifier and TypeMethodDescriptionstatic Float16Returns the absolute value of the argument.static Float16Adds twoFloat16values together as per the+operator semantics using the round to nearest rounding policy.static intCompares the two specifiedFloat16values.intCompares twoFloat16objects numerically.static Float16Returns the first floating-point argument with the sign of the second floating-point argument.static Float16Divides twoFloat16values as per the/operator semantics using the round to nearest rounding policy.static shortFloat16.float16ToRawShortBits(Float16 f16) Returns a representation of the specified floating-point value according to the IEEE 754 floating-point binary16 bit layout.static shortFloat16.float16ToShortBits(Float16 f16) Returns a representation of the specified floating-point value according to the IEEE 754 floating-point binary16 bit layout.static Float16Returns the fused multiply add of the three arguments; that is, returns the exact product of the first two arguments summed with the third argument and then rounded once to the nearestFloat16.static intFloat16.getExponent(Float16 f16) Returns the unbiased exponent used in the representation of aFloat16.static intReturns a hash code for aFloat16value; compatible withFloat16.hashCode().static booleanReturnstrueif the argument is a finite floating-point value; returnsfalseotherwise (for NaN and infinity arguments).static booleanFloat16.isInfinite(Float16 f16) Returnstrueif the specified number is infinitely large in magnitude,falseotherwise.static booleanReturnstrueif the specified number is a Not-a-Number (NaN) value,falseotherwise.static Float16Returns the larger of twoFloat16values.static Float16Returns the smaller of twoFloat16values.static Float16Multiplies twoFloat16values as per the*operator semantics using the round to nearest rounding policy.static Float16Returns the negation of the argument.static Float16Returns the floating-point value adjacent tovin the direction of negative infinity.static Float16Returns the floating-point value adjacent tovin the direction of positive infinity.static Float16Returnsv× 2scaleFactorrounded as if performed by a single correctly rounded floating-point multiply.static Float16Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.static Float16Returns the square root of the operand.static Float16Subtracts twoFloat16values as per the-operator semantics using the round to nearest rounding policy.static StringFloat16.toHexString(Float16 f16) Returns a hexadecimal string representation of theFloat16argument.static StringReturns a string representation of theFloat16argument.static Float16Returns the size of an ulp of the argument.Method parameters in jdk.incubator.vector with type arguments of type Float16Modifier and TypeMethodDescriptionfinal Float16VectorFloat16Vector.add(short e, VectorMask<Float16> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.final Float16VectorAdds this vector to a second input vector.final Float16VectorFloat16Vector.add(Vector<Float16> v, VectorMask<Float16> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final Float16VectorFloat16Vector.add(Vector<Float16> v, VectorMask<Float16> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final Float16VectorFloat16Vector.blend(long e, VectorMask<Float16> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.final Float16VectorFloat16Vector.blend(short e, VectorMask<Float16> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstract Float16VectorFloat16Vector.blend(Vector<Float16> v, VectorMask<Float16> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.abstract Float16VectorFloat16Vector.blend(Vector<Float16> v, VectorMask<Float16> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.static Float16VectorFloat16Vector.broadcast(VectorSpecies<Float16> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee.static Float16VectorFloat16Vector.broadcast(VectorSpecies<Float16> species, short e) Returns a vector of the given species where all lane elements are set to the primitive valuee.final VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, long e, VectorMask<Float16> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.final VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, short e, VectorMask<Float16> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Float16> Float16Vector.compare(VectorOperators.Comparison op, Vector<Float16> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.abstract Float16VectorFloat16Vector.compress(VectorMask<Float16> m) Compresses the lane elements of this vector selecting lanes under the control of a specific mask.final Float16VectorFloat16Vector.div(short e, VectorMask<Float16> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final Float16VectorDivides this vector by a second input vector.final Float16VectorFloat16Vector.div(Vector<Float16> v, VectorMask<Float16> m) Divides this vector by a second input vector under the control of a mask.final Float16VectorFloat16Vector.div(Vector<Float16> v, VectorMask<Float16> m) Divides this vector by a second input vector under the control of a mask.final VectorMask<Float16> Tests if this vector is equal to another input vector.abstract Float16VectorFloat16Vector.expand(VectorMask<Float16> m) Expands the lane elements of this vector under the control of a specific mask.final Float16VectorMultiplies this vector by a second input vector, and sums the result with a third.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset) Loads a vector from an array of typeshort[]holding IEEE 754 binary16 values starting at an offset.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typeshort[]holding IEEE 754 binary16 values, using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float16> m) Gathers a new vector composed of elements from an array of typeshort[]holding IEEE 754 binary16 values, under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float16> m) Gathers a new vector composed of elements from an array of typeshort[]holding IEEE 754 binary16 values, under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset, VectorMask<Float16> m) Loads a vector from an array of typeshort[]holding IEEE 754 binary16 values starting at an offset and using a mask.static Float16VectorFloat16Vector.fromArray(VectorSpecies<Float16> species, short[] a, int offset, VectorMask<Float16> m) Loads a vector from an array of typeshort[]holding IEEE 754 binary16 values starting at an offset and using a mask.static Float16VectorFloat16Vector.fromMemorySegment(VectorSpecies<Float16> species, MemorySegment ms, long offset, ByteOrder bo) Loads a vector from a memory segment starting at an offset into the memory segment.static Float16VectorFloat16Vector.fromMemorySegment(VectorSpecies<Float16> species, MemorySegment ms, long offset, ByteOrder bo, VectorMask<Float16> m) Loads a vector from a memory segment starting at an offset into the memory segment and using a mask.static Float16VectorFloat16Vector.fromMemorySegment(VectorSpecies<Float16> species, MemorySegment ms, long offset, ByteOrder bo, VectorMask<Float16> m) Loads a vector from a memory segment starting at an offset into the memory segment and using a mask.final voidFloat16Vector.intoArray(short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float16> m) Scatters this vector into an array of typeshort[], under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.final voidFloat16Vector.intoArray(short[] a, int offset, VectorMask<Float16> m) Stores this vector into an array of typeshort[]starting at offset and using a mask.final voidFloat16Vector.intoMemorySegment(MemorySegment ms, long offset, ByteOrder bo, VectorMask<Float16> m) Stores this vector into a memory segment starting at an offset using explicit byte order and a mask.final Float16VectorFloat16Vector.lanewise(VectorOperators.Binary op, long e, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Binary op, short e, VectorMask<Float16> m) Combines the lane values of this vector with the value of a broadcast scalar, with selection of lane elements controlled by a mask.abstract Float16VectorFloat16Vector.lanewise(VectorOperators.Binary op, Vector<Float16> v) Combines the corresponding lane values of this vector with those of a second input vector.abstract Float16VectorFloat16Vector.lanewise(VectorOperators.Binary op, Vector<Float16> v, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Binary op, Vector<Float16> v, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, short e1, short e2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, short e1, Vector<Float16> v2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.final Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, short e1, Vector<Float16> v2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, short e1, Vector<Float16> v2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, Vector<Float16> v1, short e2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.final Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, Vector<Float16> v1, short e2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, Vector<Float16> v1, short e2, VectorMask<Float16> 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 Float16VectorCombines the corresponding lane values of this vector with the lanes of a second and a third input vector.abstract Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, Vector<Float16> v1, Vector<Float16> v2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Ternary op, Vector<Float16> v1, Vector<Float16> v2, VectorMask<Float16> 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 Float16VectorFloat16Vector.lanewise(VectorOperators.Unary op, VectorMask<Float16> m) Operates on the lane values of this vector, with selection of lane elements controlled by a mask.final VectorMask<Float16> Tests if this vector is less than another input vector.final Float16VectorComputes the larger of this vector and a second input vector.final Float16VectorComputes the smaller of this vector and a second input vector.final Float16VectorFloat16Vector.mul(short e, VectorMask<Float16> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final Float16VectorMultiplies this vector by a second input vector.final Float16VectorFloat16Vector.mul(Vector<Float16> v, VectorMask<Float16> m) Multiplies this vector by a second input vector under the control of a mask.final Float16VectorFloat16Vector.mul(Vector<Float16> v, VectorMask<Float16> m) Multiplies this vector by a second input vector under the control of a mask.final Float16VectorRaises this vector to the power of a second input vector.abstract Float16VectorFloat16Vector.rearrange(VectorShuffle<Float16> shuffle) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstract Float16VectorFloat16Vector.rearrange(VectorShuffle<Float16> s, Vector<Float16> 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 Float16VectorFloat16Vector.rearrange(VectorShuffle<Float16> s, Vector<Float16> 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 Float16VectorFloat16Vector.rearrange(VectorShuffle<Float16> s, VectorMask<Float16> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract Float16VectorFloat16Vector.rearrange(VectorShuffle<Float16> s, VectorMask<Float16> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract shortFloat16Vector.reduceLanes(VectorOperators.Associative op, VectorMask<Float16> m) Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstract Float16VectorFloat16Vector.selectFrom(Vector<Float16> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv.abstract Float16VectorFloat16Vector.selectFrom(Vector<Float16> v1, Vector<Float16> v2) Using values stored in the lanes of this vector, assemble values stored in the second vectorv1and third vectorv2.abstract Float16VectorFloat16Vector.selectFrom(Vector<Float16> s, VectorMask<Float16> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract Float16VectorFloat16Vector.selectFrom(Vector<Float16> s, VectorMask<Float16> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract Float16VectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final Float16VectorFloat16Vector.slice(int origin, Vector<Float16> w, VectorMask<Float16> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final Float16VectorFloat16Vector.slice(int origin, Vector<Float16> w, VectorMask<Float16> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final Float16VectorFloat16Vector.sub(short e, VectorMask<Float16> m) Subtracts an input scalar from this vector under the control of a mask.final Float16VectorSubtracts a second input vector from this vector.final Float16VectorFloat16Vector.sub(Vector<Float16> v, VectorMask<Float16> m) Subtracts a second input vector from this vector under the control of a mask.final Float16VectorFloat16Vector.sub(Vector<Float16> v, VectorMask<Float16> m) Subtracts a second input vector from this vector under the control of a mask.abstract VectorMask<Float16> Float16Vector.test(VectorOperators.Test op, VectorMask<Float16> m) Test selected lanes of this vector, according to the given operation.abstract Float16VectorReverses 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 subsequentslice()operation.abstract Float16VectorFloat16Vector.unslice(int origin, Vector<Float16> w, int part, VectorMask<Float16> 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 subsequentslice()operation.abstract Float16VectorFloat16Vector.unslice(int origin, Vector<Float16> w, int part, VectorMask<Float16> 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 subsequentslice()operation.static Float16VectorFloat16Vector.zero(VectorSpecies<Float16> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.