mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Adapted the MSVC visualizer to the new Dynamic value.
This commit is contained in:
parent
b4ef323e90
commit
0d9dc578dd
@ -1,306 +1,308 @@
|
|||||||
; ***************************************************************
|
; ***************************************************************
|
||||||
; * Eigen Visualizer
|
; * Eigen Visualizer
|
||||||
; *
|
; *
|
||||||
; * Author: Hauke Heibel <hauke.heibel@gmail.com>
|
; * Author: Hauke Heibel <hauke.heibel@gmail.com>
|
||||||
; *
|
; *
|
||||||
; * Support the enhanced debugging of the following Eigen
|
; * Support the enhanced debugging of the following Eigen
|
||||||
; * types (*: any, +:fixed dimension) :
|
; * types (*: any, +:fixed dimension) :
|
||||||
; *
|
; *
|
||||||
; * - Eigen::Matrix<*,4,1,*,*,*> and Eigen::Matrix<*,1,4,*,*,*>
|
; * - Eigen::Matrix<*,4,1,*,*,*> and Eigen::Matrix<*,1,4,*,*,*>
|
||||||
; * - Eigen::Matrix<*,3,1,*,*,*> and Eigen::Matrix<*,1,3,*,*,*>
|
; * - Eigen::Matrix<*,3,1,*,*,*> and Eigen::Matrix<*,1,3,*,*,*>
|
||||||
; * - Eigen::Matrix<*,2,1,*,*,*> and Eigen::Matrix<*,1,2,*,*,*>
|
; * - Eigen::Matrix<*,2,1,*,*,*> and Eigen::Matrix<*,1,2,*,*,*>
|
||||||
; * - Eigen::Matrix<*,33331,33331,*,*,*>
|
; * - Eigen::Matrix<*,-1,-1,*,*,*>
|
||||||
; * - Eigen::Matrix<*,+,33331,*,*,*>
|
; * - Eigen::Matrix<*,+,-1,*,*,*>
|
||||||
; * - Eigen::Matrix<*,33331,+,*,*,*>
|
; * - Eigen::Matrix<*,-1,+,*,*,*>
|
||||||
; * - Eigen::Matrix<*,+,+,*,*,*>
|
; * - Eigen::Matrix<*,+,+,*,*,*>
|
||||||
; *
|
; *
|
||||||
; * Matrices are displayed properly independantly of the memory
|
; * Matrices are displayed properly independantly of the memory
|
||||||
; * alignment (RowMajor vs. ColMajor).
|
; * alignment (RowMajor vs. ColMajor).
|
||||||
; *
|
; *
|
||||||
; * This file is distributed WITHOUT ANY WARRANTY. Please ensure
|
; * This file is distributed WITHOUT ANY WARRANTY. Please ensure
|
||||||
; * that your original autoexp.dat file is copied to a safe
|
; * that your original autoexp.dat file is copied to a safe
|
||||||
; * place before proceeding with its modification.
|
; * place before proceeding with its modification.
|
||||||
; ***************************************************************
|
; ***************************************************************
|
||||||
|
|
||||||
; Fixed size 4-vectors
|
[Visualizer]
|
||||||
Eigen::Matrix<*,4,1,*,*,*>|Eigen::Matrix<*,1,4,*,*,*>{
|
|
||||||
children
|
; Fixed size 4-vectors
|
||||||
(
|
Eigen::Matrix<*,4,1,*,*,*>|Eigen::Matrix<*,1,4,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
x : ($c.m_storage.m_data.array)[0],
|
#(
|
||||||
y : ($c.m_storage.m_data.array)[1],
|
[internals]: [$c,!],
|
||||||
z : ($c.m_storage.m_data.array)[2],
|
x : ($c.m_storage.m_data.array)[0],
|
||||||
w : ($c.m_storage.m_data.array)[3]
|
y : ($c.m_storage.m_data.array)[1],
|
||||||
)
|
z : ($c.m_storage.m_data.array)[2],
|
||||||
)
|
w : ($c.m_storage.m_data.array)[3]
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"(",
|
(
|
||||||
|
#(
|
||||||
#array
|
"(",
|
||||||
(
|
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
#array
|
||||||
size : 4
|
(
|
||||||
),
|
expr : [($c.m_storage.m_data.array)[$i],g],
|
||||||
")"
|
size : 4
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Fixed size 3-vectors
|
}
|
||||||
Eigen::Matrix<*,3,1,*,*,*>|Eigen::Matrix<*,1,3,*,*,*>{
|
|
||||||
children
|
; Fixed size 3-vectors
|
||||||
(
|
Eigen::Matrix<*,3,1,*,*,*>|Eigen::Matrix<*,1,3,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
x : ($c.m_storage.m_data.array)[0],
|
#(
|
||||||
y : ($c.m_storage.m_data.array)[1],
|
[internals]: [$c,!],
|
||||||
z : ($c.m_storage.m_data.array)[2]
|
x : ($c.m_storage.m_data.array)[0],
|
||||||
)
|
y : ($c.m_storage.m_data.array)[1],
|
||||||
)
|
z : ($c.m_storage.m_data.array)[2]
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"(",
|
(
|
||||||
|
#(
|
||||||
#array
|
"(",
|
||||||
(
|
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
#array
|
||||||
size : 3
|
(
|
||||||
),
|
expr : [($c.m_storage.m_data.array)[$i],g],
|
||||||
")"
|
size : 3
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Fixed size floating point 2-vectors
|
}
|
||||||
Eigen::Matrix<float,2,1,*,*,*>|Eigen::Matrix<float,1,2,*,*,*>|Eigen::Matrix<double,2,1,*,*,*>|Eigen::Matrix<double,1,2,*,*,*>{
|
|
||||||
children
|
; Fixed size floating point 2-vectors
|
||||||
(
|
Eigen::Matrix<float,2,1,*,*,*>|Eigen::Matrix<float,1,2,*,*,*>|Eigen::Matrix<double,2,1,*,*,*>|Eigen::Matrix<double,1,2,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
x : ($c.m_storage.m_data.array)[0],
|
#(
|
||||||
y : ($c.m_storage.m_data.array)[1]
|
[internals]: [$c,!],
|
||||||
)
|
x : ($c.m_storage.m_data.array)[0],
|
||||||
)
|
y : ($c.m_storage.m_data.array)[1]
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"(",
|
(
|
||||||
|
#(
|
||||||
#array
|
"(",
|
||||||
(
|
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
#array
|
||||||
size : 2
|
(
|
||||||
),
|
expr : [($c.m_storage.m_data.array)[$i],g],
|
||||||
")"
|
size : 2
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Fixed size integral 2-vectors
|
}
|
||||||
Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{
|
|
||||||
children
|
; Fixed size integral 2-vectors
|
||||||
(
|
Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
x : ($c.m_storage.m_data.array)[0],
|
#(
|
||||||
y : ($c.m_storage.m_data.array)[1]
|
[internals]: [$c,!],
|
||||||
)
|
x : ($c.m_storage.m_data.array)[0],
|
||||||
)
|
y : ($c.m_storage.m_data.array)[1]
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"(",
|
(
|
||||||
|
#(
|
||||||
#array
|
"(",
|
||||||
(
|
|
||||||
expr : ($c.m_storage.m_data.array)[$i],
|
#array
|
||||||
size : 2
|
(
|
||||||
),
|
expr : ($c.m_storage.m_data.array)[$i],
|
||||||
")"
|
size : 2
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Dynamic matrices (ColMajor and RowMajor support)
|
}
|
||||||
Eigen::Matrix<*,33331,33331,*,*,*>{
|
|
||||||
children
|
; Dynamic matrices (ColMajor and RowMajor support)
|
||||||
(
|
Eigen::Matrix<*,-1,-1,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
rows: $c.m_storage.m_rows,
|
#(
|
||||||
cols: $c.m_storage.m_cols,
|
[internals]: [$c,!],
|
||||||
; Check for RowMajorBit
|
rows: $c.m_storage.m_rows,
|
||||||
#if ($c.Flags & 0x1) (
|
cols: $c.m_storage.m_cols,
|
||||||
#array(
|
; Check for RowMajorBit
|
||||||
rank: 2,
|
#if ($c.Flags & 0x1) (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[($i % $c.m_storage.m_rows)*$c.m_storage.m_cols + (($i- $i % $c.m_storage.m_rows)/$c.m_storage.m_rows)],
|
rank: 2,
|
||||||
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.m_storage.m_cols
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[($i % $c.m_storage.m_rows)*$c.m_storage.m_cols + (($i- $i % $c.m_storage.m_rows)/$c.m_storage.m_rows)],
|
||||||
) #else (
|
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.m_storage.m_cols
|
||||||
#array(
|
)
|
||||||
rank: 2,
|
) #else (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[$i],
|
rank: 2,
|
||||||
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.m_storage.m_cols
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[$i],
|
||||||
)
|
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.m_storage.m_cols
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"[",
|
(
|
||||||
$c.m_storage.m_rows,
|
#(
|
||||||
",",
|
"[",
|
||||||
$c.m_storage.m_cols,
|
$c.m_storage.m_rows,
|
||||||
"](",
|
",",
|
||||||
#array(
|
$c.m_storage.m_cols,
|
||||||
expr : [($c.m_storage.m_data)[$i],g],
|
"](",
|
||||||
size : $c.m_storage.m_rows*$c.m_storage.m_cols
|
#array(
|
||||||
),
|
expr : [($c.m_storage.m_data)[$i],g],
|
||||||
")"
|
size : $c.m_storage.m_rows*$c.m_storage.m_cols
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Fixed rows, dynamic columns matrix (ColMajor and RowMajor support)
|
}
|
||||||
Eigen::Matrix<*,*,33331,*,*,*>{
|
|
||||||
children
|
; Fixed rows, dynamic columns matrix (ColMajor and RowMajor support)
|
||||||
(
|
Eigen::Matrix<*,*,-1,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
rows: $c.RowsAtCompileTime,
|
#(
|
||||||
cols: $c.m_storage.m_cols,
|
[internals]: [$c,!],
|
||||||
; Check for RowMajorBit
|
rows: $c.RowsAtCompileTime,
|
||||||
#if ($c.Flags & 0x1) (
|
cols: $c.m_storage.m_cols,
|
||||||
#array(
|
; Check for RowMajorBit
|
||||||
rank: 2,
|
#if ($c.Flags & 0x1) (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[($i % $c.RowsAtCompileTime)*$c.m_storage.m_cols + (($i- $i % $c.RowsAtCompileTime)/$c.RowsAtCompileTime)],
|
rank: 2,
|
||||||
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.m_storage.m_cols
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[($i % $c.RowsAtCompileTime)*$c.m_storage.m_cols + (($i- $i % $c.RowsAtCompileTime)/$c.RowsAtCompileTime)],
|
||||||
) #else (
|
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.m_storage.m_cols
|
||||||
#array(
|
)
|
||||||
rank: 2,
|
) #else (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[$i],
|
rank: 2,
|
||||||
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.m_storage.m_cols
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[$i],
|
||||||
)
|
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.m_storage.m_cols
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"[",
|
(
|
||||||
$c.RowsAtCompileTime,
|
#(
|
||||||
",",
|
"[",
|
||||||
$c.m_storage.m_cols,
|
$c.RowsAtCompileTime,
|
||||||
"](",
|
",",
|
||||||
#array(
|
$c.m_storage.m_cols,
|
||||||
expr : [($c.m_storage.m_data)[$i],g],
|
"](",
|
||||||
size : $c.RowsAtCompileTime*$c.m_storage.m_cols
|
#array(
|
||||||
),
|
expr : [($c.m_storage.m_data)[$i],g],
|
||||||
")"
|
size : $c.RowsAtCompileTime*$c.m_storage.m_cols
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Dynamic rows, fixed columns matrix (ColMajor and RowMajor support)
|
}
|
||||||
Eigen::Matrix<*,33331,*,*,*,*>{
|
|
||||||
children
|
; Dynamic rows, fixed columns matrix (ColMajor and RowMajor support)
|
||||||
(
|
Eigen::Matrix<*,-1,*,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
rows: $c.m_storage.m_rows,
|
#(
|
||||||
cols: $c.ColsAtCompileTime,
|
[internals]: [$c,!],
|
||||||
; Check for RowMajorBit
|
rows: $c.m_storage.m_rows,
|
||||||
#if ($c.Flags & 0x1) (
|
cols: $c.ColsAtCompileTime,
|
||||||
#array(
|
; Check for RowMajorBit
|
||||||
rank: 2,
|
#if ($c.Flags & 0x1) (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[($i % $c.m_storage.m_rows)*$c.ColsAtCompileTime + (($i- $i % $c.m_storage.m_rows)/$c.m_storage.m_rows)],
|
rank: 2,
|
||||||
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.ColsAtCompileTime
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[($i % $c.m_storage.m_rows)*$c.ColsAtCompileTime + (($i- $i % $c.m_storage.m_rows)/$c.m_storage.m_rows)],
|
||||||
) #else (
|
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.ColsAtCompileTime
|
||||||
#array(
|
)
|
||||||
rank: 2,
|
) #else (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data)[$i],
|
rank: 2,
|
||||||
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.ColsAtCompileTime
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data)[$i],
|
||||||
)
|
size: ($r==1)*$c.m_storage.m_rows+($r==0)*$c.ColsAtCompileTime
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"[",
|
(
|
||||||
$c.m_storage.m_rows,
|
#(
|
||||||
",",
|
"[",
|
||||||
$c.ColsAtCompileTime,
|
$c.m_storage.m_rows,
|
||||||
"](",
|
",",
|
||||||
#array(
|
$c.ColsAtCompileTime,
|
||||||
expr : [($c.m_storage.m_data)[$i],g],
|
"](",
|
||||||
size : $c.m_storage.m_rows*$c.ColsAtCompileTime
|
#array(
|
||||||
),
|
expr : [($c.m_storage.m_data)[$i],g],
|
||||||
")"
|
size : $c.m_storage.m_rows*$c.ColsAtCompileTime
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
; Fixed size matrix (ColMajor and RowMajor support)
|
}
|
||||||
Eigen::Matrix<*,*,*,*,*,*>{
|
|
||||||
children
|
; Fixed size matrix (ColMajor and RowMajor support)
|
||||||
(
|
Eigen::Matrix<*,*,*,*,*,*>{
|
||||||
#(
|
children
|
||||||
[internals]: [$c,!],
|
(
|
||||||
rows: $c.RowsAtCompileTime,
|
#(
|
||||||
cols: $c.ColsAtCompileTime,
|
[internals]: [$c,!],
|
||||||
; Check for RowMajorBit
|
rows: $c.RowsAtCompileTime,
|
||||||
#if ($c.Flags & 0x1) (
|
cols: $c.ColsAtCompileTime,
|
||||||
#array(
|
; Check for RowMajorBit
|
||||||
rank: 2,
|
#if ($c.Flags & 0x1) (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data.array)[($i % $c.RowsAtCompileTime)*$c.ColsAtCompileTime + (($i- $i % $c.RowsAtCompileTime)/$c.RowsAtCompileTime)],
|
rank: 2,
|
||||||
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.ColsAtCompileTime
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data.array)[($i % $c.RowsAtCompileTime)*$c.ColsAtCompileTime + (($i- $i % $c.RowsAtCompileTime)/$c.RowsAtCompileTime)],
|
||||||
) #else (
|
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.ColsAtCompileTime
|
||||||
#array(
|
)
|
||||||
rank: 2,
|
) #else (
|
||||||
base: 0,
|
#array(
|
||||||
expr: ($c.m_storage.m_data.array)[$i],
|
rank: 2,
|
||||||
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.ColsAtCompileTime
|
base: 0,
|
||||||
)
|
expr: ($c.m_storage.m_data.array)[$i],
|
||||||
)
|
size: ($r==1)*$c.RowsAtCompileTime+($r==0)*$c.ColsAtCompileTime
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
preview
|
)
|
||||||
(
|
|
||||||
#(
|
preview
|
||||||
"[",
|
(
|
||||||
$c.RowsAtCompileTime,
|
#(
|
||||||
",",
|
"[",
|
||||||
$c.ColsAtCompileTime,
|
$c.RowsAtCompileTime,
|
||||||
"](",
|
",",
|
||||||
#array(
|
$c.ColsAtCompileTime,
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
"](",
|
||||||
size : $c.RowsAtCompileTime*$c.ColsAtCompileTime
|
#array(
|
||||||
),
|
expr : [($c.m_storage.m_data.array)[$i],g],
|
||||||
")"
|
size : $c.RowsAtCompileTime*$c.ColsAtCompileTime
|
||||||
)
|
),
|
||||||
)
|
")"
|
||||||
}
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user