36 lines
806 B
Plaintext
36 lines
806 B
Plaintext
From: thooney at pk.highway.ne.jp (Thooney Millennier)
|
|
Date: Thu, 15 Apr 1999 03:50:48 +0900
|
|
Subject: python interface to c++ class
|
|
Message-ID: <3714E388.CD434E8A@pk.highway.ne.jp>
|
|
X-UID: 700
|
|
|
|
Hello, everyone.
|
|
I am now working on building Python interface
|
|
to my C++ matrix library.
|
|
|
|
for example In C++,we can enjoy following
|
|
operations.
|
|
(f_matrix: matrix class for float, d_matrix: for
|
|
double)
|
|
|
|
1. f_matrix x1,x2; float y; x2=y*x1; (operation
|
|
between different types)
|
|
2. x1(1,2)=3.4; (substitution for matrix
|
|
element)
|
|
3. d_matrix z; z=x1;
|
|
(auto conversion from float matrix to another
|
|
type(d_matrix))
|
|
|
|
Is it possible by "PyNumberMethods" ?
|
|
I would like to know how to implement above with
|
|
Python.
|
|
|
|
Thanks for reading.
|
|
|
|
|
|
Thooney Millennier.
|
|
|
|
|
|
|
|
|