14 typedef struct _p_SLES* SLES;
15 typedef struct _p_Mat* Mat;
16 typedef struct _p_Vec* Vec;
36 template<
class F,
class G>
83 const std::string
pctype = std::string(
"none"));
92 virtual std::ostream&
info(std::ostream&
os)
const;
94 typedef int (*multPointer)(Mat, Vec, Vec);
95 typedef void (*PETScmultPointer)();
172 virtual void transpMult(
const Vector<std::complex<double> >&
fncY,
183 virtual const Space<double>& spaceX()
const {
return spcX_; }
184 virtual const Space<double>& spaceY()
const {
return spcY_; }
187 operator Mat() {
return A_; }
189 void storeMatlab(
const char* name)
const;
191 std::ostream&
info(std::ostream&
os)
const;
virtual void operator()()
virtual Real operator()(const uint i, const uint j) const
Returns entry with indices i and j.
PETScMat(const Space< Real > &spcX, const Space< Real > &spcY)
PETScMat(const Space< Real > &spc, BilinearForm< Real, Real > &bf)
PETScMat(const SparseMatrix< Real > &matrix)
Constructor. Copies the matrix from matrix.
virtual Real & operator()(const uint i, const uint j)
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
PETSc(Operator< Real > &A, const Real maxeps, const std::string ksptype, const std::string pctype=std::string("none"))
Set< F > makeSet(uint n, const F &first,...)