Exemple #1
0
        public override vectorT Evaluate()
        {
            var e = A.ToMatrix() - B.ToMatrix();

            if (e is MatrixSubSimple mss)
            {
                e = new MatrixSubSimple(mss.Ea, mss.Eb, R);
            }
            else if (e is MatrixAdd ma)
            {
                e = new MatrixAdd(ma.Ea, ma.Transa, ma.Sa, ma.Eb, ma.Transb, ma.Sb, R);
            }
            matrix m = e;

            return(new(m.Cols, m.ReuseArray()));
        }
Exemple #2
0
        public override vectorT Evaluate()
        {
            matrix r = new MatrixMultiply(VT.ToMatrix(), M, R);

            return(new(r.Cols, r.ReuseArray()));
        }
Exemple #3
0
        public override vectorT Evaluate()
        {
            matrix m = E.ToMatrix() + S;

            return(new(m.Cols, m.ReuseArray()));
        }