| 203 | typename EXP |
| 204 | > |
| 205 | const matrix_op<op_round<EXP> > round ( |
| 206 | const matrix_exp<EXP>& m |
| 207 | ) |
| 208 | { |
| 209 | // you can only round matrices that contain built in scalar types like double, long, float, etc. |
| 210 | COMPILE_TIME_ASSERT(is_built_in_scalar_type<typename EXP::type>::value); |
| 211 | |
| 212 | typedef op_round<EXP> op; |
| 213 | return matrix_op<op>(op(m.ref())); |
| 214 | } |
| 215 | |
| 216 | // ---------------------------------------------------------------------------------------- |
| 217 |
no outgoing calls