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)); }
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)); }