예제 #1
0
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="equation"></param>
        public void AddSubMatrix(MatrixEquation equation)
        {
            //左边
            CoeffMatrixComposer.Add(equation.LeftSide);


            //右边
            if (RightVector == null)
            {
                RightVector = equation.RightVector;
            }
            else
            {
                RightVector.AddRange(equation.RightVector);
            }

            if (equation.HasWeightOfRightSide)
            {
                QofRightVectorComposer.Add(equation.InverseWeightOfRightSide);
            }
        }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public MatrixEquationComposer()
 {
     CoeffMatrixComposer    = new CoeffMatrixComposer();
     QofRightVectorComposer = new  CoeffMatrixComposer();
 }