Uw opmerkingen
I've made the question public, as it might be helpful for the others.
Hello!
Associated Legendre functions? Yes, of course we have them, but without the 'mp' prefix:
>> X = rand(2,4,5,'mp');
>> n = 2;
>> P = legendre(n,X) >> P(:,1,2,3)
ans =
0.441388679511820695786134758975951
-1.450338406517212223598006351398264
1.117222640976358608427730482048098
Also toolbox provides 'legendreP' - function to compute Legendre polynomials. See Function Reference for the complete list of the functions implemented in toolbox.
It is not included in toolbox yet, but it is in our ToDo list with medium priority.
You might speed things up if you share some details on the problem you solve and why it is important to have 'mp' version of it.
Thank you,
Hi Stefan,
Thank you for using the toolbox!
This bug was fixed long time ago - please use newer version of toolbox.
One year has passed - 3.9.4 is an ancient fossil by now!!!
There is another reason to switch to newest version of toolbox - now it has full-featured EIGS with the support of all modes ('SM', etc.) and variants (including when matrix is supplied as operator). Generalized problems are supported as well.
The only (temporary) downside - now EIGS is written in M-language and quite slow. We are working on this and it will be much faster soon.
I highly recommend you to test new version.
Hi Denis,
To get machine epsilon for particular number 'x' please use:
before the 4.3.3.12177:
>> mp.eps(x)
starting from 4.3.3.12177, the prefix 'mp.' is no longer needed:
>> eps(x)
The 'rank(A,tol)' has been included in recent versions of toolbox as well.
I highly suggest you to use the newest version of toolbox - 4.3.3.12177.
The 'accumarray' has been added to new version of toolbox - 4.3.2.12172.
Please download and re-install toolbox on your computer.
Currently 'accumarray' is implemented in MATLAB language and thus can be slow for large arrays.
Other than that - it supports all the features, including sparse matrices, fill value, custom functions, etc.
Let me know if you encounter any issues.
Hello Vladimir,
MATLAB has a bit strange rules for classes.
One of the "best" one is that element indexing doesn't work as expected inside methods of the class. So that when you call val(1) or val(2), A(1,:) or any other indexing operation - MATLAB calls default SUBSREF method which is suitable for double arrays but not for custom (like mp).
Instead you need to call overloaded SUBSREF, which is good for mp-objects (and which is provided in MP.M). There is special syntax for this:
subsref(val, substruct('()',{2})) % equivalent to val(2) in normal world
You can find many examples of such calls in MP.M to learn from.
But, I would suggest you to write your own function in separate file, not as part of MP.M
Then you can use the usual syntax.
Dear Vladimir,
Thank you very much for your report!
The bug has been fixed in new version of toolbox - 4.3.2.1271.
Please download and install new version.
Thank you,
Pavel.
Customer support service by UserEcho
Well, mp.Test() includes only the very basic tests - just to make sure toolbox is installed properly.
We run full set of quality tests (with corner cases, etc.) in-house before every release. Usually it takes 3-6 hours.....