@@ -99,6 +99,7 @@ Tensor<? extends TType> build(
99
99
* @throws IllegalArgumentException if the type of the {@link RandomAccessibleInterval}
100
100
* is not supported
101
101
*/
102
+ @ SuppressWarnings ("unchecked" )
102
103
public static <T extends Type <T >> Tensor <? extends TType > build (
103
104
RandomAccessibleInterval <T > array ) throws IllegalArgumentException
104
105
{
@@ -123,16 +124,6 @@ else if (Util.getTypeFromInterval(array) instanceof LongType) {
123
124
}
124
125
}
125
126
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
- */
136
127
private static Tensor <TUint8 > buildUByte (
137
128
RandomAccessibleInterval <UnsignedByteType > tensor )
138
129
throws IllegalArgumentException
@@ -161,16 +152,6 @@ private static Tensor<TUint8> buildUByte(
161
152
return ndarray ;
162
153
}
163
154
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
- */
174
155
private static Tensor <TInt32 > buildInt (
175
156
RandomAccessibleInterval <IntType > tensor ) throws IllegalArgumentException
176
157
{
@@ -198,16 +179,6 @@ private static Tensor<TInt32> buildInt(
198
179
return ndarray ;
199
180
}
200
181
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
- */
211
182
private static Tensor <TInt64 > buildLong (
212
183
RandomAccessibleInterval <LongType > tensor )
213
184
throws IllegalArgumentException
@@ -236,16 +207,6 @@ private static Tensor<TInt64> buildLong(
236
207
return ndarray ;
237
208
}
238
209
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
- */
249
210
private static Tensor <TFloat32 > buildFloat (
250
211
RandomAccessibleInterval <FloatType > tensor )
251
212
throws IllegalArgumentException
@@ -274,16 +235,6 @@ private static Tensor<TFloat32> buildFloat(
274
235
return ndarray ;
275
236
}
276
237
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
- */
287
238
private static Tensor <TFloat64 > buildDouble (
288
239
RandomAccessibleInterval <DoubleType > tensor )
289
240
throws IllegalArgumentException
0 commit comments