Commits


Kenta Murata authored and Uwe L. Korn committed 40906306278
ARROW-4318: [C++] Add Tensor::CountNonZero In this pull-request, I would like to move CountNonZero defined in SparseTensorConverter into Tensor class, and add tests for this function. Author: Kenta Murata <mrkn@mrkn.jp> Author: Antoine Pitrou <antoine@python.org> Closes #3452 from mrkn/tensor_count_non_zero and squashes the following commits: fa394d95 <Antoine Pitrou> Return a Status from Tensor::CountNonZero ecfbbf52 <Antoine Pitrou> Fix lint 37f286a9 <Kenta Murata> Check !is_tensor_supported in NonZeroCounter::Visit e714d7d0 <Kenta Murata> Fix spelling c9958010 <Kenta Murata> Use VisitTypeInline in CountNonZero ce353288 <Kenta Murata> Change the return type of CountNonZero 4b365a0b <Kenta Murata> Add docstring of Tensor::CountNonZero 08c8e265 <Kenta Murata> Refactoring: extract TensorCountNonZero to make a function simple 4072ebb1 <Kenta Murata> Use anonymous namespace d1828ac3 <Kenta Murata> Remove needless functions e9bfc024 <Kenta Murata> Use Tensor::CountNonZero in SparseTensorConverter 45552a84 <Kenta Murata> Add Tensor::CountNonZero