++
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -229,7 +229,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MultiplyCore(units, multiplicator, result);
|
||||
Extensions.Multiply(units, multiplicator, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX[] Multiply(this double multiplicator, XXXXXXXXXXXXXX[] units)
|
||||
@@ -256,7 +256,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
Span<XXXXXXXXXXXXXX> result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MultiplyCore(units, multiplicator, result);
|
||||
Extensions.Multiply(units, multiplicator, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX> Multiply(this double multiplicator, ReadOnlySpan<XXXXXXXXXXXXXX> units)
|
||||
@@ -287,7 +287,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.MultiplyCore(CollectionsMarshal.AsSpan(units), multiplicator, CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Multiply(CollectionsMarshal.AsSpan(units), multiplicator, CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX> Multiply(this double multiplicator, List<XXXXXXXXXXXXXX> units)
|
||||
@@ -369,7 +369,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
throw new ArgumentException("Делитель не может быть 0 или NaN.", nameof(divisor));
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.DivideCore(units, divisor, result);
|
||||
Extensions.Divide(units, divisor, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX[] Divide(this double dividend, XXXXXXXXXXXXXX[] units)
|
||||
@@ -378,7 +378,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.DivideCore(dividend, units, result); // Вызов зеркального ядра (число / массив)
|
||||
Extensions.Divide(dividend, units, result); // Вызов зеркального ядра (число / массив)
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX?[] Divide(this XXXXXXXXXXXXXX?[] units, double divisor)
|
||||
@@ -417,14 +417,14 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
if (divisor == 0 || double.IsNaN(divisor)) throw new ArgumentException("Делитель не может быть 0 или NaN.", nameof(divisor));
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.DivideCore(units, divisor, result);
|
||||
Extensions.Divide(units, divisor, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX> Divide(this double dividend, ReadOnlySpan<XXXXXXXXXXXXXX> units)
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.DivideCore(dividend, units, result);
|
||||
Extensions.Divide(dividend, units, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX?> Divide(this ReadOnlySpan<XXXXXXXXXXXXXX?> units, double divisor)
|
||||
@@ -469,7 +469,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.DivideCore(CollectionsMarshal.AsSpan(units), divisor, CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Divide(CollectionsMarshal.AsSpan(units), divisor, CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX> Divide(this double dividend, List<XXXXXXXXXXXXXX> units)
|
||||
@@ -480,7 +480,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.DivideCore(dividend, CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Divide(dividend, CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX?> Divide(this List<XXXXXXXXXXXXXX?> units, double divisor)
|
||||
@@ -599,7 +599,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.PlusCore(units, summand, result);
|
||||
Extensions.Plus(units, summand, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX[] Plus(this double summand, XXXXXXXXXXXXXX[] units)
|
||||
@@ -626,7 +626,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.PlusCore(units, summand, result);
|
||||
Extensions.Plus(units, summand, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX> Plus(this double summand, ReadOnlySpan<XXXXXXXXXXXXXX> units)
|
||||
@@ -657,7 +657,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.PlusCore(CollectionsMarshal.AsSpan(units), summand, CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Plus(CollectionsMarshal.AsSpan(units), summand, CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX> Plus(this double summand, List<XXXXXXXXXXXXXX> units)
|
||||
@@ -737,7 +737,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MinusCore(units, subtrahend, result);
|
||||
Extensions.Minus(units, subtrahend, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX[] Minus(this double minuend, XXXXXXXXXXXXXX[] units)
|
||||
@@ -746,7 +746,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MinusCore(minuend, units, result); // Вызов зеркального ядра (число - массив)
|
||||
Extensions.Minus(minuend, units, result); // Вызов зеркального ядра (число - массив)
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX?[] Minus(this XXXXXXXXXXXXXX?[] units, double subtrahend)
|
||||
@@ -783,14 +783,14 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MinusCore(units, subtrahend, result);
|
||||
Extensions.Minus(units, subtrahend, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX> Minus(this double minuend, ReadOnlySpan<XXXXXXXXXXXXXX> units)
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.MinusCore(minuend, units, result);
|
||||
Extensions.Minus(minuend, units, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX?> Minus(this ReadOnlySpan<XXXXXXXXXXXXXX?> units, double subtrahend)
|
||||
@@ -831,7 +831,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.MinusCore(CollectionsMarshal.AsSpan(units), subtrahend, CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Minus(CollectionsMarshal.AsSpan(units), subtrahend, CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX> Minus(this double minuend, List<XXXXXXXXXXXXXX> units)
|
||||
@@ -842,7 +842,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.MinusCore(minuend, CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Minus(minuend, CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX?> Minus(this List<XXXXXXXXXXXXXX?> units, double subtrahend)
|
||||
@@ -960,7 +960,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.PowCore(units, power, result);
|
||||
Extensions.Pow(units, power, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX?[] Pow(this XXXXXXXXXXXXXX?[] units, int power)
|
||||
@@ -987,7 +987,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.PowCore(units, power, result);
|
||||
Extensions.Pow(units, power, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX?> Pow(this ReadOnlySpan<XXXXXXXXXXXXXX?> units, int power)
|
||||
@@ -1013,7 +1013,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.PowCore(CollectionsMarshal.AsSpan(units), power, CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Pow(CollectionsMarshal.AsSpan(units), power, CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX?> Pow(this List<XXXXXXXXXXXXXX?> units, int power)
|
||||
@@ -1202,7 +1202,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
if (units.Length == 0) return [];
|
||||
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.SqrtCore(units, result);
|
||||
Extensions.Sqrt(units, result);
|
||||
return result;
|
||||
}
|
||||
public static XXXXXXXXXXXXXX?[] Sqrt(this XXXXXXXXXXXXXX?[] units)
|
||||
@@ -1228,7 +1228,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
{
|
||||
if (units.Length == 0) return [];
|
||||
var result = new XXXXXXXXXXXXXX[units.Length];
|
||||
Extensions.SqrtCore(units, result);
|
||||
Extensions.Sqrt(units, result);
|
||||
return result;
|
||||
}
|
||||
public static Span<XXXXXXXXXXXXXX?> Sqrt(this ReadOnlySpan<XXXXXXXXXXXXXX?> units)
|
||||
@@ -1254,7 +1254,7 @@ public static class XXXXXXXXXXXXXXExtension
|
||||
|
||||
var result = new List<XXXXXXXXXXXXXX>(len);
|
||||
result.SetCountUnsafe(len);
|
||||
Extensions.SqrtCore(CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
Extensions.Sqrt(CollectionsMarshal.AsSpan(units), CollectionsMarshal.AsSpan(result));
|
||||
return result;
|
||||
}
|
||||
public static List<XXXXXXXXXXXXXX?> Sqrt(this List<XXXXXXXXXXXXXX?> units)
|
||||
|
||||
Reference in New Issue
Block a user