本文整理汇总了C#中Altaxo.Calc.LinearAlgebra.DoubleSymmetricLevinson.Solve方法的典型用法代码示例。如果您正苦于以下问题:C# DoubleSymmetricLevinson.Solve方法的具体用法?C# DoubleSymmetricLevinson.Solve怎么用?C# DoubleSymmetricLevinson.Solve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo.Calc.LinearAlgebra.DoubleSymmetricLevinson
的用法示例。
在下文中一共展示了DoubleSymmetricLevinson.Solve方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SolveMatrix10
public void SolveMatrix10()
{
int i, j;
double e, me;
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
// check inverse
DoubleMatrix I = dsl.Solve(DoubleMatrix.CreateIdentity(10));
me = 0.0;
for (i = 0; i < dsl.Order; i++)
{
for (j = 0; j < dsl.Order; j++)
{
e = System.Math.Abs((I10[i, j] - I[i, j]) / I10[i, j]);
if (e > me)
{
me = e;
}
}
}
Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
}
示例2: MismatchRowsTestforSolveMatrix
public void MismatchRowsTestforSolveMatrix()
{
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
DoubleMatrix X = dsl.Solve(I5);
}
示例3: NullParameterTestforSolveMatrix
public void NullParameterTestforSolveMatrix()
{
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
DoubleMatrix X = dsl.Solve(null as DoubleMatrix);
}
示例4: SolveVector10
public void SolveVector10()
{
int i;
double e, me;
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
DoubleVector X = dsl.Solve(Y10);
// determine the maximum error
me = 0.0;
for (i = 0; i < dsl.Order; i++)
{
e = System.Math.Abs((X10[i] - X[i]) / X10[i]);
if (e > me)
{
me = e;
}
}
Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
}
示例5: MismatchRowsTestforSolveVector
public void MismatchRowsTestforSolveVector()
{
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
DoubleVector X = dsl.Solve(X5);
}
示例6: NullParameterTestforSolveVector
public void NullParameterTestforSolveVector()
{
DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
DoubleVector X = dsl.Solve(null as DoubleVector);
}