Alternate function of gdivide

2 ビュー (過去 30 日間)
Monkey Coder
Monkey Coder 2023 年 11 月 13 日
コメント済み: Monkey Coder 2023 年 11 月 13 日
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.
  1 件のコメント
Monkey Coder
Monkey Coder 2023 年 11 月 13 日
yes, it makes sense.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by