vector2d<T>& operator = (const vector2d<T>& src);
/**
- * Destructor. Free allocated memory.
- */
- ~vector2d ();
-
- /**
- * Assignment operator.
+ * Copy operator.
* Copy all elements of @p{src}
* into the array. The size is
* adjusted if needed.
*/
template<typename T2>
vector2d<T>& operator = (const vector2d<T2> &src);
+
+ /**
+ * Destructor. Free allocated memory.
+ */
+ ~vector2d ();
/**
* Set dimension to $m\times n$
* Number of Rows
*/
unsigned int num_rows;
+ /**
+ * Friend declaration needed for
+ * inter-type copy operator.
+ */
+ template <typename T2> friend class vector2d;
+
+ /**
+ * This is unfortunately needed.
+ */
+ template <typename T2> friend class FullMatrix;
};
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams