44#ifndef EPETRA_SERIALDENSEVECTOR_H
45#define EPETRA_SERIALDENSEVECTOR_H
188 using Epetra_SerialDenseMatrix::operator();
251 double Norm1()
const;
258 double Norm2()
const;
284 virtual void Print(std::ostream& os)
const;
291#ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
292 if (Index >=
M_ || Index < 0)
299#ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
300 if (Index >=
M_ || Index < 0)
307#ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
308 if (Index >=
M_ || Index < 0)
315#ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
316 if (Index >=
M_ || Index < 0)
virtual int ReportError(const std::string Message, int ErrorCode) const
Error reporting method.
std::string toString(const int &x) const
Epetra_SerialDenseMatrix: A class for constructing and using real double precision general dense matr...
virtual void Print(std::ostream &os) const
Print service methods; defines behavior of ostream << operator.
double * operator[](int ColIndex)
Column access function.
virtual double NormInf() const
Computes the Infinity-Norm of the this matrix.
int Random()
Set matrix values to random numbers.
Epetra_SerialDenseMatrix & operator=(const Epetra_SerialDenseMatrix &Source)
Value copy from one matrix to another.
int Shape(int NumRows, int NumCols)
Set dimensions of a Epetra_SerialDenseMatrix object; init values to zero.
double & operator()(int RowIndex, int ColIndex)
Element access function.
int Reshape(int NumRows, int NumCols)
Reshape a Epetra_SerialDenseMatrix object.
Epetra_SerialDenseVector: A class for constructing and using dense vectors.
int Size(int Length_in)
Set length of a Epetra_SerialDenseVector object; init values to zero.
Epetra_DataAccess CV() const
Returns the data access mode of the this vector.
int Resize(int Length_in)
Resize a Epetra_SerialDenseVector object.
double * Values() const
Returns pointer to the values in vector.
double & operator()(int Index)
Element access function.
double & operator[](int Index)
Element access function.
int Length() const
Returns length of vector.