From 07417bd03f501efd276302123eb77b2f5a1a67b7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 7 Sep 2013 00:01:04 +0200 Subject: Fix bug #654: allow implicit transposition in Array to Matrix and Matrix to Array constructors --- Eigen/src/Core/Array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/Array.h') diff --git a/Eigen/src/Core/Array.h b/Eigen/src/Core/Array.h index 3d0350834..0b9c38c82 100644 --- a/Eigen/src/Core/Array.h +++ b/Eigen/src/Core/Array.h @@ -225,7 +225,7 @@ class Array : Base(other.derived().rows() * other.derived().cols(), other.derived().rows(), other.derived().cols()) { Base::_check_template_params(); - Base::resize(other.rows(), other.cols()); + Base::_resize_to_match(other); *this = other; } -- cgit v1.2.3