2
2
/*******************************************************************************
3
3
*
4
4
* This file is part of tensorics.
5
- *
5
+ *
6
6
* Copyright (c) 2008-2011, CERN. All rights reserved.
7
7
*
8
8
* Licensed under the Apache License, Version 2.0 (the "License");
16
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
17
* See the License for the specific language governing permissions and
18
18
* limitations under the License.
19
- *
19
+ *
20
20
******************************************************************************/
21
21
// @formatter:on
22
22
38
38
39
39
/**
40
40
* Part of the tensoric fluent API which provides methods to describe misc manipulations on a given tensor.
41
- *
41
+ *
42
42
* @author kfuchsbe
43
43
* @param <V> the type of the values of the tensor
44
44
*/
@@ -55,7 +55,7 @@ public class OngoingTensorManipulation<V> {
55
55
* Extracts from the tensor only those elements where the values in the given mask is {@code true}. The resulting
56
56
* tensors will then have the same dimensionality as the original tensor, but will only have that many elements as
57
57
* there are {@code true} elements in the mask tensor.
58
- *
58
+ *
59
59
* @param mask the mask which determines which elements shall be present in the new tensor.
60
60
* @return A tensor which will contain only those elements which have {@code true} flags in the mask
61
61
*/
@@ -71,7 +71,7 @@ public Tensor<V> extractWhereTrue(Tensor<Boolean> mask) {
71
71
72
72
/**
73
73
* Retrieves all the unique coordinates of the given type.
74
- *
74
+ *
75
75
* @param coordinateType the type of the coordinate to extract
76
76
* @return a set of extracted coordinates
77
77
*/
@@ -130,6 +130,7 @@ private static final <C, E> Tensor<E> slice(Tensor<E> tensor, C coordinate) {
130
130
return TensorStructurals .from (tensor ).reduce (correctDimension ).bySlicingAt (coordinate );
131
131
}
132
132
133
+ @ Deprecated
133
134
public <C > OngoingDimensionReduction <C , V > reduce (Class <C > dimension ) {
134
135
return new OngoingDimensionReduction <>(tensor , dimension );
135
136
}
0 commit comments