diff --git a/tvmet-1.7.1/include/tvmet/Matrix.h b/tvmet-1.7.1/include/tvmet/Matrix.h index 179e7727d..070bc0c14 100644 --- a/tvmet-1.7.1/include/tvmet/Matrix.h +++ b/tvmet-1.7.1/include/tvmet/Matrix.h @@ -223,18 +223,7 @@ private: void commaWrite(int index, T rhs) { - int row = index / Cols; - int col = index % Cols; - m_array[row + col * Rows] = rhs; - } - - /** This is a helper for assigning a comma separated initializer - list. It's equal to Matrix& operator=(T) which does - replace it. */ - Matrix& assign_value(T rhs) { - typedef XprLiteral expr_type; - *this = XprMatrix(expr_type(rhs)); - return *this; + m_array[(index / Cols) + (index % Cols) * Rows] = rhs; } public: // math operators with scalars diff --git a/tvmet-1.7.1/include/tvmet/Vector.h b/tvmet-1.7.1/include/tvmet/Vector.h index afb1dabf2..573acd99a 100644 --- a/tvmet-1.7.1/include/tvmet/Vector.h +++ b/tvmet-1.7.1/include/tvmet/Vector.h @@ -231,15 +231,6 @@ private: { m_array[index] = rhs; } - - /** This is a helper for assigning a comma separated initializer - list. It's equal to Vector& operator=(value_type) which does - replace it. */ - Vector& assign_value(value_type rhs) { - typedef XprLiteral expr_type; - *this = XprVector(expr_type(rhs)); - return *this; - } public: // math operators with scalars // NOTE: this meaning is clear - element wise ops even if not in ns element_wise