| 209 | } |
| 210 | |
| 211 | void CPUComplexTensor::mul(ComplexTensor &other, size_t *mask_array) |
| 212 | { |
| 213 | int64_t size = 1ll << m_rank; |
| 214 | int threads = get_num_threads(m_rank); |
| 215 | #pragma omp parallel for num_threads(threads) |
| 216 | for (int64_t i = 0; i < size; i++) |
| 217 | { |
| 218 | auto num = getNum(i, mask_array, getRank(), other.getRank()); |
| 219 | mulElem(i, other.getElem(num)); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | ComputeBackend CPUComplexTensor::getBackend() |
| 224 | { |
no test coverage detected