102
102
* such as {@code a + b} for the
103
103
* {@link VectorOperators#ADD ADD} operator token.
104
104
* General lane-wise operation-token accepting methods, such as for a
105
- * {@link Vector#lanewise(VectorOperators.Unary) unary lane-wise}
105
+ * {@linkplain Vector#lanewise(VectorOperators.Unary) unary lane-wise}
106
106
* operation, are provided on {@code Vector} and come in the same variants as
107
107
* a full-service named operation.
108
108
*
124
124
* of {@code ETYPE}. For example, in the type {@code Vector<Integer>}, the {@code E}
125
125
* parameter is {@code Integer} and the {@code ETYPE} is {@code int}. In such a
126
126
* vector, each lane carries a primitive {@code int} value. This pattern continues
127
- * for the other primitive types as well.
127
+ * for the other primitive types as well. (See also sections {@jls 5.1.7} and
128
+ * {@jls 5.1.8} of the <cite>The Java Language Specification</cite>.)
128
129
*
129
130
* <p><a id="VLENGTH"></a> The {@linkplain #length() length} of a vector
130
131
* is the lane count, the number of lanes it contains.
143
144
* {@linkplain #shape() <em>vector shape</em>}, also called its
144
145
* {@code VSHAPE}. Each possible {@code VSHAPE} is represented by
145
146
* a member of the {@link VectorShape} enumeration, and represents
146
- * an implementation format shared in common by all vectors of a
147
- * of that shape. Thus, the {@linkplain #bitSize() size in bits} of
147
+ * an implementation format shared in common by all vectors of
148
+ * that shape. Thus, the {@linkplain #bitSize() size in bits} of
148
149
* of a vector is determined by appealing to its vector shape.
149
150
*
150
151
* <p> Some Java platforms give special support to only one shape,
200
201
* of floating point element types).
201
202
* There are six abstract sub-classes of Vector corresponding to the supported set
202
203
* of element types, {@link ByteVector}, {@link ShortVector},
203
- * {@link IntVector} {@link LongVector}, {@link FloatVector}, and
204
+ * {@link IntVector}, {@link LongVector}, {@link FloatVector}, and
204
205
* {@link DoubleVector}. Along with type-specific operations these classes
205
206
* support creation of vector values (instances of Vector).
206
207
* 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
1181
1182
/**
1182
1183
* Returns the primitive <a href="Vector.html#ETYPE">element type</a>
1183
1184
* ({@code ETYPE}) of this vector.
1185
+ *
1186
+ * @implSpec
1184
1187
* This is the same value as {@code this.species().elementType()}.
1185
1188
*
1186
1189
* @return the primitive element type of this vector
@@ -1189,6 +1192,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
1189
1192
1190
1193
/**
1191
1194
* Returns the size of each lane, in bits, of this vector.
1195
+ *
1196
+ * @implSpec
1192
1197
* This is the same value as {@code this.species().elementSize()}.
1193
1198
*
1194
1199
* @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
1197
1202
1198
1203
/**
1199
1204
* Returns the shape of this vector.
1205
+ *
1206
+ * @implSpec
1200
1207
* This is the same value as {@code this.species().vectorShape()}.
1201
1208
*
1202
1209
* @return the shape of this vector
@@ -1213,6 +1220,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
1213
1220
1214
1221
/**
1215
1222
* Returns the total size, in bits, of this vector.
1223
+ *
1224
+ * @implSpec
1216
1225
* This is the same value as {@code this.shape().vectorBitSize()}.
1217
1226
*
1218
1227
* @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
1221
1230
1222
1231
/**
1223
1232
* Returns the total size, in bytes, of this vector.
1233
+ *
1234
+ * @implSpec
1224
1235
* This is the same value as {@code this.bitSize()/Byte.SIZE}.
1225
1236
*
1226
1237
* @return the total size, in bytes, of this vector
0 commit comments