@@ -99,6 +99,7 @@ Tensor<? extends TType> build(
9999 * @throws IllegalArgumentException if the type of the {@link RandomAccessibleInterval}
100100 * is not supported
101101 */
102+ @ SuppressWarnings ("unchecked" )
102103 public static <T extends Type <T >> Tensor <? extends TType > build (
103104 RandomAccessibleInterval <T > array ) throws IllegalArgumentException
104105 {
@@ -123,16 +124,6 @@ else if (Util.getTypeFromInterval(array) instanceof LongType) {
123124 }
124125 }
125126
126- /**
127- * Creates a {@link Tensor} of type {@link TUint8} from an
128- * {@link RandomAccessibleInterval} of type {@link UnsignedByteType}
129- *
130- * @param tensor
131- * The {@link RandomAccessibleInterval} to fill the tensor with.
132- * @return The {@link Tensor} tensor filled with the {@link RandomAccessibleInterval} data.
133- * @throws IllegalArgumentException if the input {@link RandomAccessibleInterval} type is
134- * not compatible
135- */
136127 private static Tensor <TUint8 > buildUByte (
137128 RandomAccessibleInterval <UnsignedByteType > tensor )
138129 throws IllegalArgumentException
@@ -161,16 +152,6 @@ private static Tensor<TUint8> buildUByte(
161152 return ndarray ;
162153 }
163154
164- /**
165- * Creates a {@link Tensor} of type {@link TInt32} from an
166- * {@link RandomAccessibleInterval} of type {@link IntType}
167- *
168- * @param tensor
169- * The {@link RandomAccessibleInterval} to fill the tensor with.
170- * @return The {@link Tensor} tensor filled with the {@link RandomAccessibleInterval} data.
171- * @throws IllegalArgumentException if the input {@link RandomAccessibleInterval} type is
172- * not compatible
173- */
174155 private static Tensor <TInt32 > buildInt (
175156 RandomAccessibleInterval <IntType > tensor ) throws IllegalArgumentException
176157 {
@@ -198,16 +179,6 @@ private static Tensor<TInt32> buildInt(
198179 return ndarray ;
199180 }
200181
201- /**
202- * Creates a {@link Tensor} of type {@link TInt64} from an
203- * {@link RandomAccessibleInterval} of type {@link LongType}
204- *
205- * @param tensor
206- * The {@link RandomAccessibleInterval} to fill the tensor with.
207- * @return The {@link Tensor} tensor filled with the {@link RandomAccessibleInterval} data.
208- * @throws IllegalArgumentException if the input {@link RandomAccessibleInterval} type is
209- * not compatible
210- */
211182 private static Tensor <TInt64 > buildLong (
212183 RandomAccessibleInterval <LongType > tensor )
213184 throws IllegalArgumentException
@@ -236,16 +207,6 @@ private static Tensor<TInt64> buildLong(
236207 return ndarray ;
237208 }
238209
239- /**
240- * Creates a {@link Tensor} of type {@link TFloat32} from an
241- * {@link RandomAccessibleInterval} of type {@link FloatType}
242- *
243- * @param tensor
244- * The {@link RandomAccessibleInterval} to fill the tensor with.
245- * @return The {@link Tensor} tensor filled with the {@link RandomAccessibleInterval} data.
246- * @throws IllegalArgumentException if the input {@link RandomAccessibleInterval} type is
247- * not compatible
248- */
249210 private static Tensor <TFloat32 > buildFloat (
250211 RandomAccessibleInterval <FloatType > tensor )
251212 throws IllegalArgumentException
@@ -274,16 +235,6 @@ private static Tensor<TFloat32> buildFloat(
274235 return ndarray ;
275236 }
276237
277- /**
278- * Creates a {@link Tensor} of type {@link TFloat64} from an
279- * {@link RandomAccessibleInterval} of type {@link DoubleType}
280- *
281- * @param tensor
282- * The {@link RandomAccessibleInterval} to fill the tensor with.
283- * @return The {@link Tensor} tensor filled with the {@link RandomAccessibleInterval} data.
284- * @throws IllegalArgumentException if the input {@link RandomAccessibleInterval} type is
285- * not compatible
286- */
287238 private static Tensor <TFloat64 > buildDouble (
288239 RandomAccessibleInterval <DoubleType > tensor )
289240 throws IllegalArgumentException
0 commit comments