[petsc-users] *****SPAM*****Create vector with evenly spaced values
Satish Balay
balay at mcs.anl.gov
Thu Aug 28 08:21:45 CDT 2014
On Wed, 27 Aug 2014, Florian Lindner wrote:
> Hello,
>
> is there a way to create a vector with evenly spaced values in an interval,
> like the numpy.arange function?
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.arange.html or the
> linspace function?
nope you would have to generate these values yourself and set them in the Vec
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/index.html
Satish
More information about the petsc-users
mailing list