8255020: Minor updates to docs jdk.incubator.vector

Reviewed-by: erikj, darcy
This commit is contained in:
Paul Sandoz 2020-10-19 20:37:36 +00:00
parent 14e1e1741f
commit 0001435044
4 changed files with 24 additions and 9 deletions

View File

@ -546,6 +546,10 @@ jdk.jfr_DISABLED_WARNINGS += exports
jdk.jfr_COPY := .xsd .xml .dtd jdk.jfr_COPY := .xsd .xml .dtd
jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline
################################################################################
jdk.incubator.vector_DOCLINT += -Xdoclint:all/protected
################################################################################ ################################################################################
# If this is an imported module that has prebuilt classes, only compile # If this is an imported module that has prebuilt classes, only compile
# module-info.java. # module-info.java.

View File

@ -102,7 +102,7 @@ import java.util.Arrays;
* such as {@code a + b} for the * such as {@code a + b} for the
* {@link VectorOperators#ADD ADD} operator token. * {@link VectorOperators#ADD ADD} operator token.
* General lane-wise operation-token accepting methods, such as for a * General lane-wise operation-token accepting methods, such as for a
* {@link Vector#lanewise(VectorOperators.Unary) unary lane-wise} * {@linkplain Vector#lanewise(VectorOperators.Unary) unary lane-wise}
* operation, are provided on {@code Vector} and come in the same variants as * operation, are provided on {@code Vector} and come in the same variants as
* a full-service named operation. * a full-service named operation.
* *
@ -124,7 +124,8 @@ import java.util.Arrays;
* of {@code ETYPE}. For example, in the type {@code Vector<Integer>}, the {@code E} * of {@code ETYPE}. For example, in the type {@code Vector<Integer>}, the {@code E}
* parameter is {@code Integer} and the {@code ETYPE} is {@code int}. In such a * parameter is {@code Integer} and the {@code ETYPE} is {@code int}. In such a
* vector, each lane carries a primitive {@code int} value. This pattern continues * vector, each lane carries a primitive {@code int} value. This pattern continues
* for the other primitive types as well. * for the other primitive types as well. (See also sections {@jls 5.1.7} and
* {@jls 5.1.8} of the <cite>The Java Language Specification</cite>.)
* *
* <p><a id="VLENGTH"></a> The {@linkplain #length() length} of a vector * <p><a id="VLENGTH"></a> The {@linkplain #length() length} of a vector
* is the lane count, the number of lanes it contains. * is the lane count, the number of lanes it contains.
@ -143,8 +144,8 @@ import java.util.Arrays;
* {@linkplain #shape() <em>vector shape</em>}, also called its * {@linkplain #shape() <em>vector shape</em>}, also called its
* {@code VSHAPE}. Each possible {@code VSHAPE} is represented by * {@code VSHAPE}. Each possible {@code VSHAPE} is represented by
* a member of the {@link VectorShape} enumeration, and represents * a member of the {@link VectorShape} enumeration, and represents
* an implementation format shared in common by all vectors of a * an implementation format shared in common by all vectors of
* of that shape. Thus, the {@linkplain #bitSize() size in bits} of * that shape. Thus, the {@linkplain #bitSize() size in bits} of
* of a vector is determined by appealing to its vector shape. * of a vector is determined by appealing to its vector shape.
* *
* <p> Some Java platforms give special support to only one shape, * <p> Some Java platforms give special support to only one shape,
@ -200,7 +201,7 @@ import java.util.Arrays;
* of floating point element types). * of floating point element types).
* There are six abstract sub-classes of Vector corresponding to the supported set * There are six abstract sub-classes of Vector corresponding to the supported set
* of element types, {@link ByteVector}, {@link ShortVector}, * of element types, {@link ByteVector}, {@link ShortVector},
* {@link IntVector} {@link LongVector}, {@link FloatVector}, and * {@link IntVector}, {@link LongVector}, {@link FloatVector}, and
* {@link DoubleVector}. Along with type-specific operations these classes * {@link DoubleVector}. Along with type-specific operations these classes
* support creation of vector values (instances of Vector). * support creation of vector values (instances of Vector).
* They expose static constants corresponding to the supported species, * They expose static constants corresponding to the supported species,
@ -1181,6 +1182,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
/** /**
* Returns the primitive <a href="Vector.html#ETYPE">element type</a> * Returns the primitive <a href="Vector.html#ETYPE">element type</a>
* ({@code ETYPE}) of this vector. * ({@code ETYPE}) of this vector.
*
* @implSpec
* This is the same value as {@code this.species().elementType()}. * This is the same value as {@code this.species().elementType()}.
* *
* @return the primitive element type of this vector * @return the primitive element type of this vector
@ -1189,6 +1192,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
/** /**
* Returns the size of each lane, in bits, of this vector. * Returns the size of each lane, in bits, of this vector.
*
* @implSpec
* This is the same value as {@code this.species().elementSize()}. * This is the same value as {@code this.species().elementSize()}.
* *
* @return the lane size, in bits, of this vector * @return the lane size, in bits, of this vector
@ -1197,6 +1202,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
/** /**
* Returns the shape of this vector. * Returns the shape of this vector.
*
* @implSpec
* This is the same value as {@code this.species().vectorShape()}. * This is the same value as {@code this.species().vectorShape()}.
* *
* @return the shape of this vector * @return the shape of this vector
@ -1213,6 +1220,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
/** /**
* Returns the total size, in bits, of this vector. * Returns the total size, in bits, of this vector.
*
* @implSpec
* This is the same value as {@code this.shape().vectorBitSize()}. * This is the same value as {@code this.shape().vectorBitSize()}.
* *
* @return the total size, in bits, of this vector * @return the total size, in bits, of this vector
@ -1221,6 +1230,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
/** /**
* Returns the total size, in bytes, of this vector. * Returns the total size, in bytes, of this vector.
*
* @implSpec
* This is the same value as {@code this.bitSize()/Byte.SIZE}. * This is the same value as {@code this.bitSize()/Byte.SIZE}.
* *
* @return the total size, in bytes, of this vector * @return the total size, in bytes, of this vector

View File

@ -227,7 +227,7 @@ public abstract class VectorOperators {
/** /**
* Type for all * Type for all
* <a href="Vector.html#lane-wise">lane-wise</a> * <a href="Vector.html#lane-wise">lane-wise</a>
* unary operators, * unary (one-argument) operators,
* usable in expressions like {@code w = v0.}{@link * usable in expressions like {@code w = v0.}{@link
* Vector#lanewise(VectorOperators.Unary) * Vector#lanewise(VectorOperators.Unary)
* lanewise}{@code (NEG)}. * lanewise}{@code (NEG)}.
@ -243,7 +243,7 @@ public abstract class VectorOperators {
/** /**
* Type for all * Type for all
* <a href="Vector.html#lane-wise">lane-wise</a> * <a href="Vector.html#lane-wise">lane-wise</a>
* binary operators, * binary (two-argument) operators,
* usable in expressions like {@code w = v0.}{@link * usable in expressions like {@code w = v0.}{@link
* Vector#lanewise(VectorOperators.Binary,Vector) * Vector#lanewise(VectorOperators.Binary,Vector)
* lanewise}{@code (ADD, v1)}. * lanewise}{@code (ADD, v1)}.
@ -259,7 +259,7 @@ public abstract class VectorOperators {
/** /**
* Type for all * Type for all
* <a href="Vector.html#lane-wise">lane-wise</a> * <a href="Vector.html#lane-wise">lane-wise</a>
* ternary operators, * ternary (three-argument) operators,
* usable in expressions like {@code w = v0.}{@link * usable in expressions like {@code w = v0.}{@link
* Vector#lanewise(VectorOperators.Ternary,Vector,Vector) * Vector#lanewise(VectorOperators.Ternary,Vector,Vector)
* lanewise}{@code (FMA, v1, v2)}. * lanewise}{@code (FMA, v1, v2)}.

View File

@ -103,7 +103,7 @@
* such as {@code a + b} for the * such as {@code a + b} for the
* {@link VectorOperators#ADD ADD} operator token. * {@link VectorOperators#ADD ADD} operator token.
* General lane-wise operation-token accepting methods, such as for a * General lane-wise operation-token accepting methods, such as for a
* {@link Vector#lanewise(VectorOperators.Unary) unary lane-wise} * {@linkplain Vector#lanewise(VectorOperators.Unary) unary lane-wise}
* operation, are provided on {@code Vector} and come in the same variants as * operation, are provided on {@code Vector} and come in the same variants as
* a full-service named operation. * a full-service named operation.
* *