Skip to content

Commit

Permalink
doc(csharp/Tensor.NET): fix the xml doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakusaRinne committed May 24, 2022
1 parent e1faabd commit 03c0ced
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 50 deletions.
21 changes: 0 additions & 21 deletions csharp/Tensor.NET/Algebra/Dot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public static Tensor<T> Dot<T>(this Tensor<T> lhs, Tensor<T> rhs) where T : stru
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -26,7 +25,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<int> rhs){
}/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -36,7 +34,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -46,7 +43,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -56,7 +52,6 @@ public static Tensor<double> Dot(this Tensor<double> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -66,7 +61,6 @@ public static Tensor<double> Dot(this Tensor<int> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -76,7 +70,6 @@ public static Tensor<float> Dot(this Tensor<int> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -86,7 +79,6 @@ public static Tensor<long> Dot(this Tensor<int> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -96,7 +88,6 @@ public static Tensor<int> Dot(this Tensor<int> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -106,7 +97,6 @@ public static Tensor<double> Dot(this Tensor<long> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -116,7 +106,6 @@ public static Tensor<float> Dot(this Tensor<long> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -126,7 +115,6 @@ public static Tensor<long> Dot(this Tensor<long> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -136,7 +124,6 @@ public static Tensor<long> Dot(this Tensor<long> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -146,7 +133,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -156,7 +142,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -166,7 +151,6 @@ public static Tensor<float> Dot(this Tensor<float> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -176,7 +160,6 @@ public static Tensor<double> Dot(this Tensor<float> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -186,7 +169,6 @@ public static Tensor<double> Dot(this Tensor<bool> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -196,7 +178,6 @@ public static Tensor<float> Dot(this Tensor<bool> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -206,7 +187,6 @@ public static Tensor<long> Dot(this Tensor<bool> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -216,7 +196,6 @@ public static Tensor<int> Dot(this Tensor<bool> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand Down
20 changes: 0 additions & 20 deletions csharp/Tensor.NET/Algebra/Matmul.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public static class MatmulExtension{
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -17,7 +16,6 @@ public static Tensor<T> Matmul<T>(this Tensor<T> lhs, Tensor<T> rhs) where T : s
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -27,7 +25,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -37,7 +34,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -47,7 +43,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -57,7 +52,6 @@ public static Tensor<double> Matmul(this Tensor<double> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -70,7 +64,6 @@ public static Tensor<float> Matmul(this Tensor<int> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -80,7 +73,6 @@ public static Tensor<long> Matmul(this Tensor<int> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -90,7 +82,6 @@ public static Tensor<int> Matmul(this Tensor<int> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -100,7 +91,6 @@ public static Tensor<double> Matmul(this Tensor<long> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -110,7 +100,6 @@ public static Tensor<float> Matmul(this Tensor<long> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -120,7 +109,6 @@ public static Tensor<long> Matmul(this Tensor<long> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -130,7 +118,6 @@ public static Tensor<long> Matmul(this Tensor<long> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -140,7 +127,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -150,7 +136,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<int> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -160,7 +145,6 @@ public static Tensor<float> Matmul(this Tensor<float> lhs, Tensor<bool> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -170,7 +154,6 @@ public static Tensor<double> Matmul(this Tensor<float> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -180,7 +163,6 @@ public static Tensor<double> Matmul(this Tensor<bool> lhs, Tensor<double> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -190,7 +172,6 @@ public static Tensor<float> Matmul(this Tensor<bool> lhs, Tensor<float> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand All @@ -200,7 +181,6 @@ public static Tensor<long> Matmul(this Tensor<bool> lhs, Tensor<long> rhs){
/// <summary>
/// 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
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns></returns>
Expand Down
6 changes: 3 additions & 3 deletions csharp/Tensor.NET/Manipulation/Flip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ public static partial class Tensor{
/// <param name="src">the tensor to be flipped</param>
/// <param name="axes"> The axes to flip. If it's set to null, then all axis will be flipped. </param>
/// <returns>The flipped tensor</returns>
public static Tensor<T> Flip<T>(Tensor<T> src, int[]? axis = null) where T : struct, IEquatable<T>, IConvertible{
if(axis is null){
public static Tensor<T> Flip<T>(Tensor<T> src, int[]? axes = null) where T : struct, IEquatable<T>, IConvertible{
if(axes is null){
return src.Flip();
}
else{
return src.Flip(axis);
return src.Flip(axes);
}
}
/// <summary>
Expand Down
Loading

0 comments on commit 03c0ced

Please sign in to comment.