mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
fix #146
This commit is contained in:
parent
f096452dfd
commit
25f44266a2
@ -155,6 +155,12 @@ struct ei_significant_decimals_impl
|
|||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
std::ostream & ei_print_matrix(std::ostream & s, const Derived& _m, const IOFormat& fmt)
|
std::ostream & ei_print_matrix(std::ostream & s, const Derived& _m, const IOFormat& fmt)
|
||||||
{
|
{
|
||||||
|
if(_m.size() == 0)
|
||||||
|
{
|
||||||
|
s << fmt.matPrefix << fmt.matSuffix;
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
const typename Derived::Nested m = _m;
|
const typename Derived::Nested m = _m;
|
||||||
typedef typename Derived::Scalar Scalar;
|
typedef typename Derived::Scalar Scalar;
|
||||||
typedef typename Derived::Index Index;
|
typedef typename Derived::Index Index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user