mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
some more cleanup in comma-initializer stuff
This commit is contained in:
parent
dfd4d2c487
commit
c14ba38df3
@ -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
|
||||
|
@ -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<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
|
||||
|
Loading…
Reference in New Issue
Block a user