www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Does D support member function template?

reply Li Jie <cpunion gmail.com> writes:
I write a matrix class:





How to write the opMul? It uses like this:





Thanks,

- Li Jie
Apr 13 2006
parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Li Jie schrieb am 2006-04-14:
 I write a matrix class:





 How to write the opMul? It uses like this:




I think that isn't (yet) possible. If there are many different matrix sizes you may try: If you only deal with a few matrix sizes you may try: Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEQqLS3w+/yD4P9tIRAiuRAKDDhz8rQvR9RvNNQ5dr1695S/sxXwCggY2J UZmiwvY/ij2UnJpFXHi2b1E= =Odkq -----END PGP SIGNATURE-----
Apr 16 2006
parent Li Jie <cpunion gmail.com> writes:
In article <ifkah3-dl7.ln1 birke.kuehne.cn>, Thomas Kuehne says...
I think that isn't (yet) possible.

If there are many different matrix sizes you may try:






























If you only deal with a few matrix sizes you may try:

























Thomas
Thanks Thomas. Very depressing, Aha.. I think that only this way:
Apr 16 2006