some more cleanup in comma-initializer stuff

This commit is contained in:
Benoit Jacob 2007-08-17 08:06:19 +00:00
parent dfd4d2c487
commit c14ba38df3
2 changed files with 1 additions and 21 deletions

View File

@ -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<T> expr_type;
*this = XprMatrix<expr_type, Rows, Cols>(expr_type(rhs));
return *this;
m_array[(index / Cols) + (index % Cols) * Rows] = rhs;
}
public: // math operators with scalars

View File

@ -232,15 +232,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<value_type> expr_type;
*this = XprVector<expr_type, Size>(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
Vector& operator+=(value_type) _tvmet_always_inline;