Skip to content

Commit

Permalink
Merge pull request #23 from michael-hartmann/tutorial
Browse files Browse the repository at this point in the history
Avoid integer division in tutorial.
  • Loading branch information
sivaramambikasaran committed Jan 14, 2019
2 parents 4f1b416 + 5061045 commit b9605e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The matrix that needs to be solved for is abstracted through this derived class

dtype getMatrixEntry(int i, int j)
{
return (1 / (i + j + 1));
return (1. / (i + j + 1));
}
}

Expand Down

0 comments on commit b9605e5

Please sign in to comment.