Skip to content

Commit 03c0ced

Browse files
committed
doc(csharp/Tensor.NET): fix the xml doc.
1 parent e1faabd commit 03c0ced

File tree

7 files changed

+12
-50
lines changed

7 files changed

+12
-50
lines changed

csharp/Tensor.NET/Algebra/Dot.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public static Tensor<T> Dot<T>(this Tensor<T> lhs, Tensor<T> rhs) where T : stru
1717
/// <summary>
1818
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
1919
/// </summary>
20-
/// <typeparam name="T"></typeparam>
2120
/// <param name="lhs"></param>
2221
/// <param name="rhs"></param>
2322
/// <returns></returns>
@@ -26,7 +25,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<int> rhs){
2625
}/// <summary>
2726
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
2827
/// </summary>
29-
/// <typeparam name="T"></typeparam>
3028
/// <param name="lhs"></param>
3129
/// <param name="rhs"></param>
3230
/// <returns></returns>
@@ -36,7 +34,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<float> rhs){
3634
/// <summary>
3735
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
3836
/// </summary>
39-
/// <typeparam name="T"></typeparam>
4037
/// <param name="lhs"></param>
4138
/// <param name="rhs"></param>
4239
/// <returns></returns>
@@ -46,7 +43,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<long> rhs){
4643
/// <summary>
4744
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
4845
/// </summary>
49-
/// <typeparam name="T"></typeparam>
5046
/// <param name="lhs"></param>
5147
/// <param name="rhs"></param>
5248
/// <returns></returns>
@@ -56,7 +52,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<bool> rhs){
5652
/// <summary>
5753
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
5854
/// </summary>
59-
/// <typeparam name="T"></typeparam>
6055
/// <param name="lhs"></param>
6156
/// <param name="rhs"></param>
6257
/// <returns></returns>
@@ -66,7 +61,6 @@ public static Tensor<double> Dot(this Tensor<int> lhs, Tensor<double> rhs){
6661
/// <summary>
6762
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
6863
/// </summary>
69-
/// <typeparam name="T"></typeparam>
7064
/// <param name="lhs"></param>
7165
/// <param name="rhs"></param>
7266
/// <returns></returns>
@@ -76,7 +70,6 @@ public static Tensor<float> Dot(this Tensor<int> lhs, Tensor<float> rhs){
7670
/// <summary>
7771
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
7872
/// </summary>
79-
/// <typeparam name="T"></typeparam>
8073
/// <param name="lhs"></param>
8174
/// <param name="rhs"></param>
8275
/// <returns></returns>
@@ -86,7 +79,6 @@ public static Tensor<long> Dot(this Tensor<int> lhs, Tensor<long> rhs){
8679
/// <summary>
8780
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
8881
/// </summary>
89-
/// <typeparam name="T"></typeparam>
9082
/// <param name="lhs"></param>
9183
/// <param name="rhs"></param>
9284
/// <returns></returns>
@@ -96,7 +88,6 @@ public static Tensor<int> Dot(this Tensor<int> lhs, Tensor<bool> rhs){
9688
/// <summary>
9789
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
9890
/// </summary>
99-
/// <typeparam name="T"></typeparam>
10091
/// <param name="lhs"></param>
10192
/// <param name="rhs"></param>
10293
/// <returns></returns>
@@ -106,7 +97,6 @@ public static Tensor<double> Dot(this Tensor<long> lhs, Tensor<double> rhs){
10697
/// <summary>
10798
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
10899
/// </summary>
109-
/// <typeparam name="T"></typeparam>
110100
/// <param name="lhs"></param>
111101
/// <param name="rhs"></param>
112102
/// <returns></returns>
@@ -116,7 +106,6 @@ public static Tensor<float> Dot(this Tensor<long> lhs, Tensor<float> rhs){
116106
/// <summary>
117107
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
118108
/// </summary>
119-
/// <typeparam name="T"></typeparam>
120109
/// <param name="lhs"></param>
121110
/// <param name="rhs"></param>
122111
/// <returns></returns>
@@ -126,7 +115,6 @@ public static Tensor<long> Dot(this Tensor<long> lhs, Tensor<int> rhs){
126115
/// <summary>
127116
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
128117
/// </summary>
129-
/// <typeparam name="T"></typeparam>
130118
/// <param name="lhs"></param>
131119
/// <param name="rhs"></param>
132120
/// <returns></returns>
@@ -136,7 +124,6 @@ public static Tensor<long> Dot(this Tensor<long> lhs, Tensor<bool> rhs){
136124
/// <summary>
137125
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
138126
/// </summary>
139-
/// <typeparam name="T"></typeparam>
140127
/// <param name="lhs"></param>
141128
/// <param name="rhs"></param>
142129
/// <returns></returns>
@@ -146,7 +133,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<long> rhs){
146133
/// <summary>
147134
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
148135
/// </summary>
149-
/// <typeparam name="T"></typeparam>
150136
/// <param name="lhs"></param>
151137
/// <param name="rhs"></param>
152138
/// <returns></returns>
@@ -156,7 +142,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<int> rhs){
156142
/// <summary>
157143
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
158144
/// </summary>
159-
/// <typeparam name="T"></typeparam>
160145
/// <param name="lhs"></param>
161146
/// <param name="rhs"></param>
162147
/// <returns></returns>
@@ -166,7 +151,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<bool> rhs){
166151
/// <summary>
167152
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
168153
/// </summary>
169-
/// <typeparam name="T"></typeparam>
170154
/// <param name="lhs"></param>
171155
/// <param name="rhs"></param>
172156
/// <returns></returns>
@@ -176,7 +160,6 @@ public static Tensor<double> Dot(this Tensor<float> lhs, Tensor<double> rhs){
176160
/// <summary>
177161
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
178162
/// </summary>
179-
/// <typeparam name="T"></typeparam>
180163
/// <param name="lhs"></param>
181164
/// <param name="rhs"></param>
182165
/// <returns></returns>
@@ -186,7 +169,6 @@ public static Tensor<double> Dot(this Tensor<bool> lhs, Tensor<double> rhs){
186169
/// <summary>
187170
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
188171
/// </summary>
189-
/// <typeparam name="T"></typeparam>
190172
/// <param name="lhs"></param>
191173
/// <param name="rhs"></param>
192174
/// <returns></returns>
@@ -196,7 +178,6 @@ public static Tensor<float> Dot(this Tensor<bool> lhs, Tensor<float> rhs){
196178
/// <summary>
197179
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
198180
/// </summary>
199-
/// <typeparam name="T"></typeparam>
200181
/// <param name="lhs"></param>
201182
/// <param name="rhs"></param>
202183
/// <returns></returns>
@@ -206,7 +187,6 @@ public static Tensor<long> Dot(this Tensor<bool> lhs, Tensor<long> rhs){
206187
/// <summary>
207188
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
208189
/// </summary>
209-
/// <typeparam name="T"></typeparam>
210190
/// <param name="lhs"></param>
211191
/// <param name="rhs"></param>
212192
/// <returns></returns>
@@ -216,7 +196,6 @@ public static Tensor<int> Dot(this Tensor<bool> lhs, Tensor<int> rhs){
216196
/// <summary>
217197
/// Get the dot result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.dot.html#numpy.dot
218198
/// </summary>
219-
/// <typeparam name="T"></typeparam>
220199
/// <param name="lhs"></param>
221200
/// <param name="rhs"></param>
222201
/// <returns></returns>

csharp/Tensor.NET/Algebra/Matmul.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public static class MatmulExtension{
77
/// <summary>
88
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
99
/// </summary>
10-
/// <typeparam name="T"></typeparam>
1110
/// <param name="lhs"></param>
1211
/// <param name="rhs"></param>
1312
/// <returns></returns>
@@ -17,7 +16,6 @@ public static Tensor<T> Matmul<T>(this Tensor<T> lhs, Tensor<T> rhs) where T : s
1716
/// <summary>
1817
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
1918
/// </summary>
20-
/// <typeparam name="T"></typeparam>
2119
/// <param name="lhs"></param>
2220
/// <param name="rhs"></param>
2321
/// <returns></returns>
@@ -27,7 +25,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<int> rhs){
2725
/// <summary>
2826
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
2927
/// </summary>
30-
/// <typeparam name="T"></typeparam>
3128
/// <param name="lhs"></param>
3229
/// <param name="rhs"></param>
3330
/// <returns></returns>
@@ -37,7 +34,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<float> rhs){
3734
/// <summary>
3835
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
3936
/// </summary>
40-
/// <typeparam name="T"></typeparam>
4137
/// <param name="lhs"></param>
4238
/// <param name="rhs"></param>
4339
/// <returns></returns>
@@ -47,7 +43,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<long> rhs){
4743
/// <summary>
4844
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
4945
/// </summary>
50-
/// <typeparam name="T"></typeparam>
5146
/// <param name="lhs"></param>
5247
/// <param name="rhs"></param>
5348
/// <returns></returns>
@@ -57,7 +52,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<bool> rhs){
5752
/// <summary>
5853
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
5954
/// </summary>
60-
/// <typeparam name="T"></typeparam>
6155
/// <param name="lhs"></param>
6256
/// <param name="rhs"></param>
6357
/// <returns></returns>
@@ -70,7 +64,6 @@ public static Tensor<float> Matmul(this Tensor<int> lhs, Tensor<float> rhs){
7064
/// <summary>
7165
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
7266
/// </summary>
73-
/// <typeparam name="T"></typeparam>
7467
/// <param name="lhs"></param>
7568
/// <param name="rhs"></param>
7669
/// <returns></returns>
@@ -80,7 +73,6 @@ public static Tensor<long> Matmul(this Tensor<int> lhs, Tensor<long> rhs){
8073
/// <summary>
8174
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
8275
/// </summary>
83-
/// <typeparam name="T"></typeparam>
8476
/// <param name="lhs"></param>
8577
/// <param name="rhs"></param>
8678
/// <returns></returns>
@@ -90,7 +82,6 @@ public static Tensor<int> Matmul(this Tensor<int> lhs, Tensor<bool> rhs){
9082
/// <summary>
9183
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
9284
/// </summary>
93-
/// <typeparam name="T"></typeparam>
9485
/// <param name="lhs"></param>
9586
/// <param name="rhs"></param>
9687
/// <returns></returns>
@@ -100,7 +91,6 @@ public static Tensor<double> Matmul(this Tensor<long> lhs, Tensor<double> rhs){
10091
/// <summary>
10192
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
10293
/// </summary>
103-
/// <typeparam name="T"></typeparam>
10494
/// <param name="lhs"></param>
10595
/// <param name="rhs"></param>
10696
/// <returns></returns>
@@ -110,7 +100,6 @@ public static Tensor<float> Matmul(this Tensor<long> lhs, Tensor<float> rhs){
110100
/// <summary>
111101
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
112102
/// </summary>
113-
/// <typeparam name="T"></typeparam>
114103
/// <param name="lhs"></param>
115104
/// <param name="rhs"></param>
116105
/// <returns></returns>
@@ -120,7 +109,6 @@ public static Tensor<long> Matmul(this Tensor<long> lhs, Tensor<int> rhs){
120109
/// <summary>
121110
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
122111
/// </summary>
123-
/// <typeparam name="T"></typeparam>
124112
/// <param name="lhs"></param>
125113
/// <param name="rhs"></param>
126114
/// <returns></returns>
@@ -130,7 +118,6 @@ public static Tensor<long> Matmul(this Tensor<long> lhs, Tensor<bool> rhs){
130118
/// <summary>
131119
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
132120
/// </summary>
133-
/// <typeparam name="T"></typeparam>
134121
/// <param name="lhs"></param>
135122
/// <param name="rhs"></param>
136123
/// <returns></returns>
@@ -140,7 +127,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<long> rhs){
140127
/// <summary>
141128
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
142129
/// </summary>
143-
/// <typeparam name="T"></typeparam>
144130
/// <param name="lhs"></param>
145131
/// <param name="rhs"></param>
146132
/// <returns></returns>
@@ -150,7 +136,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<int> rhs){
150136
/// <summary>
151137
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
152138
/// </summary>
153-
/// <typeparam name="T"></typeparam>
154139
/// <param name="lhs"></param>
155140
/// <param name="rhs"></param>
156141
/// <returns></returns>
@@ -160,7 +145,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<bool> rhs){
160145
/// <summary>
161146
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
162147
/// </summary>
163-
/// <typeparam name="T"></typeparam>
164148
/// <param name="lhs"></param>
165149
/// <param name="rhs"></param>
166150
/// <returns></returns>
@@ -170,7 +154,6 @@ public static Tensor<double> Matmul(this Tensor<float> lhs, Tensor<double> rhs){
170154
/// <summary>
171155
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
172156
/// </summary>
173-
/// <typeparam name="T"></typeparam>
174157
/// <param name="lhs"></param>
175158
/// <param name="rhs"></param>
176159
/// <returns></returns>
@@ -180,7 +163,6 @@ public static Tensor<double> Matmul(this Tensor<bool> lhs, Tensor<double> rhs){
180163
/// <summary>
181164
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
182165
/// </summary>
183-
/// <typeparam name="T"></typeparam>
184166
/// <param name="lhs"></param>
185167
/// <param name="rhs"></param>
186168
/// <returns></returns>
@@ -190,7 +172,6 @@ public static Tensor<float> Matmul(this Tensor<bool> lhs, Tensor<float> rhs){
190172
/// <summary>
191173
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
192174
/// </summary>
193-
/// <typeparam name="T"></typeparam>
194175
/// <param name="lhs"></param>
195176
/// <param name="rhs"></param>
196177
/// <returns></returns>
@@ -200,7 +181,6 @@ public static Tensor<long> Matmul(this Tensor<bool> lhs, Tensor<long> rhs){
200181
/// <summary>
201182
/// Get the matrix mutiply result of the two tensors. For the details, please refer to https://numpy.org/doc/stable/reference/generated/numpy.matmul.html
202183
/// </summary>
203-
/// <typeparam name="T"></typeparam>
204184
/// <param name="lhs"></param>
205185
/// <param name="rhs"></param>
206186
/// <returns></returns>

csharp/Tensor.NET/Manipulation/Flip.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ public static partial class Tensor{
6868
/// <param name="src">the tensor to be flipped</param>
6969
/// <param name="axes"> The axes to flip. If it's set to null, then all axis will be flipped. </param>
7070
/// <returns>The flipped tensor</returns>
71-
public static Tensor<T> Flip<T>(Tensor<T> src, int[]? axis = null) where T : struct, IEquatable<T>, IConvertible{
72-
if(axis is null){
71+
public static Tensor<T> Flip<T>(Tensor<T> src, int[]? axes = null) where T : struct, IEquatable<T>, IConvertible{
72+
if(axes is null){
7373
return src.Flip();
7474
}
7575
else{
76-
return src.Flip(axis);
76+
return src.Flip(axes);
7777
}
7878
}
7979
/// <summary>

0 commit comments

Comments
 (0)