Posted by
Kim Kuen Tang on
URL: http://quantlib.414.s1.nabble.com/Debugging-QuantLib-Matrix-with-msvc-tp7956.html
Hi all,
debugging QuantLib::Matrix with msvc is not possible. The debugger just
shows the raw pointer to that matrix.
And you can get around this limitation by modifying the autoexp.dat file
which can be found in
%VSINSTALLDIR%\Common7\Packages\Debugger\autoexp.dat.
You just need to add these lines
;------------------------------------------------------------------------------
; QuantLib::Matrix
;------------------------------------------------------------------------------
QuantLib::Matrix{
children
(
#(
[Matrix]: [$c.data_,!],
rows: $c.rows_,
cols: $c.columns_,
#array(
expr: ($c.data_.px)[$i],
size: ((unsigned int*)(&($c.rows_)))[$r],
rank: 2
)
)
)
preview
(
#(
"[",
$c.rows_ ,
",",
$c.columns_,
"](",
#array
(
expr : [($c.data_.px)[$i],g],
size : $c.rows_ * $c.columns_
) ,
")"
)
)
}
to get the values inside of the arrays.
Back up autoesp.dat before proceeding.
Best regards,
Kim Tang
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users