Opened 10 years ago

Last modified 9 years ago

#8484 new Patches

[ublas] allow user-defined oeprator/ for matrices

Reported by: mariomulansky Owned by: David Bellot
Milestone: To Be Determined Component: uBLAS
Version: Boost 1.54.0 Severity: Problem
Keywords: matrix division operator Cc:

Description

I would like to define the division operator for two matrices, but that is impossible right now as the matrix-skalar operator/ from ublas hides any other operator/ definition. This can be fixed very easily by adding an enable_if (see attached patch). Such enable_if are already used for other operators in ublas (e.g. multiplication) and the patch would hence be consistent with the rest of the code. Thanks

Attachments (1)

ublas_matrix_expression.patch (388 bytes ) - added by mariomulansky 10 years ago.
patch for matrix_expression.hpp

Download all attachments as: .zip

Change History (2)

by mariomulansky, 10 years ago

patch for matrix_expression.hpp

comment:1 by mariomulansky, 9 years ago

Owner: changed from Gunter to David Bellot
Note: See TracTickets for help on using tickets.