[uBLAS] Results of different size matrix addition

According to the preconditions for binary matrix operations both matrix must have the same size ( http://www.boost.org/doc/libs/1_46_0/libs/numeric/ublas/doc/matrix_expressio...). What runtime error should I expected if the matrix sizes are not the same? Ryan

If it's a precondition, you don't have the right to expect any
particular behavior when it's violated. Generally that means you get
undefined behavior, sort of like when you dereference a garbage
pointer. It might "succeed" silently; it might take your machine down
hard; it might send a card to your grandmother.
On Tue, Mar 8, 2011 at 9:43 AM, Ryan
According to the preconditions for binary matrix operations both matrix must have the same size (http://www.boost.org/doc/libs/1_46_0/libs/numeric/ublas/doc/matrix_expressio...). What runtime error should I expected if the matrix sizes are not the same?
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
participants (2)
-
Dave Abrahams
-
Ryan