| 3089 | } |
| 3090 | |
| 3091 | void validate_krausMapIsCPTP(KrausMap map, const char* caller) { |
| 3092 | validate_krausMapFields(map, caller); |
| 3093 | validate_krausMapIsSynced(map, caller); |
| 3094 | |
| 3095 | // avoid expensive CPTP check (and do not overwrite .isApproxCPTP) if validation is anyway disabled |
| 3096 | if (isNumericalValidationDisabled()) |
| 3097 | return; |
| 3098 | |
| 3099 | // use existing CPTPness or calculate afresh |
| 3100 | assertThat(util_isCPTP(map, global_validationEpsilon), report::KRAUS_MAP_NOT_CPTP, caller); |
| 3101 | } |
| 3102 | |
| 3103 | void validate_krausMapMatchesTargets(KrausMap map, int numTargets, const char* caller) { |
| 3104 |
no test coverage detected