当前位置: 首页>>代码示例>>C#>>正文


C# ScalarValue.GetIntegerOrThrowException方法代码示例

本文整理汇总了C#中ScalarValue.GetIntegerOrThrowException方法的典型用法代码示例。如果您正苦于以下问题:C# ScalarValue.GetIntegerOrThrowException方法的具体用法?C# ScalarValue.GetIntegerOrThrowException怎么用?C# ScalarValue.GetIntegerOrThrowException使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ScalarValue的用法示例。


在下文中一共展示了ScalarValue.GetIntegerOrThrowException方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Function

 public ContourPlotValue Function(MatrixValue X, MatrixValue Y, MatrixValue Z, ScalarValue n)
 {
     var nn = n.GetIntegerOrThrowException("n", Name);
     var plot = new ContourPlotValue();
     plot.AddPoints(X, Y, Z);
     plot.SetLevels(nn);
     return plot;
 }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:8,代码来源:ContourFunction.cs

示例2: Function

 public SubPlotValue Function(ScalarValue rows, ScalarValue columns)
 {
     var r = rows.GetIntegerOrThrowException("rows", Name);
     var c = columns.GetIntegerOrThrowException("columns", Name);
     var subplot = new SubPlotValue();
     subplot.Rows = r;
     subplot.Columns = c;
     return subplot;
 }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:9,代码来源:SubplotFunction.cs

示例3: Function

        public MatrixValue Function(ScalarValue n, ScalarValue alpha, MatrixValue Z)
        {
            var nn = n.GetIntegerOrThrowException("n", Name);
            var M = new MatrixValue(Z.DimensionY, Z.DimensionX);

            for (var i = 1; i <= Z.DimensionX; i++)
            {
                for (var j = 1; j <= Z.DimensionY; j++)
                {
                    M[j, i] = Gegenbauer(nn, alpha.Re, Z[j, i]);
                }
            }

            return M;
        }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:15,代码来源:GegenbauerFunction.cs

示例4: Function

        public MatrixValue Function(ScalarValue n, ScalarValue m, MatrixValue Z)
        {
            var nn = n.GetIntegerOrThrowException("n", Name);
            var nm = m.GetIntegerOrThrowException("m", Name);
            var M = new MatrixValue(Z.DimensionY, Z.DimensionX);

            for (var i = 1; i <= Z.DimensionX; i++)
            {
                for (var j = 1; j <= Z.DimensionY; j++)
                {
                    M[j, i] = Zernike(nn, nm, Z[j, i]);
                }
            }

            return M;
        }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:16,代码来源:ZernikeFunction.cs

示例5: Function

        public MatrixValue Function(ScalarValue n, MatrixValue Z)
        {
            var m = n.GetIntegerOrThrowException("n", Name);
            var M = new MatrixValue(Z.DimensionY, Z.DimensionX);

            for (var j = 1; j <= Z.DimensionY; j++)
            {
                for (var i = 1; i <= Z.DimensionX; i++)
                {
                    M[j, i] = Psi(m, Z[j, i]);
                }
            }

            return M;
        }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:15,代码来源:PsiFunction.cs

示例6: Function

 public void Function(ScalarValue digits)
 {
     var n = digits.GetIntegerOrThrowException("digits", Name);
     Context.Precision = n;
     Context.RaiseNotification(new NotificationEventArgs(NotificationType.Information, "Output precision changed to " + Context.Precision + " digits."));
 }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:6,代码来源:PrecisionFunction.cs

示例7: Function

        public ScalarValue Function(ScalarValue alpha, ScalarValue x)
        {
            var a = alpha.GetIntegerOrThrowException("alpha", Name);

            if (a == 0)
            {
                return new ScalarValue(StruveL0(x.Re));
            }
            else if (a == 1)
            {
                return new ScalarValue(StruveL1(x.Re));
            }

            throw new YAMPArgumentRangeException("alpha", 0.0, 1.0);
        }
开发者ID:FlorianRappl,项目名称:YAMP,代码行数:15,代码来源:StruveFunction.cs


注:本文中的ScalarValue.GetIntegerOrThrowException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。