| 715 | /// shapes |
| 716 | template <bool Dyn = Dynamic> |
| 717 | enable_if_t<!Dyn, ssize_t> size() const { |
| 718 | return std::accumulate( |
| 719 | shape_.begin(), shape_.end(), (ssize_t) 1, std::multiplies<ssize_t>()); |
| 720 | } |
| 721 | template <bool Dyn = Dynamic> |
| 722 | enable_if_t<Dyn, ssize_t> size() const { |
| 723 | return std::accumulate(shape_, shape_ + ndim(), (ssize_t) 1, std::multiplies<ssize_t>()); |