Add/Sub/Set scalar to vector/matrix
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 (3)
-
-
Hi Fabien!
Due to the large number of requests (
#70,#109, and#229) we have decided to add this feature for dense vectors and dense matrices. Since there is currently two open requests for this, we will close this issue as duplicate in favor of#229. Thanks again for creating this proposal,Best regards,
Klaus!
-
- changed status to duplicate
Duplicate of
#70. - Log in to comment
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!