mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Improved the fixed size array display.
This commit is contained in:
parent
e259f71477
commit
9cf748757e
@ -40,13 +40,10 @@ Eigen::Matrix<*,4,1,*,*,*>|Eigen::Matrix<*,1,4,*,*,*>{
|
|||||||
preview
|
preview
|
||||||
(
|
(
|
||||||
#(
|
#(
|
||||||
"(",
|
"[",
|
||||||
|
4,
|
||||||
#array
|
"](",
|
||||||
(
|
#array(expr: $e.m_storage.m_data.array[$i], size: 4),
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
|
||||||
size : 4
|
|
||||||
),
|
|
||||||
")"
|
")"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -67,45 +64,16 @@ Eigen::Matrix<*,3,1,*,*,*>|Eigen::Matrix<*,1,3,*,*,*>{
|
|||||||
preview
|
preview
|
||||||
(
|
(
|
||||||
#(
|
#(
|
||||||
"(",
|
"[",
|
||||||
|
3,
|
||||||
#array
|
"](",
|
||||||
(
|
#array(expr: $e.m_storage.m_data.array[$i], size: 3),
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
|
||||||
size : 3
|
|
||||||
),
|
|
||||||
")"
|
")"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
; Fixed size floating point 2-vectors
|
; Fixed size 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]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
preview
|
|
||||||
(
|
|
||||||
#(
|
|
||||||
"(",
|
|
||||||
|
|
||||||
#array
|
|
||||||
(
|
|
||||||
expr : [($c.m_storage.m_data.array)[$i],g],
|
|
||||||
size : 2
|
|
||||||
),
|
|
||||||
")"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
; Fixed size integral 2-vectors
|
|
||||||
Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{
|
Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{
|
||||||
children
|
children
|
||||||
(
|
(
|
||||||
@ -119,13 +87,32 @@ Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{
|
|||||||
preview
|
preview
|
||||||
(
|
(
|
||||||
#(
|
#(
|
||||||
"(",
|
"[",
|
||||||
|
2,
|
||||||
|
"](",
|
||||||
|
#array(expr: $e.m_storage.m_data.array[$i], size: 2),
|
||||||
|
")"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#array
|
; Fixed size 1-vectors
|
||||||
|
Eigen::Matrix<*,1,1,*,*,*>|Eigen::Matrix<*,1,1,*,*,*>{
|
||||||
|
children
|
||||||
(
|
(
|
||||||
expr : ($c.m_storage.m_data.array)[$i],
|
#(
|
||||||
size : 2
|
[internals]: [$c,!],
|
||||||
),
|
x : ($c.m_storage.m_data.array)[0]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
preview
|
||||||
|
(
|
||||||
|
#(
|
||||||
|
"[",
|
||||||
|
1,
|
||||||
|
"](",
|
||||||
|
#array(expr: $e.m_storage.m_data.array[$i], size: 1),
|
||||||
")"
|
")"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user