30 auto left_details = fetch_seed(group,
"left", version, options);
31 auto right_details = fetch_seed(group,
"right", version, options);
34 if (!are_dimensions_equal(left_details.dimensions, right_details.dimensions)) {
35 throw std::runtime_error(
"'left' and 'right' should have the same dimensions");
38 if ((left_details.type == STRING) != (right_details.type == STRING)) {
39 throw std::runtime_error(
"both or neither of 'left' and 'right' should contain strings");
42 auto method = load_scalar_string_dataset(group,
"method");
43 if (!is_valid_comparison_operation(method)) {
44 throw std::runtime_error(
"unrecognized 'method' (" + method +
")");
48 left_details.type = BOOLEAN;
ArrayDetails validate_binary_comparison(const H5::Group &group, const ritsuko::Version &version, const Options &options)
Definition binary_comparison.hpp:29