From b57c9787b1b7c7436f95814cab6e3551f49dda6f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 17 Jan 2019 16:55:42 +0100 Subject: Cleanup useless const_cast and add missing broadcast assignment tests --- test/vectorwiseop.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/vectorwiseop.cpp') diff --git a/test/vectorwiseop.cpp b/test/vectorwiseop.cpp index 4b9d2d570..8ee58841a 100644 --- a/test/vectorwiseop.cpp +++ b/test/vectorwiseop.cpp @@ -150,6 +150,19 @@ template void vectorwiseop_matrix(const MatrixType& m) RealColVectorType rcres; RealRowVectorType rrres; + // test broadcast assignment + m2 = m1; + m2.colwise() = colvec; + for(Index j=0; j1) + VERIFY_RAISES_ASSERT(m2.colwise() = colvec.transpose()); + if(cols>1) + VERIFY_RAISES_ASSERT(m2.rowwise() = rowvec.transpose()); + // test addition m2 = m1; -- cgit v1.2.3