mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 17:44:48 +09:00
Fixes from API review approvals (#104990)
* fixes from API review approvals * API review 2 merged
This commit is contained in:
parent
41e02e5549
commit
d74d22f3b2
6 changed files with 5018 additions and 1858 deletions
|
@ -62,16 +62,18 @@ namespace System.Numerics.Tensors
|
|||
T this[params scoped System.ReadOnlySpan<System.Buffers.NIndex> indexes] { get; }
|
||||
TSelf this[params scoped System.ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
|
||||
T this[params scoped System.ReadOnlySpan<nint> indexes] { get; }
|
||||
[System.Diagnostics.CodeAnalysis.UnscopedRefAttribute]
|
||||
System.ReadOnlySpan<nint> Lengths { get; }
|
||||
int Rank { get; }
|
||||
[System.Diagnostics.CodeAnalysis.UnscopedRefAttribute]
|
||||
System.ReadOnlySpan<nint> Strides { get; }
|
||||
System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
|
||||
System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped System.ReadOnlySpan<System.Buffers.NIndex> startIndex);
|
||||
System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped System.ReadOnlySpan<System.Buffers.NRange> range);
|
||||
System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped System.ReadOnlySpan<nint> start);
|
||||
void CopyTo(scoped System.Numerics.Tensors.TensorSpan<T> destination);
|
||||
void FlattenTo(scoped System.Span<T> destination);
|
||||
void GetLengths(scoped System.Span<nint> destination);
|
||||
ref readonly T GetPinnableReference();
|
||||
void GetStrides(scoped System.Span<nint> destination);
|
||||
TSelf Slice(params scoped System.ReadOnlySpan<System.Buffers.NIndex> startIndex);
|
||||
TSelf Slice(params scoped System.ReadOnlySpan<System.Buffers.NRange> range);
|
||||
TSelf Slice(params scoped System.ReadOnlySpan<nint> start);
|
||||
|
@ -157,240 +159,360 @@ namespace System.Numerics.Tensors
|
|||
}
|
||||
public static partial class Tensor
|
||||
{
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Abs<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Abs<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Acosh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Acosh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AcosPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AcosPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Acos<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Acos<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Add<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Add<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, T val, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Add<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Add<T>(System.Numerics.Tensors.Tensor<T> input, T val) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Asinh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Asinh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AsinPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AsinPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Asin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Asin<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, params scoped System.ReadOnlySpan<nint> shape) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> AsTensorSpan<T>(this T[]? array, params scoped System.ReadOnlySpan<nint> shape) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2Pi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2Pi<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atanh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atanh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AtanPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AtanPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseAnd<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseAnd<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseOr<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseOr<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Abs<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Abs<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Acosh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Acosh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AcosPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AcosPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Acos<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Acos<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Add<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Add<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Add<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Add<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Asinh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Asinh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AsinPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AsinPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Asin<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Asin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> AsTensorSpan<T>(this T[]? array, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2Pi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2Pi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2Pi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2Pi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2Pi<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2Pi<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan2<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan2<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atanh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atanh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> AtanPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> AtanPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Atan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Atan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static T Average<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseAnd<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseAnd<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseAnd<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseAnd<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseOr<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseOr<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> BitwiseOr<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> BitwiseOr<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static void BroadcastTo<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static void BroadcastTo<T>(this in System.Numerics.Tensors.TensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static void BroadcastTo<T>(this System.Numerics.Tensors.Tensor<T> source, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static System.Numerics.Tensors.Tensor<T> Broadcast<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> lengthsSource) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Broadcast<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cbrt<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cbrt<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ceiling<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ceiling<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Concatenate<T>(scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, int axis = 0) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Broadcast<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> source, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> lengthsSource) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Broadcast<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> source, scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cbrt<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cbrt<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ceiling<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ceiling<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> ConcatenateOnDimension<T>(int dimension, params scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ConcatenateOnDimension<T>(int dimension, scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Concatenate<T>(params scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Concatenate<T>(scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertChecked<TFrom, TTo>(in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source, in System.Numerics.Tensors.TensorSpan<TTo> destination) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertChecked<TFrom, TTo>(System.Numerics.Tensors.Tensor<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertSaturating<TFrom, TTo>(in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source, in System.Numerics.Tensors.TensorSpan<TTo> destination) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertSaturating<TFrom, TTo>(System.Numerics.Tensors.Tensor<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertTruncating<TFrom, TTo>(in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<TFrom> source, in System.Numerics.Tensors.TensorSpan<TTo> destination) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<TTo> ConvertTruncating<TFrom, TTo>(System.Numerics.Tensors.Tensor<TFrom> source) where TFrom : System.IEquatable<TFrom>, System.Numerics.IEqualityOperators<TFrom, TFrom, bool>, System.Numerics.INumberBase<TFrom> where TTo : System.Numerics.INumberBase<TTo> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, T sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CopySign<T>(System.Numerics.Tensors.Tensor<T> input, System.Numerics.Tensors.Tensor<T> sign) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CopySign<T>(System.Numerics.Tensors.Tensor<T> input, T sign) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cosh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cosh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosineSimilarity<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CosineSimilarity<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CosPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cos<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cos<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CopySign<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> sign) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CopySign<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T sign) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CopySign<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T sign, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cosh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cosh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CosineSimilarity<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosineSimilarity<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CosPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> CosPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Cos<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Cos<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateAndFillGaussianNormalDistribution<T>(System.Random random, params scoped System.ReadOnlySpan<nint> lengths) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateAndFillGaussianNormalDistribution<T>(params scoped System.ReadOnlySpan<nint> lengths) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T>(System.Random random, params scoped System.ReadOnlySpan<nint> lengths) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T>(params scoped System.ReadOnlySpan<nint> lengths) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateUninitialized<T>(scoped System.ReadOnlySpan<nint> lengths, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> CreateUninitialized<T>(scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(System.Collections.Generic.IEnumerable<T> data, scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(System.Collections.Generic.IEnumerable<T> data, scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool isPinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(System.Collections.Generic.IEnumerable<T> values, scoped System.ReadOnlySpan<nint> lengths, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(System.Collections.Generic.IEnumerable<T> values, scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(scoped System.ReadOnlySpan<nint> lengths, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(T[] values, scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(T[] values, scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool isPinned = false) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> DegreesToRadians<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> DegreesToRadians<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static T Distance<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static T Distance<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, T val, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(System.Numerics.Tensors.Tensor<T> input, T val) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(T val, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(T val, System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static T Dot<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T>, System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static T Dot<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T>, System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> ElementwiseEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> ElementwiseEqual<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp10M1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp10M1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp10<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp10<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp2M1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp2M1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp2<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ExpM1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> ExpM1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FillGaussianNormalDistribution<T>(in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FillUniformDistribution<T>(in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> FilteredUpdate<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<bool> filter, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> FilteredUpdate<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<bool> filter, T value) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Floor<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Floor<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(T[] values, scoped System.ReadOnlySpan<nint> lengths, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Create<T>(T[] values, scoped System.ReadOnlySpan<nint> lengths, scoped System.ReadOnlySpan<nint> strides, bool pinned = false) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> DegreesToRadians<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> DegreesToRadians<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static T Distance<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Divide<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Divide<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IDivisionOperators<T, T, T> { throw null; }
|
||||
public static T Dot<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T>, System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static bool EqualsAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static bool EqualsAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static bool EqualsAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static bool EqualsAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> Equals<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> Equals<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> Equals<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> Equals<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IEqualityOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp10M1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp10M1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp10<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp10<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp2M1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp2M1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp2<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> ExpM1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ExpM1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Exp<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Exp<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FillGaussianNormalDistribution<T>(in System.Numerics.Tensors.TensorSpan<T> destination, System.Random? random = null) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FillUniformDistribution<T>(in System.Numerics.Tensors.TensorSpan<T> destination, System.Random? random = null) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FilteredUpdate<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<bool> filter, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> FilteredUpdate<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<bool> filter, T value) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Floor<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Floor<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static nint[] GetSmallestBroadcastableLengths(System.ReadOnlySpan<nint> shape1, System.ReadOnlySpan<nint> shape2) { throw null; }
|
||||
public static bool GreaterThanAll<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAny<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThan<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThan<T>(System.Numerics.Tensors.Tensor<T> left, T right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Hypot<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Hypot<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ieee754Remainder<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ieee754Remainder<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<int> ILogB<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<int> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<int> ILogB<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static int IndexOfMaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMaxMagnitude<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMax<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMax<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMinMagnitude<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMin<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> LeadingZeroCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> LeadingZeroCount<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static bool LessThanAll<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAny<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThan<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThan<T>(System.Numerics.Tensors.Tensor<T> left, T right) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log10P1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log10P1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log10<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log10<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log2P1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log2P1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log2<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> LogP1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> LogP1<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static T MaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MaxMagnitude<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MaxNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MaxNumber<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Max<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Max<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Mean<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static T MinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinMagnitude<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinNumber<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Min<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Min<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, T val, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Multiply<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Multiply<T>(System.Numerics.Tensors.Tensor<T> input, T val) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Negate<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IUnaryNegationOperators<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Negate<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IUnaryNegationOperators<T, T> { throw null; }
|
||||
public static T Norm<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static T Norm<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> OnesComplement<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> OnesComplement<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Permute<T>(this System.Numerics.Tensors.Tensor<T> input, params scoped System.ReadOnlySpan<int> axis) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> PopCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> PopCount<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Pow<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Pow<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static T Product<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static T Product<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RadiansToDegrees<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> RadiansToDegrees<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Reciprocal<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reciprocal<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Reshape<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Reshape<T>(this in System.Numerics.Tensors.TensorSpan<T> input, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reshape<T>(this System.Numerics.Tensors.Tensor<T> input, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Resize<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Resize<T>(System.Numerics.Tensors.Tensor<T> input, System.ReadOnlySpan<nint> shape) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reverse<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, nint axis = -1) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Reverse<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination, nint axis = -1) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Round<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Round<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static bool SequenceEqual<T>(this scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> span, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> other) { throw null; }
|
||||
public static bool GreaterThanAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAll<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanAny<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> s, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAll<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool GreaterThanOrEqualAny<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThanOrEqual<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThanOrEqual<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThanOrEqual<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> GreaterThan<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> GreaterThan<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Hypot<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Hypot<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ieee754Remainder<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ieee754Remainder<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ieee754Remainder<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ieee754Remainder<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Ieee754Remainder<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Ieee754Remainder<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<int> ILogB<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<int> ILogB<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<int> destination) where T : System.Numerics.IFloatingPointIeee754<T> { throw null; }
|
||||
public static int IndexOfMaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMax<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static int IndexOfMin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> LeadingZeroCount<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> LeadingZeroCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static bool LessThanAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> f, T x) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAll<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> f, T x) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanAny<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAll<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> f, T x) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAll<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAny<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> f, T x) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static bool LessThanOrEqualAny<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThanOrEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThanOrEqual<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThanOrEqual<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<bool> LessThan<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<bool> LessThan<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<bool> destination) where T : System.Numerics.IComparisonOperators<T, T, bool> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log10P1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log10P1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log10<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log10<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log2P1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log2P1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log2<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log2<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> LogP1<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> LogP1<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Log<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Log<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ILogarithmicFunctions<T> { throw null; }
|
||||
public static T MaxMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxMagnitudeNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxMagnitudeNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxMagnitude<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxMagnitude<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MaxNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MaxNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MaxNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Max<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Max<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Max<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Max<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Max<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumberBase<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinMagnitudeNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinMagnitudeNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinMagnitudeNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinMagnitude<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinMagnitude<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinMagnitude<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T MinNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> MinNumber<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> MinNumber<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static T Min<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Min<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Min<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Min<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Min<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.INumber<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Multiply<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Multiply<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T, T, T>, System.Numerics.IMultiplicativeIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Negate<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IUnaryNegationOperators<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Negate<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IUnaryNegationOperators<T, T> { throw null; }
|
||||
public static T Norm<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> OnesComplement<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> OnesComplement<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> PermuteDimensions<T>(this System.Numerics.Tensors.Tensor<T> tensor, params scoped System.ReadOnlySpan<int> dimensions) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> PopCount<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> PopCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Pow<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Pow<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Pow<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Pow<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Pow<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Pow<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IPowerFunctions<T> { throw null; }
|
||||
public static T Product<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IMultiplicativeIdentity<T, T>, System.Numerics.IMultiplyOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> RadiansToDegrees<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RadiansToDegrees<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reciprocal<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Reciprocal<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Reshape<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Reshape<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reshape<T>(this System.Numerics.Tensors.Tensor<T> tensor, params scoped System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static void ResizeTo<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static void ResizeTo<T>(scoped in System.Numerics.Tensors.TensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static void ResizeTo<T>(scoped in System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { }
|
||||
public static System.Numerics.Tensors.Tensor<T> Resize<T>(System.Numerics.Tensors.Tensor<T> tensor, System.ReadOnlySpan<nint> lengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> ReverseDimension<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int dimension) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ReverseDimension<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Reverse<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Reverse<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> RootN<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int n) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RootN<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int n, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> RotateLeft<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RotateLeft<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> RotateRight<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> RotateRight<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int rotateAmount, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Round<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Round<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int digits) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Round<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int digits, System.MidpointRounding mode) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Round<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int digits, System.MidpointRounding mode, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Round<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, int digits, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Round<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, System.MidpointRounding mode) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Round<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, System.MidpointRounding mode, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Round<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static bool SequenceEqual<T>(this scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> other) where T : System.IEquatable<T>? { throw null; }
|
||||
public static bool SequenceEqual<T>(this scoped in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> other) where T : System.IEquatable<T>? { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SetSlice<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, params scoped System.ReadOnlySpan<System.Buffers.NRange> ranges) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SetSlice<T>(this System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, params scoped System.ReadOnlySpan<System.Buffers.NRange> ranges) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sigmoid<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sigmoid<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sinh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sinh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SinPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SinPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sin<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SoftMax<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SoftMax<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T>[] Split<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, nint numSplits, nint axis) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sqrt<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sqrt<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Squeeze<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, int axis = -1) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Squeeze<T>(this in System.Numerics.Tensors.TensorSpan<T> input, int axis = -1) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Squeeze<T>(this System.Numerics.Tensors.Tensor<T> input, int axis = -1) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Stack<T>(System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> input, int axis = 0) { throw null; }
|
||||
public static T StdDev<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.IFloatingPoint<T>, System.Numerics.IPowerFunctions<T>, System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, T val, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(System.Numerics.Tensors.Tensor<T> input, T val) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(T val, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(T val, System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static T Sum<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static T Sum<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Tanh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Tanh<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> TanPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> TanPi<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Tan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Tan<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static string ToString<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> span, params scoped System.ReadOnlySpan<nint> maximumLengths) { throw null; }
|
||||
public static string ToString<T>(this in System.Numerics.Tensors.TensorSpan<T> span, params scoped System.ReadOnlySpan<nint> maximumLengths) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> TrailingZeroCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> TrailingZeroCount<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Transpose<T>(System.Numerics.Tensors.Tensor<T> input) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Truncate<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Truncate<T>(System.Numerics.Tensors.Tensor<T> input) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this in System.Numerics.Tensors.TensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this System.Numerics.Tensors.Tensor<T> input, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Unsqueeze<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, int axis) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Unsqueeze<T>(this in System.Numerics.Tensors.TensorSpan<T> input, int axis) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Unsqueeze<T>(this System.Numerics.Tensors.Tensor<T> input, int axis) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Xor<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> left, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> right, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Xor<T>(System.Numerics.Tensors.Tensor<T> left, System.Numerics.Tensors.Tensor<T> right) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sigmoid<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sigmoid<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sinh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sinh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SinPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SinPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sin<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sin<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SoftMax<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SoftMax<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IExponentialFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T>[] Split<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Sqrt<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Sqrt<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IRootFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> SqueezeDimension<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> SqueezeDimension<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> SqueezeDimension<T>(this System.Numerics.Tensors.Tensor<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Squeeze<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Squeeze<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Squeeze<T>(this System.Numerics.Tensors.Tensor<T> tensor) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> StackAlongDimension<T>(int dimension, params scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> StackAlongDimension<T>(scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Stack<T>(params scoped System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors) { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Stack<T>(scoped in System.ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static T StdDev<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T>, System.Numerics.IPowerFunctions<T>, System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Subtract<T>(T x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Subtract<T>(T x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ISubtractionOperators<T, T, T> { throw null; }
|
||||
public static T Sum<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IAdditionOperators<T, T, T>, System.Numerics.IAdditiveIdentity<T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Tanh<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Tanh<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IHyperbolicFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> TanPi<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> TanPi<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Tan<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Tan<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.ITrigonometricFunctions<T> { throw null; }
|
||||
public static string ToString<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, params scoped System.ReadOnlySpan<nint> maximumLengths) { throw null; }
|
||||
public static string ToString<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, params scoped System.ReadOnlySpan<nint> maximumLengths) { throw null; }
|
||||
public static string ToString<T>(this System.Numerics.Tensors.Tensor<T> tensor, params scoped System.ReadOnlySpan<nint> maximumLengths) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> TrailingZeroCount<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> TrailingZeroCount<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBinaryInteger<T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Transpose<T>(System.Numerics.Tensors.Tensor<T> tensor) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Truncate<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Truncate<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IFloatingPoint<T> { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static bool TryBroadcastTo<T>(this System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination) { throw null; }
|
||||
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> Unsqueeze<T>(this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.TensorSpan<T> Unsqueeze<T>(this in System.Numerics.Tensors.TensorSpan<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Unsqueeze<T>(this System.Numerics.Tensors.Tensor<T> tensor, int dimension) { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Xor<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Xor<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static System.Numerics.Tensors.Tensor<T> Xor<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Xor<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T, T, T> { throw null; }
|
||||
}
|
||||
public static partial class TensorPrimitives
|
||||
{
|
||||
|
@ -630,6 +752,8 @@ namespace System.Numerics.Tensors
|
|||
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.this[params scoped System.ReadOnlySpan<System.Buffers.NIndex> indexes] { get { throw null; } }
|
||||
System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.this[params scoped System.ReadOnlySpan<System.Buffers.NRange> ranges] { get { throw null; } }
|
||||
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.this[params scoped System.ReadOnlySpan<nint> indexes] { get { throw null; } }
|
||||
System.ReadOnlySpan<nint> System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.Lengths { get { throw null; } }
|
||||
System.ReadOnlySpan<nint> System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.Strides { get { throw null; } }
|
||||
bool System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.IsReadOnly { get { throw null; } }
|
||||
T System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.this[params scoped System.ReadOnlySpan<System.Buffers.NIndex> indexes] { get { throw null; } set { } }
|
||||
T System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.this[params scoped System.ReadOnlySpan<nint> indexes] { get { throw null; } set { } }
|
||||
|
@ -657,10 +781,8 @@ namespace System.Numerics.Tensors
|
|||
public System.Numerics.Tensors.Tensor<T> Slice(params scoped System.ReadOnlySpan<nint> start) { throw null; }
|
||||
System.Collections.Generic.IEnumerator<T> System.Collections.Generic.IEnumerable<T>.GetEnumerator() { throw null; }
|
||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
|
||||
void System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.GetLengths(System.Span<nint> destination) { }
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
ref readonly T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.GetPinnableReference() { throw null; }
|
||||
void System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>, T>.GetStrides(scoped System.Span<nint> destination) { }
|
||||
static System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.Create(System.ReadOnlySpan<nint> lengths, bool pinned) { throw null; }
|
||||
static System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.Create(System.ReadOnlySpan<nint> lengths, System.ReadOnlySpan<nint> strides, bool pinned) { throw null; }
|
||||
static System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>, T>.CreateUninitialized(System.ReadOnlySpan<nint> lengths, bool pinned) { throw null; }
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
using System.Buffers;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace System.Numerics.Tensors
|
||||
{
|
||||
|
@ -28,9 +29,11 @@ namespace System.Numerics.Tensors
|
|||
void CopyTo(scoped TensorSpan<T> destination);
|
||||
void FlattenTo(scoped Span<T> destination);
|
||||
|
||||
// These are not properties so that structs can implement the interface without allocating:
|
||||
void GetLengths(scoped Span<nint> destination);
|
||||
void GetStrides(scoped Span<nint> destination);
|
||||
[UnscopedRef]
|
||||
ReadOnlySpan<nint> Lengths { get; }
|
||||
|
||||
[UnscopedRef]
|
||||
ReadOnlySpan<nint> Strides { get; }
|
||||
|
||||
ref readonly T GetPinnableReference();
|
||||
TSelf Slice(params scoped ReadOnlySpan<nint> start);
|
||||
|
|
|
@ -44,9 +44,10 @@ namespace System.Numerics.Tensors
|
|||
/// </summary>
|
||||
/// <param name="values">An array of the backing memory.</param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
/// <param name="pinned">A <see cref="bool"/> indicating whether the <paramref name="values"/> were pinned or not.</param>
|
||||
/// <exception cref="ArgumentOutOfRangeException"></exception>
|
||||
public static Tensor<T> Create<T>(T[] values, scoped ReadOnlySpan<nint> lengths)
|
||||
=> Create(values, lengths, []);
|
||||
public static Tensor<T> Create<T>(T[] values, scoped ReadOnlySpan<nint> lengths, bool pinned = false)
|
||||
=> Create(values, lengths, [], pinned);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> from the provided <paramref name="values"/>. If the product of the
|
||||
|
@ -55,51 +56,37 @@ namespace System.Numerics.Tensors
|
|||
/// <param name="values">An array of the backing memory.</param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param>
|
||||
/// <param name="isPinned">A <see cref="bool"/> indicating whether the <paramref name="values"/> were pinned or not.</param>
|
||||
/// <param name="pinned">A <see cref="bool"/> indicating whether the <paramref name="values"/> were pinned or not.</param>
|
||||
/// <exception cref="ArgumentOutOfRangeException"></exception>
|
||||
public static Tensor<T> Create<T>(T[] values, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool isPinned = false)
|
||||
public static Tensor<T> Create<T>(T[] values, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false)
|
||||
{
|
||||
return new Tensor<T>(values, lengths, strides, isPinned);
|
||||
return new Tensor<T>(values, lengths, strides, pinned);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with the data from <paramref name="data"/>.
|
||||
/// </summary>
|
||||
/// <param name="data">A <see cref="IEnumerable{T}"/> with the data to use for the initialization.</param>
|
||||
/// <param name="lengths"></param>
|
||||
public static Tensor<T> Create<T>(IEnumerable<T> data, scoped ReadOnlySpan<nint> lengths)
|
||||
{
|
||||
T[] values = data.ToArray();
|
||||
return new Tensor<T>(values, lengths.IsEmpty ? [values.Length] : lengths, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with the data from <paramref name="data"/>.
|
||||
/// </summary>
|
||||
/// <param name="data">A <see cref="IEnumerable{T}"/> with the data to use for the initialization.</param>
|
||||
/// <param name="lengths"></param>
|
||||
/// <param name="strides"></param>
|
||||
/// <param name="isPinned"></param>
|
||||
public static Tensor<T> Create<T>(IEnumerable<T> data, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool isPinned = false)
|
||||
{
|
||||
T[] values = data.ToArray();
|
||||
return new Tensor<T>(values, lengths.IsEmpty ? [values.Length] : lengths, strides, isPinned);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with random data uniformly distributed.
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with the data from <paramref name="values"/>.
|
||||
/// </summary>
|
||||
/// <param name="values">A <see cref="IEnumerable{T}"/> with the data to use for the initialization.</param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
public static Tensor<T> CreateAndFillUniformDistribution<T>(params scoped ReadOnlySpan<nint> lengths)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
nint linearLength = TensorSpanHelpers.CalculateTotalLength(lengths);
|
||||
T[] values = new T[linearLength];
|
||||
Random rand = Random.Shared;
|
||||
for (int i = 0; i < values.Length; i++)
|
||||
values[i] = T.CreateChecked(rand.NextDouble());
|
||||
/// <param name="pinned">A <see cref="bool"/> indicating whether the <paramref name="values"/> were pinned or not.</param>
|
||||
|
||||
return new Tensor<T>(values, lengths, false);
|
||||
public static Tensor<T> Create<T>(IEnumerable<T> values, scoped ReadOnlySpan<nint> lengths, bool pinned = false)
|
||||
{
|
||||
T[] data = values.ToArray();
|
||||
return new Tensor<T>(data, lengths.IsEmpty ? [data.Length] : lengths, pinned);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with the data from <paramref name="values"/>.
|
||||
/// </summary>
|
||||
/// <param name="values">A <see cref="IEnumerable{T}"/> with the data to use for the initialization.</param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param>
|
||||
/// <param name="pinned">A <see cref="bool"/> indicating whether the <paramref name="values"/> were pinned or not.</param>
|
||||
public static Tensor<T> Create<T>(IEnumerable<T> values, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false)
|
||||
{
|
||||
T[] data = values.ToArray();
|
||||
return new Tensor<T>(data, lengths.IsEmpty ? [data.Length] : lengths, strides, pinned);
|
||||
}
|
||||
|
||||
#region Normal
|
||||
|
@ -109,26 +96,63 @@ namespace System.Numerics.Tensors
|
|||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
public static Tensor<T> CreateAndFillGaussianNormalDistribution<T>(params scoped ReadOnlySpan<nint> lengths)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
return CreateAndFillGaussianNormalDistribution<T>(Random.Shared, lengths);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with random data in a gaussian normal distribution.
|
||||
/// </summary>
|
||||
/// <param name="random"></param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
public static Tensor<T> CreateAndFillGaussianNormalDistribution<T>(Random random, params scoped ReadOnlySpan<nint> lengths)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
nint linearLength = TensorSpanHelpers.CalculateTotalLength(lengths);
|
||||
T[] values = new T[linearLength];
|
||||
GaussianDistribution<T>(values, linearLength);
|
||||
GaussianDistribution<T>(values, linearLength, random);
|
||||
return new Tensor<T>(values, lengths, false);
|
||||
}
|
||||
|
||||
private static void GaussianDistribution<T>(in Span<T> values, nint linearLength)
|
||||
private static void GaussianDistribution<T>(in Span<T> values, nint linearLength, Random random)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
Random rand = Random.Shared;
|
||||
for (int i = 0; i < linearLength; i++)
|
||||
{
|
||||
double u1 = 1.0 - rand.NextDouble();
|
||||
double u2 = 1.0 - rand.NextDouble();
|
||||
double u1 = 1.0 - random.NextDouble();
|
||||
double u2 = 1.0 - random.NextDouble();
|
||||
values[i] = T.CreateChecked(Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with random data uniformly distributed.
|
||||
/// </summary>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
public static Tensor<T> CreateAndFillUniformDistribution<T>(params scoped ReadOnlySpan<nint> lengths)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
return CreateAndFillUniformDistribution<T>(Random.Shared, lengths);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and initializes it with random data uniformly distributed.
|
||||
/// </summary>
|
||||
/// <param name="random"></param>
|
||||
/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param>
|
||||
public static Tensor<T> CreateAndFillUniformDistribution<T>(Random random, params scoped ReadOnlySpan<nint> lengths)
|
||||
where T : IFloatingPoint<T>
|
||||
{
|
||||
nint linearLength = TensorSpanHelpers.CalculateTotalLength(lengths);
|
||||
T[] values = new T[linearLength];
|
||||
for (int i = 0; i < values.Length; i++)
|
||||
values[i] = T.CreateChecked(random.NextDouble());
|
||||
|
||||
return new Tensor<T>(values, lengths, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a <see cref="Tensor{T}"/> and does not initialize it. If <paramref name="pinned"/> is true, the memory will be pinned.
|
||||
/// </summary>
|
||||
|
@ -150,21 +174,21 @@ namespace System.Numerics.Tensors
|
|||
return new Tensor<T>(values, lengths, strides, pinned);
|
||||
}
|
||||
|
||||
public static ref readonly TensorSpan<T> FillGaussianNormalDistribution<T>(in TensorSpan<T> destination) where T : IFloatingPoint<T>
|
||||
public static ref readonly TensorSpan<T> FillGaussianNormalDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T : IFloatingPoint<T>
|
||||
{
|
||||
Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape._memoryLength);
|
||||
|
||||
GaussianDistribution<T>(span, destination._shape._memoryLength);
|
||||
GaussianDistribution<T>(span, destination._shape._memoryLength, random ?? Random.Shared);
|
||||
|
||||
return ref destination;
|
||||
}
|
||||
|
||||
public static ref readonly TensorSpan<T> FillUniformDistribution<T>(in TensorSpan<T> destination) where T : IFloatingPoint<T>
|
||||
public static ref readonly TensorSpan<T> FillUniformDistribution<T>(in TensorSpan<T> destination, Random? random = null) where T : IFloatingPoint<T>
|
||||
{
|
||||
Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape._memoryLength);
|
||||
|
||||
random ??= Random.Shared;
|
||||
for (int i = 0; i < span.Length; i++)
|
||||
span[i] = T.CreateChecked(Random.Shared.NextDouble());
|
||||
span[i] = T.CreateChecked(random.NextDouble());
|
||||
|
||||
return ref destination;
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@ namespace System.Numerics.Tensors
|
|||
/// Gets the length of each dimension in this <see cref="Tensor{T}"/>.
|
||||
/// </summary>
|
||||
/// <value><see cref="ReadOnlySpan{T}"/> with the lengths of each dimension.</value>
|
||||
void IReadOnlyTensor<Tensor<T>, T>.GetLengths(Span<nint> destination) => _lengths.CopyTo(destination);
|
||||
ReadOnlySpan<nint> IReadOnlyTensor<Tensor<T>, T>.Lengths => _lengths;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
@ -185,7 +185,7 @@ namespace System.Numerics.Tensors
|
|||
/// Gets the strides of each dimension in this <see cref="Tensor{T}"/>.
|
||||
/// </summary>
|
||||
/// <value><see cref="ReadOnlySpan{T}"/> with the strides of each dimension.</value>
|
||||
void IReadOnlyTensor<Tensor<T>, T>.GetStrides(scoped Span<nint> destination) => _strides.CopyTo(destination);
|
||||
ReadOnlySpan<nint> IReadOnlyTensor<Tensor<T>, T>.Strides => _strides;
|
||||
|
||||
bool ITensor<Tensor<T>, T>.IsReadOnly => false;
|
||||
|
||||
|
@ -652,10 +652,12 @@ namespace System.Numerics.Tensors
|
|||
/// <returns>A <see cref="string"/> representation of the <see cref="Tensor{T}"/></returns>
|
||||
public string ToString(params ReadOnlySpan<nint> maximumLengths)
|
||||
{
|
||||
if (maximumLengths.Length == 0)
|
||||
maximumLengths = (from number in Enumerable.Range(0, Rank) select (nint)5).ToArray();
|
||||
var sb = new StringBuilder();
|
||||
sb.AppendLine(ToMetadataString());
|
||||
sb.AppendLine("{");
|
||||
sb.Append(AsTensorSpan().ToString(10, 10));
|
||||
sb.Append(AsTensorSpan().ToString(maximumLengths));
|
||||
sb.AppendLine("}");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using Xunit;
|
||||
using static System.Numerics.Tensors.Tests.TensorTests;
|
||||
|
||||
namespace System.Numerics.Tensors.Tests
|
||||
{
|
||||
|
@ -33,6 +34,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
return totalLength;
|
||||
}
|
||||
|
||||
public delegate Tensor<T> PerformSpanInSpanOut<T>(scoped in ReadOnlyTensorSpan<T> input);
|
||||
public delegate void PerformCalculationSpanInSpanOut<T>(ReadOnlySpan<T> input, Span<T> output);
|
||||
|
||||
public static IEnumerable<object[]> SpanInSpanOutData()
|
||||
|
@ -85,12 +87,12 @@ namespace System.Numerics.Tensors.Tests
|
|||
yield return Create<float>(TensorPrimitives.TanPi, Tensor.TanPi);
|
||||
yield return Create<float>(TensorPrimitives.Truncate, Tensor.Truncate);
|
||||
|
||||
static object[] Create<T>(PerformCalculationSpanInSpanOut<T> tensorPrimitivesMethod, Func<Tensor<T>, Tensor<T>> tensorOperation)
|
||||
static object[] Create<T>(PerformCalculationSpanInSpanOut<T> tensorPrimitivesMethod, PerformSpanInSpanOut<T> tensorOperation)
|
||||
=> new object[] { tensorPrimitivesMethod, tensorOperation };
|
||||
}
|
||||
|
||||
[Theory, MemberData(nameof(SpanInSpanOutData))]
|
||||
public void TensorExtensionsSpanInSpanOut<T>(PerformCalculationSpanInSpanOut<T> tensorPrimitivesOperation, Func<Tensor<T>, Tensor<T>> tensorOperation)
|
||||
public void TensorExtensionsSpanInSpanOut<T>(PerformCalculationSpanInSpanOut<T> tensorPrimitivesOperation, PerformSpanInSpanOut<T> tensorOperation)
|
||||
where T: INumberBase<T>
|
||||
{
|
||||
Assert.All(Helpers.TensorShapes, tensorLength =>
|
||||
|
@ -115,6 +117,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
});
|
||||
}
|
||||
|
||||
public delegate T PerformSpanInTOut<T>(scoped in ReadOnlyTensorSpan<T> input);
|
||||
public delegate T PerformCalculationSpanInTOut<T>(ReadOnlySpan<T> input);
|
||||
public static IEnumerable<object[]> SpanInFloatOutData()
|
||||
{
|
||||
|
@ -128,12 +131,12 @@ namespace System.Numerics.Tensors.Tests
|
|||
yield return Create<float>(TensorPrimitives.Product, Tensor.Product);
|
||||
yield return Create<float>(TensorPrimitives.Sum, Tensor.Sum);
|
||||
|
||||
static object[] Create<T>(PerformCalculationSpanInTOut<T> tensorPrimitivesMethod, Func<Tensor<T>, T> tensorOperation)
|
||||
static object[] Create<T>(PerformCalculationSpanInTOut<T> tensorPrimitivesMethod, PerformSpanInTOut<T> tensorOperation)
|
||||
=> new object[] { tensorPrimitivesMethod, tensorOperation };
|
||||
}
|
||||
|
||||
[Theory, MemberData(nameof(SpanInFloatOutData))]
|
||||
public void TensorExtensionsSpanInTOut<T>(PerformCalculationSpanInTOut<T> tensorPrimitivesOperation, Func<Tensor<T>, T> tensorOperation)
|
||||
public void TensorExtensionsSpanInTOut<T>(PerformCalculationSpanInTOut<T> tensorPrimitivesOperation, PerformSpanInTOut<T> tensorOperation)
|
||||
where T : INumberBase<T>
|
||||
{
|
||||
Assert.All(Helpers.TensorShapes, tensorLength =>
|
||||
|
@ -150,6 +153,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
});
|
||||
}
|
||||
|
||||
public delegate Tensor<T> PerformTwoSpanInSpanOut<T>(scoped in ReadOnlyTensorSpan<T> input, scoped in ReadOnlyTensorSpan<T> input2);
|
||||
public delegate void PerformCalculationTwoSpanInSpanOut<T>(ReadOnlySpan<T> input, ReadOnlySpan<T> inputTwo, Span<T> output);
|
||||
public static IEnumerable<object[]> TwoSpanInSpanOutData()
|
||||
{
|
||||
|
@ -164,12 +168,12 @@ namespace System.Numerics.Tensors.Tests
|
|||
yield return Create<float>(TensorPrimitives.Pow, Tensor.Pow);
|
||||
yield return Create<float>(TensorPrimitives.Subtract, Tensor.Subtract);
|
||||
|
||||
static object[] Create<T>(PerformCalculationTwoSpanInSpanOut<T> tensorPrimitivesMethod, Func<Tensor<T>, Tensor<T>, Tensor<T>> tensorOperation)
|
||||
static object[] Create<T>(PerformCalculationTwoSpanInSpanOut<T> tensorPrimitivesMethod, PerformTwoSpanInSpanOut<T> tensorOperation)
|
||||
=> new object[] { tensorPrimitivesMethod, tensorOperation };
|
||||
}
|
||||
|
||||
[Theory, MemberData(nameof(TwoSpanInSpanOutData))]
|
||||
public void TensorExtensionsTwoSpanInSpanOut<T>(PerformCalculationTwoSpanInSpanOut<T> tensorPrimitivesOperation, Func<Tensor<T>, Tensor<T>, Tensor<T>> tensorOperation)
|
||||
public void TensorExtensionsTwoSpanInSpanOut<T>(PerformCalculationTwoSpanInSpanOut<T> tensorPrimitivesOperation, PerformTwoSpanInSpanOut<T> tensorOperation)
|
||||
where T: INumberBase<T>
|
||||
{
|
||||
Assert.All(Helpers.TensorShapes, tensorLength =>
|
||||
|
@ -197,18 +201,19 @@ namespace System.Numerics.Tensors.Tests
|
|||
});
|
||||
}
|
||||
|
||||
public delegate T PerformTwoSpanInFloatOut<T>(scoped in ReadOnlyTensorSpan<T> input, scoped in ReadOnlyTensorSpan<T> input2);
|
||||
public delegate T PerformCalculationTwoSpanInFloatOut<T>(ReadOnlySpan<T> input, ReadOnlySpan<T> inputTwo);
|
||||
public static IEnumerable<object[]> TwoSpanInFloatOutData()
|
||||
{
|
||||
yield return Create<float>(TensorPrimitives.Distance, Tensor.Distance);
|
||||
yield return Create<float>(TensorPrimitives.Dot, Tensor.Dot);
|
||||
|
||||
static object[] Create<T>(PerformCalculationTwoSpanInFloatOut<T> tensorPrimitivesMethod, Func<Tensor<T>, Tensor<T>, T> tensorOperation)
|
||||
static object[] Create<T>(PerformCalculationTwoSpanInFloatOut<T> tensorPrimitivesMethod, PerformTwoSpanInFloatOut<T> tensorOperation)
|
||||
=> new object[] { tensorPrimitivesMethod, tensorOperation };
|
||||
}
|
||||
|
||||
[Theory, MemberData(nameof(TwoSpanInFloatOutData))]
|
||||
public void TensorExtensionsTwoSpanInFloatOut<T>(PerformCalculationTwoSpanInFloatOut<T> tensorPrimitivesOperation, Func<Tensor<T>, Tensor<T>, T> tensorOperation)
|
||||
public void TensorExtensionsTwoSpanInFloatOut<T>(PerformCalculationTwoSpanInFloatOut<T> tensorPrimitivesOperation, PerformTwoSpanInFloatOut<T> tensorOperation)
|
||||
where T: INumberBase<T>
|
||||
{
|
||||
Assert.All(Helpers.TensorShapes, tensorLength =>
|
||||
|
@ -543,21 +548,21 @@ namespace System.Numerics.Tensors.Tests
|
|||
// Make sure strides can't be negative
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => {
|
||||
Span<int> a = [91, 92, -93, 94];
|
||||
var t1 = Tensor.Create<int>([1, 2], [-1, 0], false);
|
||||
var t1 = Tensor.Create<int>((Span<nint>)[1, 2], [-1, 0], false);
|
||||
});
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => {
|
||||
Span<int> a = [91, 92, -93, 94];
|
||||
var t1 = Tensor.Create<int>([1, 2], [0, -1], false);
|
||||
var t1 = Tensor.Create<int>((Span<nint>)[1, 2], [0, -1], false);
|
||||
});
|
||||
|
||||
// Make sure lengths can't be negative
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => {
|
||||
Span<int> a = [91, 92, -93, 94];
|
||||
var t1 = Tensor.Create<int>([-1, 2], [], false);
|
||||
var t1 = Tensor.Create<int>([-1, 2], false);
|
||||
});
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => {
|
||||
Span<int> a = [91, 92, -93, 94];
|
||||
var t1 = Tensor.Create<int>([1, -2], [], false);
|
||||
var t1 = Tensor.Create<int>([1, -2], false);
|
||||
});
|
||||
|
||||
// Make sure 2D array works with strides to hit element 0,0,2,2
|
||||
|
@ -572,8 +577,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
|
||||
// Make sure you can't overlap elements using strides
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => {
|
||||
Span<int> a = [91, 92, -93, 94];
|
||||
var t1 = Tensor.Create<int>([2, 2], [1, 1], false);
|
||||
var t1 = Tensor.Create<int>((Span<nint>)[2, 2], [1, 1], false);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -586,7 +590,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Tensor<float> left = Tensor.Create<float>(a, [2,3]);
|
||||
Tensor<float> right = Tensor.Create<float>(b, [2,3]);
|
||||
|
||||
Tensor<float> result = Tensor.CosineSimilarity(left, right);
|
||||
Tensor<float> result = Tensor.CosineSimilarity(left.AsReadOnlyTensorSpan(), right);
|
||||
Assert.Equal(2, result.Rank);
|
||||
Assert.Equal(2, result.Lengths[0]);
|
||||
Assert.Equal(2, result.Lengths[1]);
|
||||
|
@ -678,7 +682,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
{
|
||||
Tensor<int> t0 = Tensor.Create(Enumerable.Range(0, 3), default);
|
||||
Tensor<int> t1 = Tensor.Create(Enumerable.Range(0, 3), [3, 1]);
|
||||
Tensor<int> t2 = Tensor.Multiply(t0, t1);
|
||||
Tensor<int> t2 = Tensor.Multiply(t0.AsReadOnlyTensorSpan(), t1);
|
||||
|
||||
Assert.Equal([3,3], t2.Lengths.ToArray());
|
||||
Assert.Equal(0, t2[0, 0]);
|
||||
|
@ -691,7 +695,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, t2[2, 1]);
|
||||
Assert.Equal(4, t2[2, 2]);
|
||||
|
||||
t2 = Tensor.Multiply(t1, t0);
|
||||
t2 = Tensor.Multiply(t1.AsReadOnlyTensorSpan(), t0);
|
||||
|
||||
Assert.Equal([3, 3], t2.Lengths.ToArray());
|
||||
Assert.Equal(0, t2[0, 0]);
|
||||
|
@ -705,7 +709,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(4, t2[2, 2]);
|
||||
|
||||
t1 = Tensor.Create(Enumerable.Range(0, 9), [3, 3]);
|
||||
t2 = Tensor.Multiply(t0, t1);
|
||||
t2 = Tensor.Multiply(t0.AsReadOnlyTensorSpan(), t1);
|
||||
|
||||
Assert.Equal([3, 3], t2.Lengths.ToArray());
|
||||
Assert.Equal(0, t2[0, 0]);
|
||||
|
@ -905,7 +909,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(1, t1[1, 1, 0]);
|
||||
Assert.Equal(0, t1[1, 1, 1]);
|
||||
|
||||
t1 = Tensor.Reverse<int>(t0, 0);
|
||||
t1 = Tensor.ReverseDimension<int>(t0, 0);
|
||||
Assert.Equal(4, t1[0, 0, 0]);
|
||||
Assert.Equal(5, t1[0, 0, 1]);
|
||||
Assert.Equal(6, t1[0, 1, 0]);
|
||||
|
@ -915,7 +919,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, t1[1, 1, 0]);
|
||||
Assert.Equal(3, t1[1, 1, 1]);
|
||||
|
||||
t1 = Tensor.Reverse<int>(t0, 1);
|
||||
t1 = Tensor.ReverseDimension<int>(t0, 1);
|
||||
Assert.Equal(2, t1[0, 0, 0]);
|
||||
Assert.Equal(3, t1[0, 0, 1]);
|
||||
Assert.Equal(0, t1[0, 1, 0]);
|
||||
|
@ -925,7 +929,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(4, t1[1, 1, 0]);
|
||||
Assert.Equal(5, t1[1, 1, 1]);
|
||||
|
||||
t1 = Tensor.Reverse<int>(t0, 2);
|
||||
t1 = Tensor.ReverseDimension<int>(t0, 2);
|
||||
Assert.Equal(1, t1[0, 0, 0]);
|
||||
Assert.Equal(0, t1[0, 0, 1]);
|
||||
Assert.Equal(3, t1[0, 1, 0]);
|
||||
|
@ -1017,7 +1021,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(8, resultTensor[1, 1, 3]);
|
||||
Assert.Equal(9, resultTensor[1, 1, 4]);
|
||||
|
||||
resultTensor = Tensor.Stack([t0, t1], axis:1);
|
||||
resultTensor = Tensor.StackAlongDimension(1, [t0, t1]);
|
||||
Assert.Equal(3, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
Assert.Equal(2, resultTensor.Lengths[1]);
|
||||
|
@ -1044,7 +1048,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(8, resultTensor[1, 1, 3]);
|
||||
Assert.Equal(9, resultTensor[1, 1, 4]);
|
||||
|
||||
resultTensor = Tensor.Stack([t0, t1], axis: 2);
|
||||
resultTensor = Tensor.StackAlongDimension(2, [t0, t1]);
|
||||
Assert.Equal(3, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
Assert.Equal(5, resultTensor.Lengths[1]);
|
||||
|
@ -1096,7 +1100,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
{
|
||||
Tensor<float> t0 = Tensor.Create<float>((Enumerable.Range(0, 4).Select(i => (float)i)), [2, 2]);
|
||||
|
||||
Assert.Equal(Mean([0, 1, 2, 3]), Tensor.Mean<float>(t0), .1);
|
||||
Assert.Equal(Mean([0, 1, 2, 3]), Tensor.Average<float>(t0), .1);
|
||||
}
|
||||
|
||||
public static float Mean(float[] values)
|
||||
|
@ -1128,7 +1132,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, resultTensor[3, 0]);
|
||||
Assert.Equal(3, resultTensor[3, 1]);
|
||||
|
||||
resultTensor = Tensor.Concatenate([t0, t1], 1);
|
||||
resultTensor = Tensor.ConcatenateOnDimension(1, [t0, t1]);
|
||||
Assert.Equal(2, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
Assert.Equal(4, resultTensor.Lengths[1]);
|
||||
|
@ -1141,7 +1145,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, resultTensor[1, 2]);
|
||||
Assert.Equal(3, resultTensor[1, 3]);
|
||||
|
||||
resultTensor = Tensor.Concatenate([t0, t1], -1);
|
||||
resultTensor = Tensor.ConcatenateOnDimension(-1, [t0, t1]);
|
||||
Assert.Equal(1, resultTensor.Rank);
|
||||
Assert.Equal(8, resultTensor.Lengths[0]);
|
||||
Assert.Equal(0, resultTensor[0]);
|
||||
|
@ -1172,7 +1176,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, resultTensor[5, 0]);
|
||||
Assert.Equal(3, resultTensor[5, 1]);
|
||||
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2], -1);
|
||||
resultTensor = Tensor.ConcatenateOnDimension(-1, [t0, t1, t2]);
|
||||
|
||||
Assert.Equal(1, resultTensor.Rank);
|
||||
Assert.Equal(12, resultTensor.Lengths[0]);
|
||||
|
@ -1189,7 +1193,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, resultTensor[10]);
|
||||
Assert.Equal(3, resultTensor[11]);
|
||||
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2], 1);
|
||||
resultTensor = Tensor.ConcatenateOnDimension(1, [t0, t1, t2]);
|
||||
|
||||
Assert.Equal(2, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
|
@ -1210,17 +1214,17 @@ namespace System.Numerics.Tensors.Tests
|
|||
t0 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 3, 2]);
|
||||
t1 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 3, 2]);
|
||||
t2 = Tensor.Create<float>((Enumerable.Range(0, 8).Select(i => (float)i)), [2, 2, 2]);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 2));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 5));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], -2));
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2], -1);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(0, [t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(2, [t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(5, [t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(-2, [t0, t1, t2]));
|
||||
resultTensor = Tensor.ConcatenateOnDimension(-1, [t0, t1, t2]);
|
||||
float[] result = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7];
|
||||
Assert.Equal(1, resultTensor.Rank);
|
||||
Assert.Equal(32, resultTensor.Lengths[0]);
|
||||
Assert.Equal(result, resultTensor.ToArray());
|
||||
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2], 1);
|
||||
resultTensor = Tensor.ConcatenateOnDimension(1, [t0, t1, t2]);
|
||||
result = [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 4, 5, 6, 7];
|
||||
Assert.Equal(3, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
|
@ -1237,9 +1241,9 @@ namespace System.Numerics.Tensors.Tests
|
|||
t0 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 2, 3]);
|
||||
t1 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 2, 3]);
|
||||
t2 = Tensor.Create<float>((Enumerable.Range(0, 8).Select(i => (float)i)), [2, 2, 2]);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 0));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 1));
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2], 2);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(1, [t0, t1, t2]));
|
||||
resultTensor = Tensor.ConcatenateOnDimension(2, [t0, t1, t2]);
|
||||
result = [0, 1, 2, 0, 1, 2, 0, 1, 3, 4, 5, 3, 4, 5, 2, 3, 6, 7, 8, 6, 7, 8, 4, 5, 9, 10, 11, 9, 10, 11, 6, 7];
|
||||
Assert.Equal(3, resultTensor.Rank);
|
||||
Assert.Equal(2, resultTensor.Lengths[0]);
|
||||
|
@ -1256,9 +1260,9 @@ namespace System.Numerics.Tensors.Tests
|
|||
t0 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [3, 2, 2]);
|
||||
t1 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [3, 2, 2]);
|
||||
t2 = Tensor.Create<float>((Enumerable.Range(0, 8).Select(i => (float)i)), [2, 2, 2]);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 1));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.Concatenate([t0, t1, t2], 2));
|
||||
resultTensor = Tensor.Concatenate([t0, t1, t2]);
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(1, [t0, t1, t2]));
|
||||
Assert.Throws<ArgumentException>(() => Tensor.ConcatenateOnDimension(2, [t0, t1, t2]));
|
||||
resultTensor = Tensor.ConcatenateOnDimension(0, [t0, t1, t2]);
|
||||
result = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7];
|
||||
Assert.Equal(3, resultTensor.Rank);
|
||||
Assert.Equal(8, resultTensor.Lengths[0]);
|
||||
|
@ -1277,7 +1281,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
public static void TensorTransposeTests()
|
||||
{
|
||||
Tensor<float> t0 = Tensor.Create<float>((Enumerable.Range(0, 4).Select(i => (float)i)), [2, 2]);
|
||||
var t1 = Tensor.Permute(t0);
|
||||
var t1 = Tensor.PermuteDimensions(t0);
|
||||
|
||||
Assert.Equal(0, t1[0, 0]);
|
||||
Assert.Equal(2, t1[0, 1]);
|
||||
|
@ -1285,7 +1289,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(3, t1[1, 1]);
|
||||
|
||||
t0 = Tensor.Create<float>((Enumerable.Range(0, 6).Select(i => (float)i)), [2, 3]);
|
||||
t1 = Tensor.Permute(t0);
|
||||
t1 = Tensor.PermuteDimensions(t0);
|
||||
|
||||
Assert.Equal(3, t1.Lengths[0]);
|
||||
Assert.Equal(2, t1.Lengths[1]);
|
||||
|
@ -1297,7 +1301,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(5, t1[2, 1]);
|
||||
|
||||
t0 = Tensor.Create<float>((Enumerable.Range(0, 6).Select(i => (float)i)), [1, 2, 3]);
|
||||
t1 = Tensor.Permute(t0);
|
||||
t1 = Tensor.PermuteDimensions(t0);
|
||||
|
||||
Assert.Equal(3, t1.Lengths[0]);
|
||||
Assert.Equal(2, t1.Lengths[1]);
|
||||
|
@ -1310,7 +1314,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(5, t1[2, 1, 0]);
|
||||
|
||||
t0 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 2, 3]);
|
||||
t1 = Tensor.Permute(t0);
|
||||
t1 = Tensor.PermuteDimensions(t0);
|
||||
|
||||
Assert.Equal(3, t1.Lengths[0]);
|
||||
Assert.Equal(2, t1.Lengths[1]);
|
||||
|
@ -1329,7 +1333,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(11, t1[2, 1, 1]);
|
||||
|
||||
t0 = Tensor.Create<float>((Enumerable.Range(0, 12).Select(i => (float)i)), [2, 2, 3]);
|
||||
t1 = Tensor.Permute(t0, 1, 2, 0);
|
||||
t1 = Tensor.PermuteDimensions(t0, 1, 2, 0);
|
||||
|
||||
Assert.Equal(2, t1.Lengths[0]);
|
||||
Assert.Equal(3, t1.Lengths[1]);
|
||||
|
@ -2063,7 +2067,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, tensor.Lengths[1]);
|
||||
Assert.Equal(1, tensor.Lengths[2]);
|
||||
|
||||
tensor = Tensor.Squeeze(tensor, 0);
|
||||
tensor = Tensor.SqueezeDimension(tensor, 0);
|
||||
Assert.Equal(2, tensor.Rank);
|
||||
Assert.Equal(2, tensor.Lengths[0]);
|
||||
Assert.Equal(1, tensor.Lengths[1]);
|
||||
|
@ -2075,7 +2079,7 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, tensor.Lengths[1]);
|
||||
Assert.Equal(1, tensor.Lengths[2]);
|
||||
|
||||
tensor = Tensor.Squeeze(tensor, 2);
|
||||
tensor = Tensor.SqueezeDimension(tensor, 2);
|
||||
Assert.Equal(2, tensor.Rank);
|
||||
Assert.Equal(1, tensor.Lengths[0]);
|
||||
Assert.Equal(2, tensor.Lengths[1]);
|
||||
|
@ -2087,8 +2091,8 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(2, tensor.Lengths[1]);
|
||||
Assert.Equal(1, tensor.Lengths[2]);
|
||||
|
||||
Assert.Throws<ArgumentException>(() => tensor = Tensor.Squeeze(tensor, 1));
|
||||
Assert.Throws<ArgumentException>(() => tensor = Tensor.Squeeze(tensor, 3));
|
||||
Assert.Throws<ArgumentException>(() => tensor = Tensor.SqueezeDimension(tensor, 1));
|
||||
Assert.Throws<ArgumentException>(() => tensor = Tensor.SqueezeDimension(tensor, 3));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -2124,5 +2128,429 @@ namespace System.Numerics.Tensors.Tests
|
|||
Assert.Equal(0, t0[0, 0]);
|
||||
Assert.Equal(1, t0[1, 0]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
Tensor<bool> result = Tensor.GreaterThan(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { false, false, true }, result.ToArray());
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThan(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { true, false, true, true }, result.ToArray());
|
||||
|
||||
result = Tensor.GreaterThan(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
|
||||
Assert.Equal(new bool[] { false, false, true, true }, result.ToArray());
|
||||
|
||||
result = Tensor.GreaterThan(2, tensor1.AsReadOnlyTensorSpan());
|
||||
|
||||
Assert.Equal(new bool[] { true, false, false, false }, result.ToArray());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanOrEqualTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
Tensor<bool> result = Tensor.GreaterThanOrEqual(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { false, true, true }, result.ToArray());
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThanOrEqual(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { true, true, true, true }, result.ToArray());
|
||||
|
||||
result = Tensor.GreaterThanOrEqual(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
|
||||
Assert.Equal(new bool[] { false, true, true, true }, result.ToArray());
|
||||
|
||||
result = Tensor.GreaterThanOrEqual(2, tensor1.AsReadOnlyTensorSpan());
|
||||
|
||||
Assert.Equal(new bool[] { true, true, false, false }, result.ToArray());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanAllTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.GreaterThanAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThanAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanAll(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanAll(tensor1.AsReadOnlyTensorSpan(), 0);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanAll(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanAll(5, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanOrEqualAllTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.GreaterThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAll(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAll(4, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanAnyTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.GreaterThanAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThanAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanAny(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanAny(tensor1.AsReadOnlyTensorSpan(), 5);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanAny(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanAny(0, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanAny(3, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorGreaterThanOrEqualAnyTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.GreaterThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), 5);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(0, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.GreaterThanOrEqualAny(1, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
Tensor<bool> result = Tensor.LessThan(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { true, false, false }, result.ToArray());
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThan(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { false, false, false, false }, result.ToArray());
|
||||
|
||||
result = Tensor.LessThan(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
|
||||
Assert.Equal(new bool[] { true, false, false, false }, result.ToArray());
|
||||
|
||||
result = Tensor.LessThan(2, tensor1.AsReadOnlyTensorSpan());
|
||||
|
||||
Assert.Equal(new bool[] { false, false, true, true }, result.ToArray());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanOrEqualTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
Tensor<bool> result = Tensor.LessThanOrEqual(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { true, true, false }, result.ToArray());
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThanOrEqual(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { false, true, false, false }, result.ToArray());
|
||||
|
||||
result = Tensor.LessThanOrEqual(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
|
||||
Assert.Equal(new bool[] { true, true, false, false }, result.ToArray());
|
||||
|
||||
result = Tensor.LessThanOrEqual(2, tensor1.AsReadOnlyTensorSpan());
|
||||
|
||||
Assert.Equal(new bool[] { false, true, true, true }, result.ToArray());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanAllTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.LessThanAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThanAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanAll(tensor1.AsReadOnlyTensorSpan(), 4);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanAll(tensor1.AsReadOnlyTensorSpan(), 5);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanAll(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanAll(0, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanAnyTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.LessThanAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThanAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanAny(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanAny(tensor1.AsReadOnlyTensorSpan(), 5);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanAny(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanAny(5, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanAny(3, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanOrEqualAllTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.LessThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(tensor2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), 4);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(tensor1.AsReadOnlyTensorSpan(), 3);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAll(1, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorLessThanOrEqualAnyTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3], false);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 2, 2, 2 }, [3], false);
|
||||
|
||||
bool result = Tensor.LessThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4 }, [2, 2], false);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 0, 2, 2, 3 }, [2, 2], false);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(tensor1.AsReadOnlyTensorSpan(), 0);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(2, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(5, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.LessThanOrEqualAny(4, tensor1.AsReadOnlyTensorSpan());
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorEqualsTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3]);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3]);
|
||||
|
||||
Tensor<bool> result = Tensor.Equals(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { true, true, true }, result.ToArray());
|
||||
|
||||
result = Tensor.Equals(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
|
||||
Assert.Equal(new bool[] { true, false, false}, result.ToArray());
|
||||
|
||||
result = Tensor.Equals(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
|
||||
Assert.Equal(new bool[] { false, true, false }, result.ToArray());
|
||||
|
||||
result = Tensor.Equals(tensor1.AsReadOnlyTensorSpan(), 3);
|
||||
|
||||
Assert.Equal(new bool[] { false, false, true }, result.ToArray());
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4, 5, 6 }, [2, 3]);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 4, 5, 6 }, [3]);
|
||||
|
||||
result = Tensor.Equals(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
|
||||
Assert.Equal(new bool[] { false, false, false, true, true, true }, result.ToArray());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorEqualsAllTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3]);
|
||||
Tensor<int> tensor2 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3]);
|
||||
|
||||
bool result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), 2);
|
||||
Assert.False(result);
|
||||
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), 3);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 1, 1 }, [3]);
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), 1);
|
||||
Assert.True(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3, 4, 5, 6 }, [2, 3]);
|
||||
tensor2 = Tensor.Create<int>(new int[] { 4, 5, 6 }, [3]);
|
||||
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.False(result);
|
||||
|
||||
tensor1 = Tensor.Create<int>(new int[] { 4, 5, 6, 4, 5, 6 }, [2, 3]);
|
||||
result = Tensor.EqualsAll(tensor1.AsReadOnlyTensorSpan(), tensor2);
|
||||
Assert.True(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TensorFilteredUpdateTest()
|
||||
{
|
||||
Tensor<int> tensor1 = Tensor.Create<int>(new int[] { 1, 2, 3 }, [3]);
|
||||
Tensor<bool> filter = Tensor.Create<bool>(new bool[] { true, false, false }, [3]);
|
||||
Tensor<int> replace = Tensor.Create<int>(new int[] { -1, -1, -1 }, [3]);
|
||||
|
||||
Tensor.FilteredUpdate(tensor1.AsTensorSpan(), filter, 2);
|
||||
Assert.Equal(new int[] { 2, 2, 3 }, tensor1.ToArray());
|
||||
|
||||
Tensor.FilteredUpdate(tensor1.AsTensorSpan(), filter, replace);
|
||||
Assert.Equal(new int[] { -1, 2, 3 }, tensor1.ToArray());
|
||||
|
||||
filter = Tensor.Create<bool>(new bool[] { true, true, true}, [3]);
|
||||
Tensor.FilteredUpdate(tensor1.AsTensorSpan(), filter, replace);
|
||||
Assert.Equal(new int[] { -1, -1, -1 }, tensor1.ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue