FastQuant.Quant.Vector.EnsureNumberPositive C# (CSharp) Method

EnsureNumberPositive() private static method

private static EnsureNumberPositive ( int n, string name ) : void
n int
name string
return void
        private static void EnsureNumberPositive(int n, string name)
        {
            if (n <= 0)
                throw new ArgumentException($"{name} has to be positive");
        }