1 страниц (2 вхождений)
Alias, namespace, overloading for functions - @Air provides thermodynamic properties and transport properties of moist air. - Сообщения
#1 Опубликовано: 29.08.2013 04:45:11
1. Suggest to make support for aliases for complex function names. If the user has entered an alias, then show it instead of the function name.
2. Add namespace support for functions with the same signature, but located in different plugins.
3. Suggest to distinguish functions with different types of parameters: smath::abs([RealNumber]), gsl::abs([Matrix]), ...
4. Add a function type with variable number of arguments: ArgumentSections::VarArgs.
Цитата
2
alias="Ai">gslsfAi
2. Add namespace support for functions with the same signature, but located in different plugins.
Цитата
2
namespace="GSL">gslsfAi
3. Suggest to distinguish functions with different types of parameters: smath::abs([RealNumber]), gsl::abs([Matrix]), ...
4. Add a function type with variable number of arguments: ArgumentSections::VarArgs.
Russia ☭ forever, Viacheslav N. Mezentsev
#2 Опубликовано: 29.08.2013 08:28:32
What would be the difference compared to writing Ai(x#):=fslsfAi(x#) (perhaps in a closed area region)? What would the user do to enter an alias, and where?Wrote1. Suggest to make support for aliases for complex function names. If the user has entered an alias, then show it instead of the function name.
Цитата
2
alias="Ai">gslsfAi
In the case of abs() I would prefer to have a function as generic as possible, i.e. that they can handle reals, complex or matrices. If different algorithms are required, the function may choose the correct one. The opposite extreme is to have flavours of functions for integer, single, double precision etc.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 страниц (2 вхождений)
-
Новые сообщения
-
Нет новых сообщений