mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix trivial warnings.
This commit is contained in:
parent
c11971de37
commit
2d93060291
@ -9,6 +9,8 @@ void saveAsBitmap(const Eigen::VectorXd& x, int n, const char* filename);
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
assert(argc==2);
|
||||
|
||||
int n = 300; // size of the image
|
||||
int m = n*n; // number of unknows (=number of pixels)
|
||||
|
||||
|
@ -8,7 +8,7 @@ typedef Eigen::Triplet<double> T;
|
||||
void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs,
|
||||
Eigen::VectorXd& b, const Eigen::VectorXd& boundary)
|
||||
{
|
||||
int n = boundary.size();
|
||||
int n = int(boundary.size());
|
||||
int id1 = i+j*n;
|
||||
|
||||
if(i==-1 || i==n) b(id) -= w * boundary(j); // constrained coefficient
|
||||
|
Loading…
x
Reference in New Issue
Block a user