Templates Python and Swig

Discussion in 'Python' started by Balaji, Aug 14, 2004.

  1. Balaji

    Balaji Guest

    Can any one help me with this.

    I have an c++ header file which describes a method given below.

    void setRows(const vector<string> &rowNames, const vector<double>
    &lhs,const vector<double> &rhs);


    How I'm supposed to write this template in a interface file.

    So that when I pass (['a','b','c'],[0,0,0],[1,2,3]) in python it
    accepts it.

    Thanx in advance

    Balaji
     
    Balaji, Aug 14, 2004
    #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. JKop
    Replies:
    3
    Views:
    492
  2. Balaji

    Templates SWIG

    Balaji, Aug 14, 2004, in forum: Python
    Replies:
    0
    Views:
    338
    Balaji
    Aug 14, 2004
  3. Generic Usenet Account
    Replies:
    3
    Views:
    838
    Generic Usenet Account
    Jul 14, 2005
  4. BigMan
    Replies:
    1
    Views:
    443
  5. recover
    Replies:
    2
    Views:
    831
    recover
    Jul 25, 2006
Loading...

Share This Page