Clear Filters
Clear Filters

Where is dlfeval tracing information stored?

4 views (last 30 days)
Matt J
Matt J on 16 Feb 2024
Edited: Bruno Luong on 16 Feb 2024
When dlfeval() is used to call a function, the computation is traced in such a way as to later allow automatic differentiation via dlgradient(). For example,
f=@(x) sum(x*x'*x*x'*x*x'*x*x'*x*x'*x*x'*x*x');
My question is, where is this tracing information stored? In y2? If so, why does whos() not show any apparent additional memory consumption by y2, as compared to the untraced version y1?
whos y1 y2
Name Size Bytes Class Attributes y1 1x30 240 dlarray y2 1x30 240 dlarray

Answers (1)

Bruno Luong
Bruno Luong on 16 Feb 2024
Edited: Bruno Luong on 16 Feb 2024
I don't kwow the dlarray class but IMO it looks like the creating function handle f is stored in some sort of private property in y2 well hidden and cannot be disclosed by whos command.




Community Treasure Hunt

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

Start Hunting!