On 4/28/20 8:50 AM, Yang Liu wrote:
I would like to generate a covariance matrix based on these DoFs. After that I
would like to produce a random vector and associate the DoFs with the random
vectors, in order to compute the quadrature.
I think that's still too abstract. For example, you can create a random vector
using something like this:
Vector<double> r(dof_handler.n_dofs());
for (unsigned int i=0; i<dof_handler.n_dofs(); ++i)
r(i) = std::rand();
I suspect you have a more concrete application in mind, but you need to be
more specific to explain what it is for us to give you suggestions of how to
implement that.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/69d2d091-f007-30cf-f6c9-8d4b2268f2f2%40colostate.edu.