29 std::ostream& operator<<(std::ostream& out, const AxisGrid<T>& rhs)
32 out <<
NativePrint(rhs.ndom_int) <<
", //ndom_int\n";
35 out << rhs.umin <<
", //umin\n";
36 out << rhs.umax <<
", //umax\n";
37 out << rhs.odu <<
", //odu\n";
39 out <<
NativePrint(rhs.ndu_per_interval) <<
", //ndu_per_interval\n";
40 out << rhs.dimensions <<
"} //dimensions\n";
46 using Real = TestType;
47 using namespace std::string_literals;
49 std::istringstream grid_input_1(
"0 (0.1) 1"s);
89 CHECK(axis_grid_1 == expected_1);
91 std::istringstream grid_input_2(
"0.1 (10) 0.2 (20) 0.4 (10) 0.8"s);
112 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
113 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 30, 30, 30, 31, 31,
114 31, 31, 32, 32, 32, 32, 33, 33, 33, 33, 34, 34, 34, 34, 35, 35, 35, 35,
115 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 39, 39, 39, 39,
118 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
119 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
123 CHECK(axis_grid_2 == expected_2);
128 using Real = TestType;
129 using namespace std::string_literals;
131 std::istringstream grid_input_1(
"1.1 (0.1) 1.5"s);
134 std::istringstream grid_input_2(
"0.8 (0.1) 0.5"s);
137 std::istringstream grid_input_3(
"0.8 (0.1) 1.5"s);
140 std::istringstream grid_input_4(
"0.1 (0.3) 0.2"s);
143 std::istringstream grid_input_5(
"0.1 (10) 0.2 (20) 0.35 (10) 0.73"s);
149 using Real = TestType;
190 CHECK(start_grid == copied_grid);
191 CHECK(start_grid == assigned_grid);
The operator<< functions provide output for data structures that can be used to directly initialize t...
helper functions for EinsplineSetBuilder
This wrapper is to allow us to leave the user facing operator<< for classes alone.
This a subclass for runtime errors that will occur on all ranks.
The AxisGrid data structure and the ParseGridInput factor parsing in a manner usable in acustom handl...
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
TEMPLATE_TEST_CASE("RandomRotationMatrix", "[numerics]", float, double)