First time here? Check out the FAQ!
answered 2013-08-30 00:54:06 -0600
The 2nd variant is already good. Btw, you shouldnt really worry about performance on a 3x1 Mat with "at". Also, the those index checks on "at" are only done in Debug mode.