File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ public static partial class np
60
60
61
61
public static NumPyRandom random { get ; } = new NumPyRandom ( ) ;
62
62
63
- // np.nan
63
+ #region Constants
64
+
64
65
public static double nan => double . NaN ;
65
66
public static double NAN => double . NaN ;
66
67
public static double NaN => double . NaN ;
67
68
public static double pi => Math . PI ;
68
-
69
69
public static double e => Math . E ;
70
70
public static double euler_gamma => 0.57721566490153286060651209008240243d ;
71
71
public static double inf => double . PositiveInfinity ;
@@ -75,7 +75,7 @@ public static partial class np
75
75
public static double PINF => double . PositiveInfinity ;
76
76
public static double Infinity => double . PositiveInfinity ;
77
77
public static double infinity => double . PositiveInfinity ;
78
-
79
- #region Constants
78
+
79
+ #endregion
80
80
}
81
81
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public override NDArray Sin(in NDArray nd, NPTypeCode? typeCode = null)
34
34
case NPTypeCode. Decimal:
35
35
{
36
36
var out_addr = ( decimal * ) @out . Address ;
37
- Parallel . For ( 0 , len , i => * ( out_addr + i ) = ( decimal ) ( Math . Sin ( Converts . ToDouble ( * ( out_addr + i ) ) ) ) ;
37
+ Parallel . For ( 0 , len , i => * ( out_addr + i ) = ( decimal ) ( Math . Sin ( Converts . ToDouble ( * ( out_addr + i ) ) ) ) ) ;
38
38
return @out;
39
39
}
40
40
default :
@@ -103,7 +103,7 @@ public override NDArray Sin(in NDArray nd, NPTypeCode? typeCode = null)
103
103
case NPTypeCode. Decimal :
104
104
{
105
105
var out_addr = ( decimal * ) @out . Address ;
106
- Parallel. For ( 0 , len , i => * ( out_addr + i ) = ( decimal ) ( Math . Sin ( Converts . ToDouble ( * ( out_addr + i ) ) ) ) ;
106
+ Parallel. For ( 0 , len , i => * ( out_addr + i ) = ( decimal ) ( Math . Sin ( Converts . ToDouble ( * ( out_addr + i ) ) ) ) ) ;
107
107
return @out;
108
108
}
109
109
default :
You can’t perform that action at this time.
0 commit comments