#6301: [with patch, needs review] implement the Hadamard product of two matrices
----------------------------+-----------------------------------------------
Reporter: ncalexan | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-feature
Component: linear algebra | Keywords: elementwise Hadamard matrix product
Reviewer: | Author: Rob Beezer
Merged: |
----------------------------+-----------------------------------------------
Changes (by newvalueoldvalue):
* cc: ylchapuy (added)
* keywords: Hadamard matrix product => elementwise Hadamard matrix
product
* type: defect => enhancement
* author: => Rob Beezer
Comment:
Patch overview:
{{{elementwise_product()}}} in {{{matrix2.pyx}}} checks inputs for proper
sizes, and coerces base rings, etc.
Then two versions of {{{_elementwise_product()}}} (in
{{{matrix_dense.pyx}}} and {{{matrix_sparse.pyx}}}) take over and do the
actual work in what should be a fairly efficient manner, given the
generality implied.
More efficient implementations are certainly possible for more specialized
classes. The intent here is to begin with a correct and general
implementation that is moderately efficient, primarily to make the
functionality available in Sage.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6301#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---