• Home
  • Raw
  • Download

Lines Matching refs:mat2

244     MatrixXd mat1(6,6), mat2(6,6);  in test_evaluators()  local
246 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); in test_evaluators()
247 copy_using_evaluator(mat2.transpose(), mat1); in test_evaluators()
248 VERIFY_IS_APPROX(mat2.transpose(), mat1); in test_evaluators()
255 mat2.resize(3,3); in test_evaluators()
256 VERIFY_IS_APPROX_EVALUATOR(mat2, mat1); in test_evaluators()
327 mat2.setIdentity(); in test_evaluators()
330 copy_using_evaluator(matXcd.imag(), mat2); in test_evaluators()
332 matXcd_ref.imag() = mat2; in test_evaluators()
355 VERIFY_IS_APPROX_EVALUATOR(mat2, arr1.matrix()); in test_evaluators()
357 VERIFY_IS_APPROX_EVALUATOR(mat2, (arr1 + 2).matrix()); in test_evaluators()
359 mat2.array() = arr1 * arr1; in test_evaluators()
360 VERIFY_IS_APPROX(mat2, (arr1 * arr1).matrix()); in test_evaluators()
370 mat2.array() = mat1.array().reverse(); in test_evaluators()
371 VERIFY_IS_APPROX(mat2.array(), mat1.array().reverse()); in test_evaluators()
380 mat2 = mat1; in test_evaluators()
382 mat2.diagonal(1) = vec1; in test_evaluators()
383 VERIFY_IS_APPROX(mat1, mat2); in test_evaluators()
386 mat2.diagonal<-1>() = mat2.diagonal(1); in test_evaluators()
387 VERIFY_IS_APPROX(mat1, mat2); in test_evaluators()
392 MatrixXd mat1, mat2, mat1ref, mat2ref; in test_evaluators() local
394 mat2ref = mat2 = 2 * mat1 + MatrixXd::Identity(6, 6); in test_evaluators()
395 swap_using_evaluator(mat1, mat2); in test_evaluators()
398 VERIFY_IS_APPROX(mat2, mat2ref); in test_evaluators()
400 swap_using_evaluator(mat1.block(0, 0, 3, 3), mat2.block(3, 3, 3, 3)); in test_evaluators()
403 VERIFY_IS_APPROX(mat2, mat2ref); in test_evaluators()
405 swap_using_evaluator(mat1.row(2), mat2.col(3).transpose()); in test_evaluators()
406 mat1.row(2).swap(mat2.col(3).transpose()); in test_evaluators()
408 VERIFY_IS_APPROX(mat2, mat2ref); in test_evaluators()