-
Notifications
You must be signed in to change notification settings - Fork 0
/
twsmatrix.natvis
56 lines (48 loc) · 1.48 KB
/
twsmatrix.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="tws::vector<*>">
<DisplayString>vector ({_n})</DisplayString>
<Expand>
<ArrayItems>
<Size>_n</Size>
<ValuePointer>_data.get()</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="tws::vectorview<*>">
<DisplayString>vectorview ({_n})</DisplayString>
<Expand>
<Item Name="n">_n</Item>
<Item Name="stride">_stride</Item>
<IndexListItems>
<Size>_n</Size>
<ValueNode>_data[ $i*_stride ]</ValueNode>
</IndexListItems>
</Expand>
</Type>
<Type Name="tws::matrix<*>">
<DisplayString>matrix ({_m} x {_n})</DisplayString>
<Expand>
<Item Name="m">_m</Item>
<Item Name="n">_n</Item>
<ArrayItems>
<Rank>2</Rank>
<Direction>Backward</Direction>
<Size>$i==0 ? _m : _n</Size>
<ValuePointer>_data.get()</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="tws::matrixview<*>">
<DisplayString>matrixview ({_m} x {_n})</DisplayString>
<Expand>
<Item Name="m">_m</Item>
<Item Name="n">_n</Item>
<Item Name="ldim">_ldim</Item>
<IndexListItems>
<Size>_n * _m</Size>
<ValueNode>_data[ $i/_m*_ldim + $i%_m ]</ValueNode>
</IndexListItems>
</Expand>
</Type>
</AutoVisualizer>