diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-09 13:19:22 +0000 |
commit | c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /ml/dlib/tools/visual_studio_natvis/dlib.natvis | |
parent | Adding upstream version 1.43.2. (diff) | |
download | netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.tar.xz netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.zip |
Adding upstream version 1.44.3.upstream/1.44.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | ml/dlib/tools/visual_studio_natvis/dlib.natvis | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ml/dlib/tools/visual_studio_natvis/dlib.natvis b/ml/dlib/tools/visual_studio_natvis/dlib.natvis new file mode 100644 index 000000000..0c1c52060 --- /dev/null +++ b/ml/dlib/tools/visual_studio_natvis/dlib.natvis @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?>
+<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
+ <!-- dlib matrix debugger visualization in Visual Studio-->
+ <!-- Johannes Huber, SAFEmine Part of Hexagon -->
+ <!-- no warranty -->
+
+ <!-- general dlib::matrix fixed size-->
+ <Type Name="dlib::matrix<*,*,*,*>">
+ <DisplayString>{{ size= <{$T2}> x <{$T3}> }}</DisplayString>
+ <Expand>
+ <ArrayItems>
+ <Size>$T2 * $T3</Size>
+ <ValuePointer>($T1*)data.data</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
+ <!-- general dlib::matrix fixed rows-->
+ <Type Name="dlib::matrix<*,0,*,*>">
+ <DisplayString>{{ size={data.nr_} x <{$T2}> }}</DisplayString>
+ <Expand>
+ <ArrayItems Condition="data.data != 0">
+ <Size>data.nr_ * $T2</Size>
+ <ValuePointer>($T1*)data.data</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
+ <!-- general dlib::matrix fixed cols-->
+ <Type Name="dlib::matrix<*,*,0,*>">
+ <DisplayString>{{ size= <{$T2}> x {data.nc_} }}</DisplayString>
+ <Expand>
+ <ArrayItems Condition="data.data != 0">
+ <Size>$T2 * data.nc_</Size>
+ <ValuePointer>($T1*)data.data</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
+ <!-- general dlib::matrix dynamic size-->
+ <Type Name="dlib::matrix<*,0,0,*>">
+ <DisplayString>{{ size= {data.nc_} x {data.nc_} }}</DisplayString>
+ <Expand>
+ <ArrayItems Condition="data.data != 0">
+ <Size>data.nr_*data.nc_</Size>
+ <ValuePointer>($T1*)data.data</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
+</AutoVisualizer>
\ No newline at end of file |