Adding random filling functionality to vector classes

12 views
Skip to first unread message

Michał Wichrowski

unread,
Aug 14, 2019, 6:24:57 AM8/14/19
to deal.II User Group
Dear all, 
It nothing big, but I thing adding method fill_random(const double& a=-1., const double &b=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

Wolfgang Bangerth

unread,
Aug 14, 2019, 8:38:56 AM8/14/19
to dea...@googlegroups.com
That seems like a nice addition -- want to write a patch for it? :-)

Cheers
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages