Refactored some tests, removed unnecessary code
このコミットが含まれているのは:
1 親
cbb828033e
コミット
8699e037e7
3ファイル変更
+3
-47
検索条件に一致するファイルはありません
@@ -9,21 +9,6 @@ namespace ComputeSharp.NetCore.Tests.Extensions
|
||||
/// </summary>
|
||||
public static class SpanExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Fills an input <see cref="Span{T}"/> instance with random <see langword="float"/> values
|
||||
/// </summary>
|
||||
/// <param name="span">The target <see cref="Span{T}"/> to fill</param>
|
||||
public static void FillRandom(this Span<float> span)
|
||||
{
|
||||
if (span.Length == 0) return;
|
||||
|
||||
var l = span.Length;
|
||||
ref var rspan = ref span.GetPinnableReference();
|
||||
|
||||
for (var i = 0; i < l; i++)
|
||||
Unsafe.Add(ref rspan, i) = (float)ConcurrentRandom.Instance.NextDouble();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The maximum threshold to validate two <see langword="float"/> values as being equal
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする