1#ifndef CHIHAYA_UNARY_SPECIAL_CHECK_HPP
2#define CHIHAYA_UNARY_SPECIAL_CHECK_HPP
5#include "ritsuko/ritsuko.hpp"
9#include "utils_unary.hpp"
22namespace unary_special_check {
33 auto seed_details = internal_misc::load_seed_details(handle,
"seed", version, options);
34 if (seed_details.type == STRING) {
35 throw std::runtime_error(
"'seed' should contain integer, float or boolean values");
39 auto method = internal_unary::load_method(handle);
41 if (method !=
"is_nan" &&
42 method !=
"is_finite" &&
43 method !=
"is_infinite")
45 throw std::runtime_error(
"unrecognized 'method' (" + method +
")");
49 seed_details.type = BOOLEAN;
ArrayDetails validate(const H5::Group &handle, const ritsuko::Version &version, Options &options)
Definition: unary_special_check.hpp:32
Namespace for all chihaya functions.
Definition: binary_arithmetic.hpp:22
Details about an array.
Definition: utils_public.hpp:36
Validation options.
Definition: utils_public.hpp:66
bool details_only
Definition: utils_public.hpp:71