vectorize() with IPluginLowLevelEvaluation functions - Messages
(Last line with error is just to demonstrate that without vectorize(), the error is the same as with vectorize(), so seems that vectorize() has no effect)
I suspect that the problem is because the Bessel function is defined in a IPluginLowLevelEvaluation plugin (StatisticalTools by Davide). This interface is afaik the most used among SMath plugin writers, so it would be desirable to extend vectorize() to work correctly with that kind of plugins.
Please excuse me if my reasoning is incorrect, and the real cause is something other.
If that's not your first name, then tell us to shoot Vodka !
"Bessel" but which Bessel ?
In Smath 5346, there are quite a few built-in "Bessel" from menu f(x).
I understand what you are attempting, give me a day or two.
For what I can see, vectorising is not the best approach.
Jean
Bessel mwbesselj.sm (8 KiB) downloaded 34 time(s).
WroteHello Boris,
If that's not your first name, then tell us to shoot Vodka !
"Bessel" but which Bessel ?
In Smath 5346, there are quite a few built-in "Bessel" from menu f(x).
WroteI suspect that the problem is because the Bessel function is defined in a IPluginLowLevelEvaluation plugin (StatisticalTools by Davide).
Quote
I understand what you are attempting, give me a day or two.
For what I can see, vectorising is not the best approach.
I only used any first custom function from my function list, just to demonstrate the problem. I could use e.g. CoolProp wrapper, or anything else.
Trust me: vectorising is not a substitute to the right ways of doing.
I have only two legs and 10 fingers ... at night my brain dilutes.
Jean
WroteI suspect that the problem is because the Bessel function is defined in a IPluginLowLevelEvaluation plugin (StatisticalTools by Davide). This interface is afaik the most used among SMath plugin writers, so it would be desirable to extend vectorize() to work correctly with that kind of plugins.
Everything you said is correct. I've just improved vectorize function to support functions from plug-ins.
Thank you!
Best regards.
Wrote
Everything you said is correct.
I've just improved vectorize function to support functions from plug-ins.
Which Bessel ? There are 34 "Bessel functions"
Your Bessel is typically a vector of 5*5 = 25 elements.
Still something not correct.
Jean
1. Arguments must be two matrices with matching dimensions
2. Operator must be applicable to scalar variables
If the above is correct, I might have detected an odd behaviour.
And as a side note: Andrey, please do not get discouraged by all the recent controversy surrounding vectorize(). It is a very useful function. My only suggestion would be to make sure that it consistently follows a simple list of logical rules, and to make this list available in the SMath release notes / documentation.
http://smath.info/cloud/sheet/xVqGb4rhZq
vectorize1.sm (9 KiB) downloaded 41 time(s).
-
New Posts
-
No New Posts