Exemple #1
0
        public override Value Perform(Value left, Value right)
        {
            if (left is NumericValue == false)
            {
                throw new YAMPOperationInvalidException(",", left);
            }

            if (right is NumericValue == false)
            {
                throw new YAMPOperationInvalidException(",", right);
            }

            return(MatrixValue.Create(left).AddColumn(right));
        }
Exemple #2
0
        public override Value Perform(Value left, Value right)
        {
            if (!(left is NumericValue))
            {
                throw new YAMPOperationInvalidException(";", left);
            }

            if (!(right is NumericValue))
            {
                throw new YAMPOperationInvalidException(";", right);
            }

            return(MatrixValue.Create(left).AddRow(right));
        }