Lines Matching refs:Complex
160 template<class Complex>
163 typedef typename Complex::value_type Real; in test_complex_lp()
165 std::vector<Complex> v{{1,0}, {0,0}, {0,0}}; in test_complex_lp()
172 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_lp()
225 template<class Complex>
228 using Real = typename Complex::value_type; in test_complex_lp_distance()
231 std::vector<Complex> u{{1,0},{0,0},{0,0}}; in test_complex_lp_distance()
232 std::vector<Complex> v{{0,0},{0,0},{0,0}}; in test_complex_lp_distance()
240 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_lp_distance()
241 u = generate_random_vector<Complex>(global_size, global_seed + 1); in test_complex_lp_distance()
410 template<class Complex>
413 typedef typename Complex::value_type Real; in test_complex_sup_norm()
415 std::vector<Complex> w{{0,-8}, {1,1}, {3,2}}; in test_complex_sup_norm()
422 auto v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_sup_norm()
452 template<class Complex>
455 std::vector<Complex> v{{0,0}, {0,0}, {1,0}}; in test_complex_l0_pseudo_norm()
528 template<class Complex>
531 typedef typename Complex::value_type Real; in test_complex_l1_norm()
533 std::vector<Complex> v{{1,0}, {0,1},{0,-1}}; in test_complex_l1_norm()
540 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_l1_norm()
595 template<class Complex>
598 typedef typename Complex::value_type Real; in test_complex_l1_distance()
600 std::vector<Complex> v{{1,0}, {0,1},{0,-1}}; in test_complex_l1_distance()
604 std::vector<Complex> w{{2,0}, {0,1},{0,-1}}; in test_complex_l1_distance()
608 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_l1_distance()
609 w = generate_random_vector<Complex>(global_size, global_seed + 1); in test_complex_l1_distance()
674 template<class Complex>
677 typedef typename Complex::value_type Real; in test_complex_l2_norm()
679 std::vector<Complex> v{{1,0}, {0,1},{0,-1}, {1,0}}; in test_complex_l2_norm()
686 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_l2_norm()
728 template<class Complex>
731 typedef typename Complex::value_type Real; in test_complex_l2_distance()
733 std::vector<Complex> v{{1,0}, {0,1},{0,-1}, {1,0}}; in test_complex_l2_distance()
737 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_l2_distance()
738 auto w = generate_random_vector<Complex>(global_size, global_seed + 1); in test_complex_l2_distance()
782 template<class Complex>
785 typedef typename Complex::value_type Real; in test_complex_sup_distance()
787 std::vector<Complex> v{{1,0}, {0,1},{0,-1}, {1,0}}; in test_complex_sup_distance()
791 v = generate_random_vector<Complex>(global_size, global_seed); in test_complex_sup_distance()
792 auto w = generate_random_vector<Complex>(global_size, global_seed + 1); in test_complex_sup_distance()