本文整理汇总了C#中DotNetMatrix.GeneralMatrix.ArrayLeftDivide方法的典型用法代码示例。如果您正苦于以下问题:C# GeneralMatrix.ArrayLeftDivide方法的具体用法?C# GeneralMatrix.ArrayLeftDivide怎么用?C# GeneralMatrix.ArrayLeftDivide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DotNetMatrix.GeneralMatrix
的用法示例。
在下文中一共展示了GeneralMatrix.ArrayLeftDivide方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
//.........这里部分代码省略.........
try
{
A.AddEquals(S);
errorCount = try_failure(errorCount, "AddEquals conformance check... ", "nonconformance not raised");
}
catch (System.ArgumentException e)
{
try_success("AddEquals conformance check... ", "");
System.Console.Out.WriteLine(e.Message);
}
try
{
check(C, A);
try_success("AddEquals... ", "");
}
catch (System.SystemException e)
{
errorCount = try_failure(errorCount, "AddEquals... ", "(C = A - B, but C = C + B != A)");
System.Console.Out.WriteLine(e.Message);
}
A = R.UnaryMinus();
try
{
check(A.Add(R), Z);
try_success("UnaryMinus... ", "");
}
catch (System.SystemException e)
{
errorCount = try_failure(errorCount, "uminus... ", "(-A + A != zeros)");
System.Console.Out.WriteLine(e.Message);
}
A = R.Copy();
O = new GeneralMatrix(A.RowDimension, A.ColumnDimension, 1.0);
C = A.ArrayLeftDivide(R);
try
{
S = A.ArrayLeftDivide(S);
errorCount = try_failure(errorCount, "ArrayLeftDivide conformance check... ", "nonconformance not raised");
}
catch (System.ArgumentException e)
{
try_success("ArrayLeftDivide conformance check... ", "");
System.Console.Out.WriteLine(e.Message);
}
try
{
check(C, O);
try_success("ArrayLeftDivide... ", "");
}
catch (System.SystemException e)
{
errorCount = try_failure(errorCount, "ArrayLeftDivide... ", "(M.\\M != ones)");
System.Console.Out.WriteLine(e.Message);
}
try
{
A.ArrayLeftDivideEquals(S);
errorCount = try_failure(errorCount, "ArrayLeftDivideEquals conformance check... ", "nonconformance not raised");
}
catch (System.ArgumentException e)
{
try_success("ArrayLeftDivideEquals conformance check... ", "");
System.Console.Out.WriteLine(e.Message);
}
A.ArrayLeftDivideEquals(R);
try
示例2: LeftDivide
public void LeftDivide()
{
A = R.Copy();
GeneralMatrix C = A.ArrayLeftDivide(R);
Assert.IsTrue(GeneralTests.Check(C,O));
}