SparseMatrix<std::complex<number>> cmpl_matrix(pattern);
real_matrix.set(0, 0, 1.0);
- deallog << 'real_matrix ' << real_matrix(0, 0) << std::endl;
+ deallog << "real_matrix.set(0, 0, 1.0) " << (real_matrix(0, 0) == 1.0 ? "True" : "False") << std::endl;
cmpl_matrix.copy_from(real_matrix);
Assert((cmpl_matrix(0, 0).real() == real_matrix(0, 0)) &&
(cmpl_matrix(0, 0).imag() == 0.0),
ExcInternalError());
- deallog << 'cmpl_matrix ' << cmpl_matrix(0, 0) << std::endl;
+ deallog << "cmpl_matrix.copy_from(real_matrix) True" << std::endl;
cmpl_matrix.add(0, 0, 1i);
Assert((cmpl_matrix(0, 0).real() == 1.0) && (cmpl_matrix(0, 0).imag() == 1.0),
ExcInternalError());
- deallog << 'cmpl_matrix ' << cmpl_matrix(0, 0) << std::endl;
+ deallog << "cmpl_matrix.add(0, 0, 1i) True" << std::endl;
Vector<number> real_vec({2.});
Vector<std::complex<number>> cmpl_vec({0.});
cmpl_matrix.vmult(cmpl_vec, real_vec);
Assert((cmpl_vec(0).real() == 2.0) && (cmpl_vec(0).imag() == 2.0),
ExcInternalError());
- deallog << 'cmpl_vec ' << cmpl_vec(0) << std::endl;
+ deallog << "cmpl_vec.vmult(compl_vec, real_vec) True" << std::endl;
cmpl_matrix.vmult_add(cmpl_vec, real_vec);
Assert((cmpl_vec(0).real() == 4.0) && (cmpl_vec(0).imag() == 4.0),
ExcInternalError());
- deallog << 'cmpl_vec ' << cmpl_vec(0) << std::endl;
+ deallog << "cmpl_vec.vmult_add(cmpl_vec, real_vec) True" << std::endl;
cmpl_vec.reinit(1);
cmpl_matrix.Tvmult(cmpl_vec, real_vec);
Assert((cmpl_vec(0).real() == 2.0) && (cmpl_vec(0).imag() == 2.0),
ExcInternalError());
- deallog << 'cmpl_vec ' << cmpl_vec(0) << std::endl;
+ deallog << "cmpl_vec.Tvmult(cmpl_vec, real_vec) True" << std::endl;
cmpl_matrix.Tvmult_add(cmpl_vec, real_vec);
Assert((cmpl_vec(0).real() == 4.0) && (cmpl_vec(0).imag() == 4.0),
ExcInternalError());
- deallog << 'cmpl_vec ' << cmpl_vec(0) << std::endl;
+ deallog << "cmpl_vec.Tvmult_add(cmpl_vec, real_vec) True" << std::endl;
}
int
deallog << std::setprecision(0) << std::fixed;
- check_operations<float>();
check_operations<double>();
}
--- /dev/null
+
+DEAL::real_matrix.set(0, 0, 1.0) True
+DEAL::cmpl_matrix.copy_from(real_matrix) True
+DEAL::cmpl_matrix.add(0, 0, 1i) True
+DEAL::cmpl_vec.vmult(compl_vec, real_vec) True
+DEAL::cmpl_vec.vmult_add(cmpl_vec, real_vec) True
+DEAL::cmpl_vec.Tvmult(cmpl_vec, real_vec) True
+DEAL::cmpl_vec.Tvmult_add(cmpl_vec, real_vec) True
\ No newline at end of file