@@ -323,16 +323,17 @@ class results_cl {
323323 });
324324 }
325325
326- /* *
326+ /* *
327327 * Incrementing \c results_ object by \c expressions_cl object
328328 * executes the kernel that evaluates expressions and increments results by
329329 * those expressions.
330- * @tparam AssignOp an optional `assign_op_cl` that dictates whether the object
331- * is assigned using standard or compound assign.
330+ * @tparam AssignOp an optional `assign_op_cl` that dictates whether the
331+ * object is assigned using standard or compound assign.
332332 * @tparam T_expressions types of expressions
333333 * @param exprs expressions
334334 */
335- template <assign_op_cl AssignOp = assign_op_cl::plus_equals, typename ... T_expressions,
335+ template <assign_op_cl AssignOp = assign_op_cl::plus_equals,
336+ typename ... T_expressions,
336337 typename = std::enable_if_t <sizeof ...(T_results)
337338 == sizeof ...(T_expressions)>>
338339 void compound_assignment_impl (const expressions_cl<T_expressions...>& exprs) {
@@ -361,7 +362,7 @@ class results_cl {
361362 compound_assignment_impl<assign_op_cl::plus_equals>(exprs);
362363 }
363364
364- /* *
365+ /* *
365366 * Decrement \c results_ object by \c expressions_cl object
366367 * executes the kernel that evaluates expressions and increments results by
367368 * those expressions.
@@ -375,7 +376,7 @@ class results_cl {
375376 compound_assignment_impl<assign_op_cl::minus_equals>(exprs);
376377 }
377378
378- /* *
379+ /* *
379380 * Elementwise divide \c results_ object by \c expressions_cl object
380381 * executes the kernel that evaluates expressions and increments results by
381382 * those expressions.
@@ -389,7 +390,7 @@ class results_cl {
389390 compound_assignment_impl<assign_op_cl::divide_equals>(exprs);
390391 }
391392
392- /* *
393+ /* *
393394 * Elementwise multiply \c results_ object by \c expressions_cl object
394395 * executes the kernel that evaluates expressions and increments results by
395396 * those expressions.
@@ -484,7 +485,7 @@ class results_cl {
484485 + parts.reduction_2d +
485486 " }\n " ;
486487 }
487- return src;
488+ return src;
488489 }
489490
490491 /* *
@@ -583,38 +584,44 @@ class results_cl {
583584 /* *
584585 * Makes a std::pair of one result and one expression and wraps it into a
585586 * tuple.
586- * @tparam AssignOp an optional `assign_op_cl` that dictates whether the object
587- * is assigned using standard or compound assign.
588- * @tparam T_result An non scalar type that is normally an `result_cl` operation holding a `matrix_cl`
589- * @tparam T_expression An expression of set of operations on `matrix_cl` and scalar types.
587+ * @tparam AssignOp an optional `assign_op_cl` that dictates whether the
588+ * object is assigned using standard or compound assign.
589+ * @tparam T_result An non scalar type that is normally an `result_cl`
590+ * operation holding a `matrix_cl`
591+ * @tparam T_expression An expression of set of operations on `matrix_cl` and
592+ * scalar types.
590593 * @param result result
591594 * @param expression expression
592595 * @return a tuple of pair of result and expression
593596 */
594- template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_result, typename T_expression,
597+ template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_result,
598+ typename T_expression,
595599 require_all_not_t <is_without_output<T_expression>,
596600 conjunction<internal::is_scalar_check<T_result>,
597601 std::is_arithmetic<std::decay_t <
598602 T_expression>>>>* = nullptr >
599603 static auto make_assignment_pair (T_result&& result,
600604 T_expression&& expression) {
601- return std::make_tuple (
602- std::pair< as_operation_cl_t <T_result, AssignOp>, as_operation_cl_t <T_expression>>(
603- as_operation_cl<AssignOp>(std::forward<T_result>(result)),
604- as_operation_cl (std::forward<T_expression>(expression))));
605+ return std::make_tuple (std::pair< as_operation_cl_t <T_result, AssignOp>,
606+ as_operation_cl_t <T_expression>>(
607+ as_operation_cl<AssignOp>(std::forward<T_result>(result)),
608+ as_operation_cl (std::forward<T_expression>(expression))));
605609 }
606610
607611 /* *
608612 * If an expression does not need to be calculated this returns an empty tuple
609- * @tparam AssignOp an optional `assign_op_cl` that dictates whether the object
610- * is assigned using standard or compound assign.
611- * @tparam T_result An non scalar type that is normally an `result_cl` operation holding a `matrix_cl`
612- * @tparam T_expression An expression of set of operations on `matrix_cl` and scalar types.
613+ * @tparam AssignOp an optional `assign_op_cl` that dictates whether the
614+ * object is assigned using standard or compound assign.
615+ * @tparam T_result An non scalar type that is normally an `result_cl`
616+ * operation holding a `matrix_cl`
617+ * @tparam T_expression An expression of set of operations on `matrix_cl` and
618+ * scalar types.
613619 * @param result result
614620 * @param expression expression
615621 * @return a tuple of pair of result and expression
616622 */
617- template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_result, typename T_expression,
623+ template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_result,
624+ typename T_expression,
618625 require_t <is_without_output<T_expression>>* = nullptr >
619626 static auto make_assignment_pair (T_result&& result,
620627 T_expression&& expression) {
@@ -624,15 +631,16 @@ class results_cl {
624631 /* *
625632 * Checks on scalars are done separately in this overload instead of in
626633 * kernel.
627- * @tparam AssignOp an optional `assign_op_cl` that dictates whether the object
628- * is assigned using standard or compound assign.
634+ * @tparam AssignOp an optional `assign_op_cl` that dictates whether the
635+ * object is assigned using standard or compound assign.
629636 * @tparam T_check A scalar type
630637 * @tparam T_pass An integral type
631638 * @param result result - check
632639 * @param pass bool scalar
633640 * @return an empty tuple
634641 */
635- template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_check, typename T_pass,
642+ template <assign_op_cl AssignOp = assign_op_cl::equals, typename T_check,
643+ typename T_pass,
636644 require_t <internal::is_scalar_check<T_check>>* = nullptr ,
637645 require_integral_t <T_pass>* = nullptr >
638646 static std::tuple<> make_assignment_pair (T_check&& result, T_pass&& pass) {
0 commit comments