Skip to content

Commit a001c47

Browse files
committed
More minor compilation fixes
1 parent b33800c commit a001c47

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

src/NumSharp.Core/Backends/Default/Math/Default.Sinh.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override NDArray Sinh(in NDArray nd, NPTypeCode? typeCode = null)
3333
case NPTypeCode.Decimal:
3434
{
3535
var out_addr = (decimal*)@out.Address;
36-
Parallel.For(0, len, i => *(out_addr + i) = (decimal)(Math.Sinh(Converts.ToDouble(*(out_addr + i))));
36+
Parallel.For(0, len, i => *(out_addr + i) = (decimal)(Math.Sinh(Converts.ToDouble(*(out_addr + i)))));
3737
return @out;
3838
}
3939
default:
@@ -102,7 +102,7 @@ public override NDArray Sinh(in NDArray nd, NPTypeCode? typeCode = null)
102102
case NPTypeCode.Decimal:
103103
{
104104
var out_addr = (decimal*)@out.Address;
105-
Parallel.For(0, len, i => *(out_addr + i) = (decimal)(Math.Sinh(Converts.ToDouble(*(out_addr + i))));
105+
Parallel.For(0, len, i => *(out_addr + i) = (decimal)(Math.Sinh(Converts.ToDouble(*(out_addr + i)))));
106106
return @out;
107107
}
108108
default:

src/NumSharp.Core/Utilities/Converts`1.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Runtime.CompilerServices;
3+
using NumSharp.Backends;
34

45
namespace NumSharp.Utilities
56
{
@@ -160,16 +161,6 @@ static Converts()
160161

161162
private static readonly Func<T, decimal> _toDecimal = Converts.FindConverter<T, decimal>();
162163

163-
/// <summary>
164-
/// Converts <typeparamref name="T"/> to <see cref="UString"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
165-
/// </summary>
166-
/// <param name="obj">The object to convert to <see cref="UString"/></param>
167-
/// <returns>A <see cref="UString"/></returns>
168-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
169-
public static UString ToUString(T obj) => _toUString(obj);
170-
171-
private static readonly Func<T, UString> _toUString = Converts.FindConverter<T, UString>();
172-
173164
/// <summary>
174165
/// Converts <typeparamref name="T"/> to <see cref="String"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
175166
/// </summary>
@@ -303,14 +294,6 @@ static Converts()
303294
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static T From(decimal obj) => _fromDecimal(obj);
304295
private static readonly Func<decimal, T> _fromDecimal = Converts.FindConverter<decimal, T>();
305296

306-
/// <summary>
307-
/// Converts <see cref="UString"/> to <typeparamref name="T"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
308-
/// </summary>
309-
/// <param name="obj">The object to convert to <typeparamref name="T"/> from <see cref="UString"/></param>
310-
/// <returns>A <typeparamref name="T"/></returns>
311-
[MethodImpl(MethodImplOptions.AggressiveInlining)] public static T From(UString obj) => _fromUString(obj);
312-
private static readonly Func<UString, T> _fromUString = Converts.FindConverter<UString, T>();
313-
314297
/// <summary>
315298
/// Converts <see cref="String"/> to <typeparamref name="T"/> using staticly cached <see cref="Converts.FindConverter{TIn,TOut}"/>.
316299
/// </summary>

0 commit comments

Comments
 (0)