<div dir="ltr"><div><div><div><div><div>Hello!<br></div>I have a few simple questions about PETSc about functions that I can't seem to find in the documentation:<br></div>1) Is there a way to automatically create a matrix in which all elements are the same scalar value a, e.g. something like ones(m,n) in Matlab?<br>
</div>2) Is there an equivalent to Matlab .* operator?<br></div>3) Is there a function that can create matrix C by appending matrices A and B? <br></div>Grateful in advance<br></div>