| 43 | class FastIter { |
| 44 | public: |
| 45 | FastIter(const TensorND& tensor, bool is_contig) : m_contig(is_contig) { |
| 46 | if (is_contig) { |
| 47 | m_ptr = reinterpret_cast<ctype*>(tensor.raw_ptr()); |
| 48 | } else { |
| 49 | m_naive_iter = tensor_iter_valonly<ctype>(tensor).begin(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | ctype& operator*() { |
| 54 | if (m_contig) { |
nothing calls this directly
no outgoing calls
no test coverage detected