48 SetLabel(
"Epetra::SerialDenseVector");
55 SetLabel(
"Epetra::SerialDenseVector");
62 SetLabel(
"Epetra::SerialDenseVector");
89 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
134 if (j>-1) result = std::abs( (*
this)[j]);
143 os <<
"Data access mode: Copy" << std::endl;
145 os <<
"Data access mode: View" << std::endl;
147 os <<
"A_Copied: yes" << std::endl;
149 os <<
"A_Copied: no" << std::endl;
150 os <<
"Length(M): " <<
M_ << std::endl;
152 os <<
"(vector is empty, no values to display)";
154 for(
int i = 0; i <
M_; i++)
155 os << (*
this)(i) <<
" ";
int Random()
Set matrix values to random numbers.
double Norm2() const
Compute 2-norm of each vector in multi-vector.
float NRM2(const int N, const float *X, const int INCX=1) const
Epetra_BLAS norm function (SNRM2).
virtual void SetLabel(const char *const Label)
Epetra_Object Label definition using char *.
double NormInf() const
Compute Inf-norm of each vector in multi-vector.
Epetra_SerialDenseMatrix: A class for constructing and using real double precision general dense matr...
Epetra_SerialDenseVector & operator=(const Epetra_SerialDenseVector &Source)
Value copy from one vector to another.
virtual void Print(std::ostream &os) const
Print service methods; defines behavior of ostream << operator.
Epetra_SerialDenseVector: A class for constructing and using dense vectors.
std::string toString(const int &x) const
float ASUM(const int N, const float *X, const int INCX=1) const
Epetra_BLAS one norm function (SASUM).
int Length() const
Returns length of vector.
Epetra_SerialDenseMatrix & operator=(const Epetra_SerialDenseMatrix &Source)
Value copy from one matrix to another.
int Random()
Set vector values to random numbers.
double Norm1() const
Compute 1-norm of each vector in multi-vector.
Epetra_SerialDenseVector()
Default constructor; defines a zero size object.
int IAMAX(const int N, const float *X, const int INCX=1) const
Epetra_BLAS arg maximum of absolute value function (ISAMAX)
virtual int ReportError(const std::string Message, int ErrorCode) const
Error reporting method.
float DOT(const int N, const float *X, const float *Y, const int INCX=1, const int INCY=1) const
Epetra_BLAS dot product function (SDOT).
double Dot(const Epetra_SerialDenseVector &x) const
Compute 1-norm of each vector in multi-vector.
double * Values() const
Returns pointer to the values in vector.
void UpdateFlops(int Flops_in) const
Increment Flop count for this object.
virtual ~Epetra_SerialDenseVector()
Epetra_SerialDenseVector destructor.