• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# LinearAlgebra.DoubleSymmetricLevinson类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Altaxo.Calc.LinearAlgebra.DoubleSymmetricLevinson的典型用法代码示例。如果您正苦于以下问题:C# DoubleSymmetricLevinson类的具体用法?C# DoubleSymmetricLevinson怎么用?C# DoubleSymmetricLevinson使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DoubleSymmetricLevinson类属于Altaxo.Calc.LinearAlgebra命名空间,在下文中一共展示了DoubleSymmetricLevinson类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetVectorMemberTest

 public void GetVectorMemberTest()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T5);
   DoubleVector TT = dsl.GetVector();
   Assert.IsTrue(T5.Equals(TT));
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:6,代码来源:DoubleSymmetricLevinsonTest.cs


示例2: ZeroLengthVectorTestsforConstructor1

 public void ZeroLengthVectorTestsforConstructor1()
 {
   DoubleVector dv = new DoubleVector(1, 0.0);
   dv.RemoveAt(0);
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(dv);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:6,代码来源:DoubleSymmetricLevinsonTest.cs


示例3: ZeroLengthVectorTestsforConstructor2

 public void ZeroLengthVectorTestsforConstructor2()
 {
   double[] dv = new double[0];
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(dv);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例4: NullParameterTestforConstructor1

 public void NullParameterTestforConstructor1()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(null as DoubleVector);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:4,代码来源:DoubleSymmetricLevinsonTest.cs


示例5: NullParameterTestforConstructor2

 public void NullParameterTestforConstructor2()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(null as double[]);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:4,代码来源:DoubleSymmetricLevinsonTest.cs


示例6: DecompositionTest10

    public void DecompositionTest10()
    {
      int i, j;
      double e, me;
      DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
      DoubleMatrix U = dsl.U;
      DoubleMatrix D = dsl.D;
      DoubleMatrix L = dsl.L;
      
      // check U is the transpose of L
      Assert.IsTrue(U.Equals(L.GetTranspose()));

      // check the lower triangle
      me = 0.0;
      for (i = 0; i < dsl.Order; i++)
      {
        for (j = 0; j <= i ; j++)
        {
          e = System.Math.Abs((A10[i, j] - L[i, j]) / A10[i, j]);
          if (e > me)
          {
            me = e;
          }
        }
      }
      Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());

      // check the diagonal
      me = 0.0;
      for (i = 0; i < dsl.Order; i++)
      {
        e = System.Math.Abs((D10[i] - D[i, i]) / D10[i]);
        if (e > me)
        {
          me = e;
        }
      }
      Assert.IsTrue(me < Tolerance10, "Maximum Error = " + me.ToString());
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:39,代码来源:DoubleSymmetricLevinsonTest.cs


示例7: SingularityPropertyTest10

 public void SingularityPropertyTest10()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
   Assert.IsFalse(dsl.IsSingular);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例8: NullParameterTestforSolveMatrix

 public void NullParameterTestforSolveMatrix()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
   DoubleMatrix X = dsl.Solve(null as DoubleMatrix);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例9: MismatchRowsTestforSolveMatrix

 public void MismatchRowsTestforSolveMatrix()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
   DoubleMatrix X = dsl.Solve(I5);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例10: MismatchRowsTestforSolveVector

 public void MismatchRowsTestforSolveVector()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
   DoubleVector X = dsl.Solve(X5);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例11: 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());
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:19,代码来源:DoubleSymmetricLevinsonTest.cs


示例12: NullParameterTestforSolveVector

 public void NullParameterTestforSolveVector()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);
   DoubleVector X = dsl.Solve(null as DoubleVector);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例13: GetDeterminantMethodTest10

    public void GetDeterminantMethodTest10()
    {
      // calculate determinant from diagonal
      DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);

      // check results match
      Double e = System.Math.Abs( (dsl.GetDeterminant() - Det10)/Det10 );
      Assert.IsTrue(e < Tolerance10);
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:9,代码来源:DoubleSymmetricLevinsonTest.cs


示例14: SingularityPropertyTest

    public void SingularityPropertyTest()
    {
      DoubleVector T = new DoubleVector(10);
      for (int i = 1; i < 10; i++)
      {
        T[i] = (double) (i + 1);
      }
      T[0] = -2.0;

      DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T);
      Assert.IsTrue(dsl.IsSingular);
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:12,代码来源:DoubleSymmetricLevinsonTest.cs


示例15: GetMatrixMemberTest

 public void GetMatrixMemberTest()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T5);
   DoubleMatrix dsldm = dsl.GetMatrix();
   for (int row = 0; row < T5.Length; row++)
   {
     for (int column = 0; column < T5.Length; column++)
     {
       if (column < row)
       {
         Assert.IsTrue(dsldm[row, column] == T5[row - column]);
       }
       else
       {
         Assert.IsTrue(dsldm[row, column] == T5[column - row]);
       }
     }
   }
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:19,代码来源:DoubleSymmetricLevinsonTest.cs


示例16: SolveMatrix5

    public void SolveMatrix5()
    {
      int i, j;
      double e, me;
      DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T5);

      // check inverse
      DoubleMatrix I = dsl.Solve(DoubleMatrix.CreateIdentity(5));
      me = 0.0;
      for (i = 0; i < dsl.Order; i++)
      {
        for (j = 0; j < dsl.Order; j++)
        {
          e = System.Math.Abs((I5[i, j] - I[i, j]) / I5[i, j]);
          if (e > me)
          {
            me = e;
          }
        }
      }
      Assert.IsTrue(me < Tolerance5, "Maximum Error = " + me.ToString());
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:DoubleSymmetricLevinsonTest.cs


示例17: OrderPropertyTest

 public void OrderPropertyTest()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T5);
   Assert.IsTrue(dsl.Order == 5);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例18: GetInverse10

    public void GetInverse10()
    {
      int i, j;
      double e, me;
      DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T10);

      // check inverse
      DoubleMatrix I = dsl.GetInverse();
      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());
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:DoubleSymmetricLevinsonTest.cs


示例19: PositveDefinitePropertyTest5

 public void PositveDefinitePropertyTest5()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(T5);
   Assert.IsTrue(dsl.IsPositiveDefinite);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs


示例20: PositveDefinitePropertyTest

 public void PositveDefinitePropertyTest()
 {
   DoubleSymmetricLevinson dsl = new DoubleSymmetricLevinson(1.0, 2.0, 3.0, 4.0, 5.0);
   Assert.IsFalse(dsl.IsPositiveDefinite);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:5,代码来源:DoubleSymmetricLevinsonTest.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# LinearAlgebra.DoubleVector类代码示例发布时间:2022-05-24
下一篇:
C# LinearAlgebra.ComplexFloatVector类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap