Why does not ublas overload operators?

26 Dec
2008
26 Dec
'08
2:36 a.m.
Six years ago, I design my own matrix library like matlab. I overload operators, it make it conveninent to do matrix manupulations. For example matrix A, B, C, D; A = B*C +D; It is easy to use and read. Why does not ublas overload such operators as +, -, *, /, ^, [], (),... Allen

26 Dec
26 Dec
6:28 p.m.
AMDG Allen Chen wrote:
Six years ago, I design my own matrix library like matlab. I overload operators, it make it conveninent to do matrix manupulations. For example
matrix A, B, C, D; A = B*C +D;
It is easy to use and read.
Why does not ublas overload such operators as +, -, *, /, ^, [], (),...
It does. However, operator* only works for multiplying by a scalar. For matrix-matrix multiplication use prod. In Christ, Steven Watanabe
5902
Age (days ago)
5902
Last active (days ago)
1 comments
2 participants
participants (2)
-
Allen Chen
-
Steven Watanabe