Alternate function of gdivide

1 view (last 30 days)
We package MatLab code into a dll so it can be consumed by .Net run time.
Somehow if we use gdivide function, it increases packaged dll size from 10 MB to 200 MB. Is there any alternate function available (or anyway we can achive similar gdivide calculation?)
Matlab R2018a.
Thanks.

Accepted Answer

John D'Errico
John D'Errico on 13 Nov 2023
Edited: John D'Errico on 13 Nov 2023
help gdivide
GDIVIDE Generalized right division. gdivide(a,b) returns a ./ b, supporting built in data behavior, as well as generalized behavior such as element-by-element and recursive division of cell arrays and fields, and extending dimensions of size 1 in either argument to match the respective dimension of the other argument. Here are examples of division with generalized behavior: gdivide([1 2 3; 4 5 6],[10;20]) gdivide({1 2; 3 4},{1 3; 5 2}) gdivide({1 2 3 4},{10;20;30}) See also GADD, GSUBTRACT, GMULTIPLY, GNEGATE. Documentation for gdivide doc gdivide
As you should see, gdivide provides a great deal of very general functionality. And that means it will also include a great deal of supporting code. So why should you be surprised at that fact?
If you want to do something very specific, gdivide does little that cannot be done using more direct methods, that will not also include all of the capabilities of gdivide that you are not using.
So it would seem you have a choice. Wide spectrum bloat, or a more narrow spectrum of capabilites. The thing is, only you know what you are using gdivide to perform.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!