/dports/devel/ppl/ppl-1.2/src/ |
H A D | Boundary_defs.hh | 514 PPL_ASSERT(to_type != type); in complement() 536 PPL_ASSERT(to_type == type); in assign() 552 if (lt(type, x, info, to_type, to, to_info)) { in min_assign() 553 to_info.clear_boundary_properties(to_type); in min_assign() 576 if (gt(type, x, info, to_type, to, to_info)) { in max_assign() 577 to_info.clear_boundary_properties(to_type); in max_assign() 600 PPL_ASSERT(to_type != type); in neg_assign() 703 return mul_assign(to_type, to, to_info, in mul_assign_z() 749 return div_assign(to_type, to, to_info, in div_assign_z() 769 PPL_ASSERT(to_type == type); in umod_2exp_assign() [all …]
|
/dports/net/rabbitmq/rabbitmq-server-3.9.11/deps/syslog/src/ |
H A D | syslog_lib.erl | 37 to_type/2]). 98 to_type(binary, Name); 159 to_type(binary, N). 267 to_type(binary, V) when is_binary(V) -> V; function 270 to_type(integer, V) when is_integer(V) -> V; function 272 to_type(ip_addr, V) when is_tuple(V) -> V; function 274 to_type(Type, V) when is_pid(V) -> to_type(Type, pid_to_list(V)); function 275 to_type(Type, V) when is_integer(V) -> to_type(Type, integer_to_list(V)); function 276 to_type(Type, V) when is_binary(V) -> to_type(Type, binary_to_list(V)). function 533 ?assertEqual(1, to_type(integer, "1")), [all …]
|
/dports/print/lilypond/lilypond-2.22.1/lily/ |
H A D | change-iterator.cc | 33 string to_type = ly_symbol2string (get_property (get_music (), "change-to-type")); in error() local 36 string warn1 = _f ("cannot change `%s' to `%s'", to_type, to_id) in error() 51 SCM to_type, in change_to() argument 57 Context *last = find_context_above_by_parent_type (it.get_context (), to_type); in change_to() 61 Context *dest = find_context_near (it.get_context (), to_type, to_id); in change_to() 70 Context::diagnostic_id (to_type, to_id).c_str ())); in change_to() 73 else if (it.get_context ()->is_alias (to_type)) in change_to() 78 result = _f ("not changing to same context type: %s", ly_symbol2string (to_type).c_str ()); in change_to() 90 SCM to_type = get_property (get_music (), "change-to-type"); in process() local 93 string msg = change_to (*this, to_type, to_id); in process()
|
/dports/math/igraph/igraph-0.9.5/src/misc/ |
H A D | mixing.c | 93 long int to_type = (long int) VECTOR(*types)[to]; in igraph_assortativity_nominal() local 96 VECTOR(bi)[to_type] += 1; in igraph_assortativity_nominal() 97 if (from_type == to_type) { in igraph_assortativity_nominal() 101 if (from_type == to_type) { in igraph_assortativity_nominal() 104 VECTOR(ai)[to_type] += 1; in igraph_assortativity_nominal() 205 num1 += from_type * to_type; in igraph_assortativity() 206 num2 += from_type + to_type; in igraph_assortativity() 207 den1 += from_type * from_type + to_type * to_type; in igraph_assortativity() 232 num1 += from_type * to_type; in igraph_assortativity() 234 num3 += to_type; in igraph_assortativity() [all …]
|
/dports/math/R-cran-igraph/igraph/src/ |
H A D | mixing.c | 92 long int to_type = (long int) VECTOR(*types)[to]; in igraph_assortativity_nominal() local 95 VECTOR(bi)[to_type] += 1; in igraph_assortativity_nominal() 96 if (from_type == to_type) { in igraph_assortativity_nominal() 100 if (from_type == to_type) { in igraph_assortativity_nominal() 103 VECTOR(ai)[to_type] += 1; in igraph_assortativity_nominal() 204 num1 += from_type * to_type; in igraph_assortativity() 205 num2 += from_type + to_type; in igraph_assortativity() 206 den1 += from_type * from_type + to_type * to_type; in igraph_assortativity() 231 num1 += from_type * to_type; in igraph_assortativity() 233 num3 += to_type; in igraph_assortativity() [all …]
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/compute/ |
H A D | cast.cc | 67 auto it = internal::g_cast_table.find(static_cast<int>(to_type->id())); in GetCastFunctionInternal() 71 *to_type, in GetCastFunctionInternal() 74 return Status::NotImplemented("Unsupported cast to ", *to_type, in GetCastFunctionInternal() 96 if (cast_options == nullptr || cast_options->to_type == nullptr) { in ValidateOptions() 109 if (args[0].type()->Equals(*cast_options->to_type)) { in ExecuteImpl() 195 options_with_to_type.to_type = to_type; in Cast() 206 const std::shared_ptr<DataType>& to_type) { in GetCastFunction() argument 207 return internal::GetCastFunctionInternal(to_type); in GetCastFunction() 210 bool CanCast(const DataType& from_type, const DataType& to_type) { in CanCast() argument 212 auto it = internal::g_cast_table.find(static_cast<int>(to_type.id())); in CanCast() [all …]
|
H A D | cast.h | 53 static CastOptions Safe(std::shared_ptr<DataType> to_type = NULLPTR) { 55 safe.to_type = std::move(to_type); 59 static CastOptions Unsafe(std::shared_ptr<DataType> to_type = NULLPTR) { 61 unsafe.to_type = std::move(to_type); 67 std::shared_ptr<DataType> to_type; member 109 const std::shared_ptr<DataType>& to_type); 113 bool CanCast(const DataType& from_type, const DataType& to_type); 128 Result<std::shared_ptr<Array>> Cast(const Array& value, std::shared_ptr<DataType> to_type, 154 Result<Datum> Cast(const Datum& value, std::shared_ptr<DataType> to_type,
|
/dports/x11/libX11/libX11-1.7.2/src/xlibi18n/ |
H A D | lcConv.c | 44 XrmQuark to_type; member 63 XrmQuark to_type) in get_converter() argument 72 && list->from_type == from_type && list->to_type == to_type) { in get_converter() 101 XrmQuark from_type, to_type; in _XlcSetConverter() local 104 to_type = XrmStringToQuark(to); in _XlcSetConverter() 110 && list->from_type == from_type && list->to_type == to_type) { in _XlcSetConverter() 126 list->to_type = to_type; in _XlcSetConverter() 252 XrmQuark from_type, to_type; in open_indirect_converter() local 262 to_type = XrmStringToQuark(to); in open_indirect_converter() 265 to_type == QChar) in open_indirect_converter() [all …]
|
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/compute/ |
H A D | cast.h | 49 static CastOptions Safe(std::shared_ptr<DataType> to_type = NULLPTR) { 51 safe.to_type = std::move(to_type); 55 static CastOptions Unsafe(std::shared_ptr<DataType> to_type = NULLPTR) { 57 unsafe.to_type = std::move(to_type); 63 std::shared_ptr<DataType> to_type; variable 105 const std::shared_ptr<DataType>& to_type); 109 bool CanCast(const DataType& from_type, const DataType& to_type); 124 Result<std::shared_ptr<Array>> Cast(const Array& value, std::shared_ptr<DataType> to_type, 150 Result<Datum> Cast(const Datum& value, std::shared_ptr<DataType> to_type,
|
H A D | cast.cc | 74 auto it = internal::g_cast_table.find(static_cast<int>(to_type->id())); in GetCastFunctionInternal() 78 *to_type, in GetCastFunctionInternal() 81 return Status::NotImplemented("Unsupported cast to ", *to_type, in GetCastFunctionInternal() 103 if (cast_options == nullptr || cast_options->to_type == nullptr) { in ValidateOptions() 116 if (args[0].type()->Equals(*cast_options->to_type)) { in ExecuteImpl() 127 arrow::internal::DataMember("to_type", &CastOptions::to_type), 223 options_with_to_type.to_type = to_type; in Cast() 234 const std::shared_ptr<DataType>& to_type) { in GetCastFunction() argument 235 return internal::GetCastFunctionInternal(to_type); in GetCastFunction() 238 bool CanCast(const DataType& from_type, const DataType& to_type) { in CanCast() argument [all …]
|
/dports/x11-toolkits/open-motif/motif-2.3.8/lib/Xm/ |
H A D | ResInd.c | 97 int to_type, in XmConvertStringToUnits() argument 182 int to_type, in _XmConvertStringToUnits() argument 343 register int to_type ) in _XmConvertUnits() argument 372 if (from_type == to_type) in _XmConvertUnits() 431 if (to_type == XmPIXELS) in _XmConvertUnits() 435 else if (to_type == XmPOINTS) in _XmConvertUnits() 439 else if (to_type == XmINCHES) in _XmConvertUnits() 443 else if (to_type == XmMILLIMETERS) in _XmConvertUnits() 477 register int to_type ) in XmConvertUnits() argument 630 register int to_type ) in XmCvtFromHorizontalPixels() argument [all …]
|
/dports/sysutils/gsmartcontrol/gsmartcontrol-1.1.3/src/hz/ |
H A D | any_convert.h | 85 #define DEFINE_ANY_CONVERT_SPEC(from_type, to_type) \ 87 struct any_convertible<from_type, to_type> : public AnyConvertibleValue<true> { }; \ 90 inline bool any_convert<from_type, to_type>(from_type from, to_type& to) \ 95 #define DEFINE_ANY_CONVERT_SPEC_STATIC(from_type, to_type) \ 96 DEFINE_ANY_CONVERT_SPEC(from_type, to_type) \ 98 to = static_cast<to_type>(from); \ 119 #define DEFINE_ANY_CONVERT_SPEC_STRINGTONUM(to_type) \ 120 DEFINE_ANY_CONVERT_SPEC(std::string, to_type) \ 124 DEFINE_ANY_CONVERT_SPEC(const std::string&, to_type) \
|
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/compute/ |
H A D | cast.cc | 69 if (cast_options == nullptr || cast_options->to_type == nullptr) { in Execute() 74 if (args[0].type()->Equals(*cast_options->to_type)) { in Execute() 78 GetCastFunction(cast_options->to_type)); in Execute() 107 DCHECK(cast_options->to_type); in CastInit() 178 Result<Datum> Cast(const Datum& value, std::shared_ptr<DataType> to_type, in Cast() argument 181 options_with_to_type.to_type = to_type; in Cast() 192 const std::shared_ptr<DataType>& to_type) { in GetCastFunction() argument 194 auto it = internal::g_cast_table.find(static_cast<int>(to_type->id())); in GetCastFunction() 197 to_type->ToString()); in GetCastFunction() 202 bool CanCast(const DataType& from_type, const DataType& to_type) { in CanCast() argument [all …]
|
/dports/databases/grass7/grass-7.8.6/vector/v.type/ |
H A D | main.c | 33 int from_type, to_type; in main() local 95 to_type = GV_POINT; in main() 98 to_type = GV_LINE; in main() 101 to_type = GV_BOUNDARY; in main() 104 to_type = GV_CENTROID; in main() 107 to_type = GV_FACE; in main() 110 to_type = GV_KERNEL; in main() 115 (to_type & (GV_LINE | GV_BOUNDARY | GV_FACE)) in main() 117 (to_type & (GV_POINT | GV_CENTROID | GV_KERNEL)) in main() 146 type = to_type; in main()
|
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/lua/ |
H A D | lua_object.hpp | 70 this->value_ = to_type(L, lua_absindex(L, n)); in store() 76 std::shared_ptr<T> to_type(lua_State *, int) in to_type() function in ai::lua_object 85 inline std::shared_ptr<double> lua_object<double>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object 91 inline std::shared_ptr<std::string> lua_object<std::string>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object::string 97 inline std::shared_ptr<bool> lua_object<bool>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object 103 inline std::shared_ptr<int> lua_object<int>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object 126 inline std::shared_ptr<config> lua_object<config>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object 134 inline std::shared_ptr<terrain_filter> lua_object<terrain_filter>::to_type(lua_State *L, int n) in to_type() function in ai::lua_object 147 inline std::shared_ptr<std::vector<target> > lua_object< std::vector<target> >::to_type(lua_State *… in to_type() function in ai::lua_object::vector 196 inline std::shared_ptr<unit_advancements_aspect> lua_object<unit_advancements_aspect>::to_type(lua_… in to_type() function in ai::lua_object [all …]
|
/dports/misc/py-onnx/onnx-1.10.2/onnx/backend/test/case/node/ |
H A D | cast.py | 39 for from_type, to_type in test_cases: 42 if 'BFLOAT16' == from_type or 'BFLOAT16' == to_type: 49 if 'BFLOAT16' == to_type: 56 assert to_type == 'FLOAT' 71 if ('STRING' == to_type): 81 output = input.astype(TENSOR_TYPE_TO_NP_TYPE[getattr(TensorProto, to_type)]) 86 output = input.astype(TENSOR_TYPE_TO_NP_TYPE[getattr(TensorProto, to_type)]) 91 to=getattr(TensorProto, to_type), 95 name='test_cast_' + from_type + '_to_' + to_type, 100 name='test_cast_' + from_type + '_to_' + to_type)
|
H A D | castlike.py | 39 for from_type, to_type in test_cases: 42 if 'BFLOAT16' == from_type or 'BFLOAT16' == to_type: 49 if 'BFLOAT16' == to_type: 56 assert to_type == 'FLOAT' 71 if ('STRING' == to_type): 81 output = input.astype(TENSOR_TYPE_TO_NP_TYPE[getattr(TensorProto, to_type)]) 86 output = input.astype(TENSOR_TYPE_TO_NP_TYPE[getattr(TensorProto, to_type)]) 95 name='test_castlike_' + from_type + '_to_' + to_type, 100 name='test_castlike_' + from_type + '_to_' + to_type)
|
/dports/devel/kyua/kyua-0.13/utils/text/ |
H A D | operations_test.cpp | 342 ATF_REQUIRE( text::to_type< bool >("true")); in ATF_TEST_CASE_BODY() 343 ATF_REQUIRE(!text::to_type< bool >("false")); in ATF_TEST_CASE_BODY() 350 ATF_REQUIRE_EQ(12, text::to_type< int >("12")); in ATF_TEST_CASE_BODY() 351 ATF_REQUIRE_EQ(18745, text::to_type< int >("18745")); in ATF_TEST_CASE_BODY() 352 ATF_REQUIRE_EQ(-12345, text::to_type< int >("-12345")); in ATF_TEST_CASE_BODY() 354 ATF_REQUIRE_EQ(12.0, text::to_type< double >("12")); in ATF_TEST_CASE_BODY() 355 ATF_REQUIRE_EQ(12.5, text::to_type< double >("12.5")); in ATF_TEST_CASE_BODY() 365 ATF_REQUIRE_EQ("", text::to_type< std::string >("")); in ATF_TEST_CASE_BODY() 373 ATF_REQUIRE_THROW(text::value_error, text::to_type< int >("")); in ATF_TEST_CASE_BODY() 380 ATF_REQUIRE_THROW(text::value_error, text::to_type< bool >("")); in ATF_TEST_CASE_BODY() [all …]
|
/dports/devel/R-cran-rlang/rlang/R/ |
H A D | utils-conditions.R | 2 abort_coercion <- function(x, to_type) { argument 4 if (!inherits(to_type, "AsIs")) { 5 to_type <- as_friendly_type(to_type) 7 abort(paste0("Can't convert ", x_type, " to ", to_type))
|
/dports/devel/atf/atf-0.21/atf-c++/detail/ |
H A D | text_test.cpp | 346 ATF_TEST_CASE(to_type); 347 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument 351 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument 353 using atf::text::to_type; in ATF_TEST_CASE_BODY() 355 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY() 356 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY() 359 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY() 361 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY() 362 ATF_REQUIRE_EQ(to_type< float >("1234.5"), 1234.5); in ATF_TEST_CASE_BODY() 366 ATF_REQUIRE_EQ(to_type< std::string >("a"), "a"); in ATF_TEST_CASE_BODY() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/ |
H A D | checked_conversions.rs | 79 if let Some(to_type) = cv.to_type { in check_expr() 88 format!("{}::try_from({}).is_ok()", to_type, snippet), in check_expr() 121 to_type: Option<&'a str>, field 137 Some(if self.to_type.is_some() { self } else { other }) in combine() 153 match (self.to_type, other.to_type) { in has_compatible_to_type() 161 ConversionType::try_new(from_type, to_type).map(|cvt| Conversion { in try_new() 164 to_type: Some(to_type), in try_new() 173 to_type: None, in new_any() 298 if let Some(to_type) = get_implementing_type(path, types, func) { in get_types_from_cast() 299 return Some((from_type, to_type)); in get_types_from_cast() [all …]
|
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/ |
H A D | sancov.c | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|
/dports/lang/gcc9/gcc-9.4.0/gcc/ |
H A D | sancov.c | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|
/dports/devel/avr-gcc/gcc-10.2.0/gcc/ |
H A D | sancov.c | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/ |
H A D | sancov.c | 59 tree to_type = NULL_TREE; in instrument_comparison() local 71 to_type = unsigned_char_type_node; in instrument_comparison() 76 to_type = uint16_type_node; in instrument_comparison() 81 to_type = uint32_type_node; in instrument_comparison() 86 to_type = uint64_type_node; in instrument_comparison() 95 to_type = float_type_node; in instrument_comparison() 100 to_type = double_type_node; in instrument_comparison() 104 if (to_type != NULL_TREE) in instrument_comparison() 108 if (!useless_type_conversion_p (to_type, type)) in instrument_comparison() 111 lhs = fold_convert (to_type, lhs); in instrument_comparison() [all …]
|