Collapses all dimensions to a single linear total size. * * @return The total tensor size in terms of elements. */
| 175 | * @return The total tensor size in terms of elements. |
| 176 | */ |
| 177 | size_t total_size() const |
| 178 | { |
| 179 | return std::accumulate(_id.begin(), _id.end(), size_t(1), std::multiplies<size_t>()); |
| 180 | } |
| 181 | /** Collapses given dimension and above. |
| 182 | * |
| 183 | * @param[in] dimension Size of the wanted dimension |
nothing calls this directly
no test coverage detected