44 #ifndef EPETRA_INTSERIALDENSEMATRIX_H
45 #define EPETRA_INTSERIALDENSEMATRIX_H
47 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
49 #warning "The Epetra package is deprecated"
196 int Shape(
int NumRows,
int NumCols);
212 int Reshape(
int NumRows,
int NumCols);
222 virtual int OneNorm();
225 virtual int InfNorm();
246 {
return !(*
this == rhs); }
258 int& operator () (
int RowIndex,
int ColIndex);
270 const int& operator () (
int RowIndex,
int ColIndex)
const;
283 int* operator [] (
int ColIndex);
296 const int* operator [] (
int ColIndex)
const;
308 int M()
const {
return(M_);};
311 int N()
const {
return(N_);};
314 const int*
A()
const {
return(A_);};
317 int*
A() {
return(A_);};
320 int LDA()
const {
return(LDA_);};
328 virtual void Print(std::ostream& os)
const;
358 void CopyMat(
int* Source,
int Source_LDA,
int NumRows,
int NumCols,
int* Target,
int Target_LDA);
373 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
374 if(RowIndex >=
M_ || RowIndex < 0)
377 if(ColIndex >=
N_ || ColIndex < 0)
381 return(
A_[ColIndex*
LDA_ + RowIndex]);
385 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
386 if(RowIndex >=
M_ || RowIndex < 0)
389 if(ColIndex >=
N_ || ColIndex < 0)
393 return(
A_[ColIndex *
LDA_ + RowIndex]);
397 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
398 if(ColIndex >=
N_ || ColIndex < 0)
402 return(
A_+ ColIndex *
LDA_);
406 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
407 if(ColIndex >=
N_ || ColIndex < 0)
411 return(
A_ + ColIndex *
LDA_);
int & operator()(int RowIndex, int ColIndex)
Element access function.
virtual void Print(std::ostream &os) const
Print object to an output stream Print method.
int N() const
Returns column dimension of system.
Epetra_DataAccess CV() const
Returns the data access mode of the this matrix.
int LDA() const
Returns the leading dimension of the this matrix.
int * operator[](int ColIndex)
Column access function.
const int * A() const
Returns const pointer to the this matrix.
bool operator!=(const Epetra_IntSerialDenseMatrix &rhs) const
Inequality operator.
int * A()
Returns pointer to the this matrix.
int M() const
Returns row dimension of system.
std::string toString(const int &x) const
Epetra_Object & operator=(const Epetra_Object &src)
Epetra_Object: The base Epetra class.
Epetra_IntSerialDenseMatrix: A class for constructing and using general dense integer matrices...
virtual int ReportError(const std::string Message, int ErrorCode) const
Error reporting method.
bool operator==(BigUInt< n > const &a, BigUInt< n > const &b)