Alternate function of gdivide

2 次查看(过去 30 天)
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.

采纳的回答

John D'Errico
John D'Errico 2023-11-13
编辑:John D'Errico 2023-11-13
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Historical Contests 的更多信息

标签

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by