Skip to content

DenseMatrix functionality improvements #17

Open
@harakas

Description

@harakas

After a slight brush with DenseMatrix, here's some stuff I found not working that well:

  • DenseMatrix is missing __sub__, currently can do A+B, but not A-B.
  • DenseMatrix does not support left side multiple with a Basic, that is Symbol('x')*A fails. Add __rmul__ or modify Basic?
  • Adding and multiplying of DenseMatrix objects of incompatible size should result in Python errors/exceptions, not crashes.
  • Indexing of a single column or row matrix should work with a single index, like A[1].
  • Add vector specific methods like dot, norm, cross (I suppose this should be done on the symengine/C++ side actually first).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions