mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
More warning fixes.
This commit is contained in:
parent
c37cfc32b3
commit
0927ba1fd3
@ -117,6 +117,9 @@ template<typename ExpressionType> class SwapWrapper
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
ExpressionType& m_expression;
|
ExpressionType& m_expression;
|
||||||
|
|
||||||
|
private:
|
||||||
|
SwapWrapper& operator=(const SwapWrapper&);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** swaps *this with the expression \a other.
|
/** swaps *this with the expression \a other.
|
||||||
|
@ -40,7 +40,7 @@ template<typename MatrixType> void matrixVisitor(const MatrixType& p)
|
|||||||
m(i) = ei_random<Scalar>();
|
m(i) = ei_random<Scalar>();
|
||||||
|
|
||||||
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
|
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
|
||||||
int minrow,mincol,maxrow,maxcol;
|
int minrow=0,mincol=0,maxrow=0,maxcol=0;
|
||||||
for(int j = 0; j < cols; j++)
|
for(int j = 0; j < cols; j++)
|
||||||
for(int i = 0; i < rows; i++)
|
for(int i = 0; i < rows; i++)
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ template<typename VectorType> void vectorVisitor(const VectorType& w)
|
|||||||
v(i) = ei_random<Scalar>();
|
v(i) = ei_random<Scalar>();
|
||||||
|
|
||||||
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
|
Scalar minc = Scalar(1000), maxc = Scalar(-1000);
|
||||||
int minidx,maxidx;
|
int minidx=0,maxidx=0;
|
||||||
for(int i = 0; i < size; i++)
|
for(int i = 0; i < size; i++)
|
||||||
{
|
{
|
||||||
if(v(i) < minc)
|
if(v(i) < minc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user