Re: Matrix operations on character matrix element?

Discussion in 'Python' started by Robert Kern, Apr 2, 2009.

  1. Robert Kern

    Robert Kern Guest

    On 2009-04-01 19:12, Terry Reedy wrote:
    > olusina eric wrote:
    >> I hope somebody will be able to help me here.
    >> I am trying to solve some physical problems that will require the
    >> generation of some function in terms of some parameters. These
    >> functions are derived from matrix operation on “charactersâ€. Are there
    >> ways numpy/scipy perform matrix operations on characters?
    >>
    >> For example A = matrix([[a, b,c],[d,e,f],[1,2,3]])
    >> B = matrix([[g,h,4],[I,j,5],[k,l,6]])

    >
    > A to l are identifiers, not characters, and must be bound to objects for
    > the above to make any sense. Did you mean 'a' to 'l'?
    >
    >> Is it possible to perform operations like A*B or A+B
    >>
    >> And most especially: linalg.solve(A,eye(3,3))

    >
    > If you mean, operate on symbols to do symbolic computation, the same way
    > one might with paper and pencil, the simple answer is no. Numpy is not a
    > computer algebra system.
    >
    > Computer algebra requires that one define classes such as Symbol, with
    > all the usual arithmetic operations. I am not sure whether numpy
    > algorithms can work on arrays of instances of user-defined classes such
    > as this.


    They can't.

    --
    Robert Kern

    "I have come to believe that the whole world is an enigma, a harmless enigma
    that is made terrible by our own mad attempt to interpret it as though it had
    an underlying truth."
    -- Umberto Eco
    Robert Kern, Apr 2, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jesus M. Salvo Jr.
    Replies:
    2
    Views:
    4,132
    robert
    Feb 11, 2006
  2. M. Fernandez

    Java Matrix Operations

    M. Fernandez, Mar 2, 2006, in forum: Java
    Replies:
    5
    Views:
    1,049
    ~Glynne
    Mar 17, 2006
  3. friends

    Sparse Matrix operations

    friends, Sep 17, 2005, in forum: C Programming
    Replies:
    0
    Views:
    497
    friends
    Sep 17, 2005
  4. Terry Reedy
    Replies:
    0
    Views:
    552
    Terry Reedy
    Apr 2, 2009
  5. et al.

    Matrix operations

    et al., Jul 23, 2010, in forum: C++
    Replies:
    6
    Views:
    429
    Jonathan Lee
    Jul 25, 2010
Loading...

Share This Page