示例#1
0
        /// <summary>
        /// 解方程,求出本次迭代的外方位元素
        /// </summary>
        private double[,] SolveEqu(Matrix[] aMat, Matrix[] lMat)
        {
            Matrix mergeA = MergeMatrix(aMat), mergeL = MergeMatrix(lMat);

            var AT    = MatrixOperation.MatrixTrans(mergeA);
            var final = (1 / (AT * mergeA)) * AT * mergeL;

            // 结果一定是6*1的矩阵
            return(final.Data);
        }
示例#2
0
 public static Matrix operator +(Matrix a, Matrix b)
 {
     return(MatrixOperation.Add(a, b));
 }
示例#3
0
 public static Matrix operator *(double a, Matrix b)
 {
     return(MatrixOperation.SimpleMultiply(a, b));
 }
示例#4
0
 public static Matrix operator *(Matrix a, Matrix b)
 {
     return(MatrixOperation.Multiply(a, b));
 }
示例#5
0
 public static Matrix operator -(Matrix a, Matrix b)
 {
     return(MatrixOperation.Sub(a, b));
 }