Add/Sub/Set scalar to vector/matrix

Issue #132 new
Fabien Péan
created an issue

Hi Klaus,

It seems that I am not the first to fall into the trap according to #109 and #70. It was already explained in a former ticket why this will not be in blaze in the form of operator overloading. I do not personally agree with these arguments but understand the decision.

Nonetheless, from a user perspective, it would be much more convenient to have the aforementioned functions as official functor similarly to e.g. clamp and pow, i.e.

Matrix m;
add(m,4);
set(v,5);
sub(m,2.5);

Best regards, Fabien

Comments (1)

  1. Klaus Iglberger

    Hi Fabien!

    Thank for raising this issue again. Apparently this is a recurring request, which is why this time we will not immediately close the issue as duplicate, but we will reevaluate the idea and see what we can do to provide a solution. Thanks again,

    Best regards,

    Klaus!

  2. Log in to comment