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.
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.