@@ -206,10 +206,6 @@ const std::vector<PcaInputs<float>> inputsf2 = {
206206 {0 .01f , 3 * 2 , 3 , 2 , 1024 * 128 , 1024 , 128 , 1234ULL , 0 },
207207 {0 .01f , 3 * 2 , 3 , 2 , 256 * 32 , 256 , 32 , 1234ULL , 1 }};
208208
209- const std::vector<PcaInputs<double >> inputsd2 = {
210- {0.01 , 3 * 2 , 3 , 2 , 1024 * 128 , 1024 , 128 , 1234ULL , 0 },
211- {0.01 , 3 * 2 , 3 , 2 , 256 * 32 , 256 , 32 , 1234ULL , 1 }};
212-
213209typedef PcaTest<float > PcaTestValF;
214210TEST_P (PcaTestValF, Result)
215211{
@@ -220,16 +216,6 @@ TEST_P(PcaTestValF, Result)
220216 raft::resource::get_cuda_stream (handle)));
221217}
222218
223- typedef PcaTest<double > PcaTestValD;
224- TEST_P (PcaTestValD, Result)
225- {
226- ASSERT_TRUE (devArrMatch (explained_vars.data (),
227- explained_vars_ref.data (),
228- params.n_col ,
229- cuvs::CompareApprox<double >(params.tolerance ),
230- raft::resource::get_cuda_stream (handle)));
231- }
232-
233219typedef PcaTest<float > PcaTestLeftVecF;
234220TEST_P (PcaTestLeftVecF, Result)
235221{
@@ -240,16 +226,6 @@ TEST_P(PcaTestLeftVecF, Result)
240226 raft::resource::get_cuda_stream (handle)));
241227}
242228
243- typedef PcaTest<double > PcaTestLeftVecD;
244- TEST_P (PcaTestLeftVecD, Result)
245- {
246- ASSERT_TRUE (devArrMatch (components.data (),
247- components_ref.data (),
248- (params.n_col * params.n_col ),
249- cuvs::CompareApprox<double >(params.tolerance ),
250- raft::resource::get_cuda_stream (handle)));
251- }
252-
253229typedef PcaTest<float > PcaTestTransDataF;
254230TEST_P (PcaTestTransDataF, Result)
255231{
@@ -260,16 +236,6 @@ TEST_P(PcaTestTransDataF, Result)
260236 raft::resource::get_cuda_stream (handle)));
261237}
262238
263- typedef PcaTest<double > PcaTestTransDataD;
264- TEST_P (PcaTestTransDataD, Result)
265- {
266- ASSERT_TRUE (devArrMatch (trans_data.data (),
267- trans_data_ref.data (),
268- (params.n_row * params.n_col ),
269- cuvs::CompareApprox<double >(params.tolerance ),
270- raft::resource::get_cuda_stream (handle)));
271- }
272-
273239typedef PcaTest<float > PcaTestDataVecSmallF;
274240TEST_P (PcaTestDataVecSmallF, Result)
275241{
@@ -280,16 +246,6 @@ TEST_P(PcaTestDataVecSmallF, Result)
280246 raft::resource::get_cuda_stream (handle)));
281247}
282248
283- typedef PcaTest<double > PcaTestDataVecSmallD;
284- TEST_P (PcaTestDataVecSmallD, Result)
285- {
286- ASSERT_TRUE (devArrMatch (data.data (),
287- data_back.data (),
288- (params.n_row * params.n_col ),
289- cuvs::CompareApprox<double >(params.tolerance ),
290- raft::resource::get_cuda_stream (handle)));
291- }
292-
293249typedef PcaTest<float > PcaTestDataVecF;
294250TEST_P (PcaTestDataVecF, Result)
295251{
@@ -300,34 +256,14 @@ TEST_P(PcaTestDataVecF, Result)
300256 raft::resource::get_cuda_stream (handle)));
301257}
302258
303- typedef PcaTest<double > PcaTestDataVecD;
304- TEST_P (PcaTestDataVecD, Result)
305- {
306- ASSERT_TRUE (devArrMatch (data2.data (),
307- data2_back.data (),
308- (params.n_row2 * params.n_col2 ),
309- cuvs::CompareApprox<double >(params.tolerance ),
310- raft::resource::get_cuda_stream (handle)));
311- }
312-
313259INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestValF, ::testing::ValuesIn(inputsf2));
314260
315- INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestValD, ::testing::ValuesIn(inputsd2));
316-
317261INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestLeftVecF, ::testing::ValuesIn(inputsf2));
318262
319- INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestLeftVecD, ::testing::ValuesIn(inputsd2));
320-
321263INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestDataVecSmallF, ::testing::ValuesIn(inputsf2));
322264
323- INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestDataVecSmallD, ::testing::ValuesIn(inputsd2));
324-
325265INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestTransDataF, ::testing::ValuesIn(inputsf2));
326266
327- INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestTransDataD, ::testing::ValuesIn(inputsd2));
328-
329267INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestDataVecF, ::testing::ValuesIn(inputsf2));
330268
331- INSTANTIATE_TEST_CASE_P (PcaTests, PcaTestDataVecD, ::testing::ValuesIn(inputsd2));
332-
333269} // end namespace cuvs::preprocessing::pca
0 commit comments