本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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."));
}
示例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);
}