Matrices can hold any type that inherits from Basic, the core SymPy type.
 Matrix operations will often assume that these types have associated + and
* operators.

Many of the algorithms of matrices assume that the elements of a matrix are
SymPy expression objects (scalars).

>From what you say the QPointF class was not made with SymPy in mind.  PyQt
and SymPy don't know how each other work.  SymPy can not know that your
objects represent pairs.

If you are able to restructure your problem so that each element is a
scalar that is best.  It will have more predictable behavior.


On Sat, Dec 1, 2012 at 5:32 AM, Shriramana Sharma <[email protected]> wrote:

> Hello and returning to this previous thread started by me:
>
> On Tue, Nov 13, 2012 at 2:25 AM, Stefan Krastanov
> <[email protected]> wrote:
> > But we can
> > address this problem when we get an idea of the rest of what you are
> > trying to do.
>
> Square_matrix_of_known_reals * Vector_of_unknown_pairs =
> Vector_of_known_pairs
>
> I need to solve for the unknown pairs. Basically the pairs are x,y
> coordinates of points, and the matrix of reals separately combines
> with the x and y coords of the unknown pairs to produce the known
> pairs.
>
> I suppose I could turn the two vectors into two-column vectors (or
> three-column, if there are three dimensions), and the solution would
> equally work as well, since in AL=B the matrix A combines with each
> column of L to produce each column of B. The question was more like
> "can't I use other types"?
>
> On Tue, Nov 13, 2012 at 3:49 AM, Aaron Meurer <[email protected]> wrote:
> > It's not clear why it is happening or how to fix it without seeing your
> > definition if QPointF.
>
> http://riverbankcomputing.com/static/Docs/PyQt4/html/qpointf.html -- I
> suppose that definition isn't SymPy-compatible?
>
> --
> Shriramana Sharma
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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/sympy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to