@@ -58,7 +58,7 @@ public class ConvertNumbersToRealTypes<N extends Number, T extends RealType<T>,
5858 /**
5959 * @input num the {@link Number} to convert
6060 * @output a {@link UnsignedByteType} containing the information in {@code num}
61- * @implNote op names='engine.convert, convert.int8 '
61+ * @implNote op names='engine.convert, convert.uint8 '
6262 */
6363 public final Function <N , UnsignedByteType > numberToUnsignedByteType = //
6464 num -> new UnsignedByteType (num .shortValue ());
@@ -71,6 +71,14 @@ public class ConvertNumbersToRealTypes<N extends Number, T extends RealType<T>,
7171 public final Function <N , ShortType > numberToShortType = //
7272 num -> new ShortType (num .shortValue ());
7373
74+ /**
75+ * @input num the {@link Number} to convert
76+ * @output a {@link UnsignedShortType} containing the information in {@code num}
77+ * @implNote op names='engine.convert, convert.uint16'
78+ */
79+ public final Function <N , UnsignedShortType > numberToUnsignedShortType = //
80+ num -> new UnsignedShortType (num .intValue ());
81+
7482 /**
7583 * @input num the {@link Number} to convert
7684 * @output a {@link IntType} containing the information in {@code num}
@@ -79,6 +87,14 @@ public class ConvertNumbersToRealTypes<N extends Number, T extends RealType<T>,
7987 public final Function <N , IntType > numberToIntType = //
8088 num -> new IntType (num .intValue ());
8189
90+ /**
91+ * @input num the {@link Number} to convert
92+ * @output a {@link UnsignedIntType} containing the information in {@code num}
93+ * @implNote op names='engine.convert, convert.uint32'
94+ */
95+ public final Function <N , UnsignedIntType > numberToUnsignedIntType = //
96+ num -> new UnsignedIntType (num .longValue ());
97+
8298 /**
8399 * @input num the {@link Number} to convert
84100 * @output a {@link LongType} containing the information in {@code num}
0 commit comments