NMath Visualizers
Friday, February 6th, 2009We’re happy to announce the availablility of NMath debugger visualizers, for examining NMath data types in debug mode. Currently supported types are:
CenterSpace.NMath.Core.FloatVector
CenterSpace.NMath.Core.DoubleVector
CenterSpace.NMath.Core.FloatMatrix
CenterSpace.NMath.Core.DoubleMatrix
CenterSpace.NMath.Stats.DataFrame
Installing the Visualizers
The NMath Visualizers will be included in forthcoming versions of the NMath libraries.
To install, place the DLL in either of the following locations:
<VS_installdir>/Common7/Packages/Debugger/VisualizersMy Documents/Visual Studio <version>/Visualizers
Visualizers put in the first location are available to all users on the machine; visualizers put in the second are available only to the the current user.
Starting a Visualizer
When debugging and at a breakpoint, hover your mouse over the supported NMath object you want to visualize. Click the little magnifying glass that appears in the datatip. You can also start a visualizer from the Locals view, as shown below:
Using a Visualizer
Numeric precision can be controlled using the listbox in the upper right. Row and column indices are shown at the left and top, respectively. Hovering over a cell displays a tooltip showing the cell indices.
When visualizing a DataFrame, the column names are displayed.
Known Issues
- With large vectors and matrices (tens of thousands of values) in Visual Studio 2005, we’ve seen the following error: “Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.” We have not seen this problem in VS 2008.
- It is not possible to use the visualizers to debug a 64-bit application.
Ken
Update
Visualizers are now installed with NMath.
- Trevor
Update 2
Visualizers are now installed into the right Visual Studio directories with NMath 5.0 and NMath Stats 3.3.
- Trevor



