oraqlle / cortexlib

A library of general purpose types, classes, functions, algorithms, utilities and other components for C++.
https://oraqlle.github.io/cortexlib/
MIT License
0 stars 0 forks source link

[API] Array Paradigm Operator Overloads #32

Open oraqlle opened 2 years ago

oraqlle commented 2 years ago

Remove element-wise operator overloads in favor of using operators as verbs, similar to how array-notational languages work.

auto sum = std::plus{} / bx  ///< folds left
auto nbx = bx / 3;  ///< element-wise division by 3
oraqlle commented 2 years ago

Linked to #16