MCPcopy Create free account
hub / github.com/PX4/eigen / test_vectorization_logic

Function test_vectorization_logic

test/vectorization_logic.cpp:383–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381};
382
383void test_vectorization_logic()
384{
385
386#ifdef EIGEN_VECTORIZE
387
388 CALL_SUBTEST( vectorization_logic<int>::run() );
389 CALL_SUBTEST( vectorization_logic<float>::run() );
390 CALL_SUBTEST( vectorization_logic<double>::run() );
391 CALL_SUBTEST( vectorization_logic<std::complex<float> >::run() );
392 CALL_SUBTEST( vectorization_logic<std::complex<double> >::run() );
393
394 CALL_SUBTEST( vectorization_logic_half<int>::run() );
395 CALL_SUBTEST( vectorization_logic_half<float>::run() );
396 CALL_SUBTEST( vectorization_logic_half<double>::run() );
397 CALL_SUBTEST( vectorization_logic_half<std::complex<float> >::run() );
398 CALL_SUBTEST( vectorization_logic_half<std::complex<double> >::run() );
399
400 if(internal::packet_traits<float>::Vectorizable)
401 {
402 VERIFY(test_assign(Matrix<float,3,3>(),Matrix<float,3,3>()+Matrix<float,3,3>(),
403 EIGEN_UNALIGNED_VECTORIZE ? LinearVectorizedTraversal : LinearTraversal,CompleteUnrolling));
404
405 VERIFY(test_redux(Matrix<float,5,2>(),
406 EIGEN_UNALIGNED_VECTORIZE ? LinearVectorizedTraversal : DefaultTraversal,CompleteUnrolling));
407 }
408
409 if(internal::packet_traits<double>::Vectorizable)
410 {
411 VERIFY(test_assign(Matrix<double,3,3>(),Matrix<double,3,3>()+Matrix<double,3,3>(),
412 EIGEN_UNALIGNED_VECTORIZE ? LinearVectorizedTraversal : LinearTraversal,CompleteUnrolling));
413
414 VERIFY(test_redux(Matrix<double,7,3>(),
415 EIGEN_UNALIGNED_VECTORIZE ? LinearVectorizedTraversal : DefaultTraversal,CompleteUnrolling));
416 }
417#endif // EIGEN_VECTORIZE
418
419}

Callers

nothing calls this directly

Calls 3

test_assignFunction · 0.70
test_reduxFunction · 0.70
runFunction · 0.50

Tested by

no test coverage detected