diff --git a/include/xo/unit/natural_unit.hpp b/include/xo/unit/natural_unit.hpp index 686b7054..d8812cd9 100644 --- a/include/xo/unit/natural_unit.hpp +++ b/include/xo/unit/natural_unit.hpp @@ -34,7 +34,7 @@ namespace xo { } template - struct bpu_array_maker { + struct nu_maker { template static constexpr natural_unit make_bpu_array(Ts... args) { @@ -64,7 +64,7 @@ namespace xo { constexpr natural_unit() : n_bpu_{0} {} static constexpr natural_unit from_bu(basis_unit bu) { - return bpu_array_maker::make_bpu_array(make_unit_power(bu)); + return nu_maker::make_bpu_array(make_unit_power(bu)); } constexpr std::size_t n_bpu() const { return n_bpu_; } diff --git a/utest/Quantity.test.cpp b/utest/Quantity.test.cpp index aaeb6941..2d21f2d6 100644 --- a/utest/Quantity.test.cpp +++ b/utest/Quantity.test.cpp @@ -19,7 +19,7 @@ namespace xo { using xo::qty::natural_unit; using xo::qty::basis_unit; using xo::qty::n_dim; - namespace nu = xo::qty::nu2; + namespace nu = xo::qty::nu; namespace bu = xo::qty::bu; using xo::rng::xoshiro256ss; diff --git a/utest/unit.test.cpp b/utest/unit.test.cpp index c6b52950..33b6355b 100644 --- a/utest/unit.test.cpp +++ b/utest/unit.test.cpp @@ -40,7 +40,7 @@ namespace xo { using xo::qty::detail::bpu2_rescale; using xo::qty::detail::bpu2_product; using xo::qty::natural_unit; - using xo::qty::bpu_array_maker; + using xo::qty::nu_maker; using xo::qty::detail::su_product; using xo::qty::detail::su_bpu_product; using xo::qty::detail::nu_ratio_inplace; @@ -552,7 +552,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::mass, scalefactor_ratio_type(1000, 1), power_ratio_type(1, 1)))); static_assert(v.n_bpu() == 1); @@ -560,7 +560,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::mass, scalefactor_ratio_type(1, 1000), power_ratio_type(-1, 1)))); @@ -582,7 +582,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::mass, scalefactor_ratio_type(1, 1000), power_ratio_type(-1, 1)))); @@ -629,7 +629,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::time, scalefactor_ratio_type(30*24*3600, 1), power_ratio_type(-1, 2)))); @@ -673,7 +673,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::mass, scalefactor_ratio_type(1, 1000), power_ratio_type(-1, 1)))); @@ -717,14 +717,14 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::mass, scalefactor_ratio_type(1, 1000), power_ratio_type(-1, 1)))); static_assert(v.n_bpu() == 2); constexpr natural_unit w - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::time, scalefactor_ratio_type(30*24*3600, 1), power_ratio_type(-1, 2)))); static_assert(w.n_bpu() == 1); @@ -764,7 +764,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1, 1000), power_ratio_type(2, 1)), bpu(dim::mass, scalefactor_ratio_type(1, 1000), power_ratio_type(-1, 1)))); @@ -791,7 +791,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::distance, scalefactor_ratio_type(1000, 1), power_ratio_type(2, 1)))); static_assert(v.n_bpu() == 1); @@ -817,7 +817,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::mass, scalefactor_ratio_type(1000, 1), power_ratio_type(1, 1)), bpu(dim::distance, scalefactor_ratio_type(1, 1), power_ratio_type(1, 1)), bpu(dim::time, scalefactor_ratio_type(1, 1), power_ratio_type(-2, 1)))); @@ -845,7 +845,7 @@ namespace xo { { constexpr natural_unit v - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::mass, scalefactor_ratio_type(1000, 1), power_ratio_type(1, 1)), bpu(dim::distance, scalefactor_ratio_type(1, 1), power_ratio_type(1, 1)))); @@ -871,7 +871,7 @@ namespace xo { { constexpr natural_unit w - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::mass, scalefactor_ratio_type(1000, 1), power_ratio_type(1, 1)))); static_assert(w.n_bpu() == 1); @@ -889,7 +889,7 @@ namespace xo { { constexpr natural_unit w - = (bpu_array_maker::make_bpu_array + = (nu_maker::make_bpu_array (bpu(dim::time, scalefactor_ratio_type(1, 1), power_ratio_type(1, 1)))); static_assert(w.n_bpu() == 1);