Exemplo n.º 1
0
        public override vector 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.Rows, m.ReuseArray()));
        }
Exemplo n.º 2
0
        public override vector Evaluate()
        {
            matrix r = new MatrixMultiply(M, V.ToMatrix(), R);

            return(new(r.Rows, r.ReuseArray()));
        }
Exemplo n.º 3
0
        public override vector Evaluate()
        {
            matrix m = E.ToMatrix() + S;

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