1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
template<T,l,h> Matrice : private Matrice_Impl<T>
{
public:
inline Matrice() : Matrice_Impl(l,h) {}
inline Matrice(const Matrice<T,l,h>& mat) : Matrice_Impl(l,h)
{ set(mat,l,h); }
inline Matrice<l,h>& operator=(const Matrice<T,l,h>& mat)
{ set(mat,l,h); return *this; }
inline Matrice<T,l,h>& operator+=(const Matrice<T,l,h>& mat)
{ add(mat,l,h); return *this; }
inline Matrice<T,l,h> operator+(const Matrice<T,l,h>& mat) const
{ Matrice<T,l,h> ret(*this); ret += mat; return ret; }
...
};
template<T,w,hw,h> Matrice<T,w,h> operator* (const Matrice<T,w,wh>& left, const Matrice<T,wh,h>& right)
{ ... } |
Partager