Mercerenies / fifi-calculator

1 stars 0 forks source link

Vector reduction with empty vector #105

Open Mercerenies opened 3 months ago

Mercerenies commented 3 months ago

Currently, we will just print an error if you use the reduce command (#42) on an empty argument. Emacs identifies default values (e.g. 0 for +, 1 for *, etc.) to use in this case, for many functions. Consider doing something similar.

Mercerenies commented 3 months ago

Also applies to InnerProductCommand, once we have the infrastructure.