Fixed elementwise_op to calculate NMatrix object converted from GSL::Matrix using to_nm method