Re: [eigen] matrix / scalar |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Hi. I was just thinking that it might be nicer to do MatrixXi mat = ...; mat = 5; instead of mat.setConstant(5); and mat += 5; is nicer than mat.array() += 5; The matrix interface supports scalar multiply but not scalar add/sub. To get scalar add/sub, I have to pull out the array class. No big deal either way, just thought it would be nicer syntax. thanks On Dec 4, 2010, at 1:05 AM, Thomas Capricelli wrote:
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |