-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheigen_tensor.natvis
36 lines (35 loc) · 2.34 KB
/
eigen_tensor.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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="Eigen::Tensor<*,*,*,*>">
<DisplayString Condition="$T2 == 0">[]</DisplayString>
<DisplayString Condition="$T2 == 1">[{m_storage.m_dimensions._Elems[0]}]</DisplayString>
<DisplayString Condition="$T2 == 2">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]}]</DisplayString>
<DisplayString Condition="$T2 == 3">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]},{m_storage.m_dimensions._Elems[2]}]</DisplayString>
<DisplayString Condition="$T2 == 4">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]},{m_storage.m_dimensions._Elems[2]},{m_storage.m_dimensions._Elems[3]}]</DisplayString>
<DisplayString Condition="$T2 == 5">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]},{m_storage.m_dimensions._Elems[2]},{m_storage.m_dimensions._Elems[3]},{m_storage.m_dimensions._Elems[4]}]</DisplayString>
<DisplayString Condition="$T2 == 6">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]},{m_storage.m_dimensions._Elems[2]},{m_storage.m_dimensions._Elems[3]},{m_storage.m_dimensions._Elems[4]},{m_storage.m_dimensions._Elems[5]}]</DisplayString>
<DisplayString Condition="$T2 > 6">[{m_storage.m_dimensions._Elems[0]},{m_storage.m_dimensions._Elems[1]},{m_storage.m_dimensions._Elems[2]},{m_storage.m_dimensions._Elems[3]},{m_storage.m_dimensions._Elems[4]},{m_storage.m_dimensions._Elems[5]},...]</DisplayString>
<Expand>
<!-- NumDimensions 0 -->
<Item Name="[size]" Condition="$T2==0">
"[]"
</Item>
<Item Name="[]" Condition="$T2==0">
m_storage.m_data[0]
</Item>
<!-- column major layout -->
<ArrayItems Condition ="$T2 > 0 && $T3%2==0">
<Direction>Backward</Direction>
<Rank>$T2</Rank>
<Size>m_storage.m_dimensions._Elems[$i]</Size>
<ValuePointer>m_storage.m_data</ValuePointer>
</ArrayItems>
<!-- row major layout -->
<ArrayItems Condition ="$T2 > 0 && $T3%2==1">
<Rank>$T2</Rank>
<Size>m_storage.m_dimensions._Elems[$i]</Size>
<ValuePointer>m_storage.m_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>