@@ -46,6 +46,19 @@ namespace ipa {
* The size of \a data must be equal to the dimension size Rows of the vector.
*/
+/**
+ * \fn Vector::Vector(const Vector &other)
+ * \brief Construct a Vector by copying \a other
+ * \param[in] other The other Vector value
+ */
+
+/**
+ * \fn Vector &Vector::operator=(const Vector &other)
+ * \brief Replace the content of the Vector with a copy of the content of \a other
+ * \param[in] other The other Vector value
+ * \return This Vector value
+ */
+
/**
* \fn T Vector::operator[](size_t i) const
* \brief Index to an element in the vector
@@ -46,6 +46,10 @@ public:
data_[i] = data[i];
}
+ constexpr Vector(const Vector &other) = default;
+
+ Vector &operator=(const Vector &other) = default;
+
const T &operator[](size_t i) const
{
ASSERT(i < data_.size());