Re: [deal.II] Adding random filling functionality to vector classes

2019-08-14 Thread Wolfgang Bangerth
On 8/14/19 4:24 AM, Michał Wichrowski wrote:
> 
> It nothing big, but I thing adding method fill_random(const double& a=-1., 
> const double =1.) to vector classes that will fill a vector with random 
> values (from range [a,b]) would be useful. I'm using it in most of my 
> programs,  it's great for testing solvers, especially multigrid smoothers.

That seems like a nice addition -- want to write a patch for it? :-)

Cheers
  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/cfd94436-ca7f-74f3-59bf-a8e051ca9f36%40colostate.edu.


[deal.II] Adding random filling functionality to vector classes

2019-08-14 Thread Michał Wichrowski
Dear all, 
It nothing big, but I thing adding method fill_random(const double& a=-1., 
const double =1.) to vector classes that will fill a vector with random 
values (from range [a,b]) would be useful. I'm using it in most of my 
programs,  it's great for testing solvers, especially multigrid smoothers. 
Best,
Michal

-- 
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/339524fd-6b47-4f2c-8197-8547d4af313d%40googlegroups.com.