Skip to content

Commit 6cfdda9

Browse files
committed
cbegin
1 parent 9a4ae92 commit 6cfdda9

File tree

8 files changed

+60
-72
lines changed

8 files changed

+60
-72
lines changed

Diff for: 2017-04-09-PyDataAmsterdam-xtensor/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ <h3>Authoring Python extensions</h3>
960960
{
961961
auto sines = xt::sin(m);
962962
// sines does not actually hold any value, which are only computed upon access
963-
return std::accumulate(sines.begin(), sines.end(), 0.0);
963+
return std::accumulate(sines.cbegin(), sines.cend(), 0.0);
964964
}
965965

966966
PYBIND11_PLUGIN(xtensor_python_test)

Diff for: 2017-04-09-PyDataAmsterdam-xtensor/src/xtensor-python.svg

+12-14
Loading

0 commit comments

Comments
 (0)