74 implementations of IUnaryOperator
System.Numerics.Tensors (74)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (1)
41internal readonly struct IdentityOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
41internal readonly struct AbsoluteOperator<T> : IUnaryOperator<T, T> where T : INumberBase<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Acos.cs (1)
29private readonly struct AcosOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Acosh.cs (1)
29private readonly struct AcoshOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (1)
29private readonly struct AcosPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Asin.cs (1)
29private readonly struct AsinOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Asinh.cs (1)
29internal readonly struct AsinhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (1)
29private readonly struct AsinPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Atan.cs (1)
29internal readonly struct AtanOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Atanh.cs (1)
29internal readonly struct AtanhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (1)
29internal readonly struct AtanPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (1)
26private readonly struct BitDecrementOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.BitIncrement.cs (1)
26private readonly struct BitIncrementOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
26private readonly struct CbrtOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (1)
32private readonly struct CeilingOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertChecked.cs (1)
33internal readonly struct ConvertCheckedFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (4)
165private readonly struct ConvertInt32ToSingle : IUnaryOperator<int, float> 176private readonly struct ConvertUInt32ToSingle : IUnaryOperator<uint, float> 187private readonly struct ConvertUInt64ToDouble : IUnaryOperator<ulong, double> 198private readonly struct ConvertInt64ToDouble : IUnaryOperator<long, double>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
33internal readonly struct ConvertSaturatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (1)
28internal readonly struct ConvertToIntegerOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (1)
28internal readonly struct ConvertToIntegerNativeOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertTruncating.cs (5)
104private readonly struct ConvertSingleToInt32 : IUnaryOperator<float, int> 120private readonly struct ConvertSingleToUInt32 : IUnaryOperator<float, uint> 136private readonly struct ConvertDoubleToUInt64 : IUnaryOperator<double, ulong> 152private readonly struct ConvertDoubleToInt64 : IUnaryOperator<double, long> 234private readonly struct ConvertTruncatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
41private readonly struct CosOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
44internal readonly struct CoshOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
40private readonly struct CosPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Decrement.cs (1)
32private readonly struct DecrementOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
33private readonly struct DegreesToRadiansOperator<T> : IUnaryOperator<T, T> where T : ITrigonometricFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
41internal readonly struct ExpOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (1)
36private readonly struct Exp10Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10M1.cs (1)
36private readonly struct Exp10M1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (1)
36private readonly struct Exp2Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2M1.cs (1)
36private readonly struct Exp2M1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ExpM1.cs (1)
36private readonly struct ExpM1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
32private readonly struct FloorOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (1)
310private readonly struct HalfAsInt16UnaryOperator<TUnary> : IUnaryOperator<short, short>
System\Numerics\Tensors\netcore\TensorPrimitives.ILogB.cs (1)
35private readonly struct ILogBOperator<T> : IUnaryOperator<T, int> where T : IFloatingPointIeee754<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Increment.cs (1)
32private readonly struct IncrementOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
29internal readonly unsafe struct LeadingZeroCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
97internal readonly struct LogOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
42private readonly struct Log10Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
42private readonly struct Log10P1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
43internal readonly struct Log2Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
42private readonly struct Log2P1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
42private readonly struct LogP1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (1)
35internal readonly struct NegateOperator<T> : IUnaryOperator<T, T> where T : IUnaryNegationOperators<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.OnesComplement.cs (1)
32private readonly struct OnesComplementOperator<T> : IUnaryOperator<T, T> where T : IBitwiseOperators<T, T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (1)
43private readonly unsafe struct PopCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (1)
26private readonly struct RadiansToDegreesOperator<T> : IUnaryOperator<T, T> where T : ITrigonometricFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (4)
100private readonly struct ReciprocalOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 109private readonly struct ReciprocalSqrtOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T> 118private readonly struct ReciprocalEstimateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T> 184private readonly struct ReciprocalSqrtEstimateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (2)
174private readonly struct RoundToEvenOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 250private readonly struct RoundAwayFromZeroOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
42internal readonly struct SigmoidOperator<T> : IUnaryOperator<T, T> where T : IExponentialFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
28private readonly struct SignOperator<T> : IUnaryOperator<T, int>
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (1)
40internal readonly struct SinOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
44internal readonly struct SinhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
40private readonly struct SinPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (1)
32private readonly struct SqrtOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (1)
72internal readonly struct SquaredOperator<T> : IUnaryOperator<T, T> where T : IMultiplyOperators<T, T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (3)
40private readonly struct TanOperator<T> : IUnaryOperator<T, T> 109private readonly struct TanOperatorSingle : IUnaryOperator<float, float> 235private readonly struct TanOperatorDouble : IUnaryOperator<double, double>
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
44internal readonly struct TanhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.TanPi.cs (1)
39private readonly struct TanPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (1)
28private readonly unsafe struct TrailingZeroCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (1)
34private readonly struct TruncateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
20 references to IUnaryOperator
System.Numerics.Tensors (20)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (3)
25/// <summary>Adapts a stateless <see cref="IUnaryOperator{TInput, TOutput}"/> to be used as a stateful <see cref="IStatefulUnaryOperator{T}"/>.</summary> 29where TOperator : struct, IUnaryOperator<T, T> 47where TTransformOperator : struct, IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (1)
1397where TTransformOperator : struct, IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (2)
55where TUnaryOperator : struct, IUnaryOperator<T, T> => 68where TUnaryOperator : struct, IUnaryOperator<TInput, TOutput>
System\Numerics\Tensors\netcore\TensorPrimitives.FloatHelpers.cs (6)
10private static Vector128<float> ApplyScalar<TOperator>(Vector128<float> floats) where TOperator : IUnaryOperator<float, float> => 13private static Vector256<float> ApplyScalar<TOperator>(Vector256<float> floats) where TOperator : IUnaryOperator<float, float> => 16private static Vector512<float> ApplyScalar<TOperator>(Vector512<float> floats) where TOperator : IUnaryOperator<float, float> => 19private static Vector128<double> ApplyScalar<TOperator>(Vector128<double> doubles) where TOperator : IUnaryOperator<double, double> => 22private static Vector256<double> ApplyScalar<TOperator>(Vector256<double> doubles) where TOperator : IUnaryOperator<double, double> => 25private static Vector512<double> ApplyScalar<TOperator>(Vector512<double> doubles) where TOperator : IUnaryOperator<double, double> =>
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (4)
50where TOp : struct, IUnaryOperator<float, float> 67where TOp : struct, IUnaryOperator<short, short> 309/// <summary><see cref="IUnaryOperator{T, T}"/> wrapper for working with <see cref="Half"/> reinterpreted as <see cref="short"/> in order to enable vectorization.</summary> 311where TUnary : struct, IUnaryOperator<float, float>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
309where TDelegatedRound : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Single.netcore.cs (3)
42where TSingleUnaryOperator : struct, IUnaryOperator<float, float> => 57where TSingleTransformOperator : struct, IUnaryOperator<float, float> 78where TSingleTransformOperator : struct, IUnaryOperator<float, float>