66 implementations of IUnaryOperator
System.Numerics.Tensors (66)
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)
34internal 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.Cbrt.cs (1)
26private readonly struct CbrtOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (1)
25private 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.ConvertTruncating.cs (5)
104private readonly struct ConvertSingleToInt32 : IUnaryOperator<float, int> 115private readonly struct ConvertSingleToUInt32 : IUnaryOperator<float, uint> 126private readonly struct ConvertDoubleToUInt64 : IUnaryOperator<double, ulong> 137private readonly struct ConvertDoubleToInt64 : IUnaryOperator<double, long> 214private readonly struct ConvertTruncatingFallbackOperator<TFrom, TTo> : IUnaryOperator<TFrom, TTo> where TFrom : INumberBase<TFrom> where TTo : INumberBase<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
33private readonly struct CosOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
37internal readonly struct CoshOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
33private readonly struct CosPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
26private readonly struct DegreesToRadiansOperator<T> : IUnaryOperator<T, T> where T : ITrigonometricFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
34internal readonly struct ExpOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (1)
29private readonly struct Exp10Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10M1.cs (1)
29private readonly struct Exp10M1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (1)
29private readonly struct Exp2Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2M1.cs (1)
29private readonly struct Exp2M1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ExpM1.cs (1)
29private readonly struct ExpM1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
25private readonly struct FloorOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
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.LeadingZeroCount.cs (1)
29internal readonly unsafe struct LeadingZeroCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (1)
76internal readonly struct LogOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
35private readonly struct Log10Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
35private readonly struct Log10P1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
36internal readonly struct Log2Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
35private readonly struct Log2P1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
35private readonly struct LogP1Operator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (1)
28internal readonly struct NegateOperator<T> : IUnaryOperator<T, T> where T : IUnaryNegationOperators<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.OnesComplement.cs (1)
25private 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)
72private readonly struct ReciprocalOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 81private readonly struct ReciprocalSqrtOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T> 90private readonly struct ReciprocalEstimateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T> 156private readonly struct ReciprocalSqrtEstimateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPointIeee754<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (2)
162private readonly struct RoundToEvenOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T> 238private readonly struct RoundAwayFromZeroOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
37internal readonly struct SigmoidOperator<T> : IUnaryOperator<T, T> where T : IExponentialFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (1)
33internal readonly struct SinOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (1)
37internal readonly struct SinhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
33private readonly struct SinPiOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (1)
25private 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)
33private readonly struct TanOperator<T> : IUnaryOperator<T, T> 102private readonly struct TanOperatorSingle : IUnaryOperator<float, float> 228private readonly struct TanOperatorDouble : IUnaryOperator<double, double>
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
37internal readonly struct TanhOperator<T> : IUnaryOperator<T, T>
System\Numerics\Tensors\netcore\TensorPrimitives.TanPi.cs (1)
32private 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)
27private readonly struct TruncateOperator<T> : IUnaryOperator<T, T> where T : IFloatingPoint<T>
14 references to IUnaryOperator
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (1)
32where 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.Round.cs (1)
297where 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>