44 #ifndef EPETRA_INTSERIALDENSEMATRIX_H
45 #define EPETRA_INTSERIALDENSEMATRIX_H
188 int Shape(
int NumRows,
int NumCols);
204 int Reshape(
int NumRows,
int NumCols);
214 virtual int OneNorm();
217 virtual int InfNorm();
238 {
return !(*
this == rhs); }
250 int& operator () (
int RowIndex,
int ColIndex);
262 const int& operator () (
int RowIndex,
int ColIndex)
const;
275 int* operator [] (
int ColIndex);
288 const int* operator [] (
int ColIndex)
const;
300 int M()
const {
return(M_);};
303 int N()
const {
return(N_);};
306 const int*
A()
const {
return(A_);};
309 int*
A() {
return(A_);};
312 int LDA()
const {
return(LDA_);};
320 virtual void Print(std::ostream& os)
const;
350 void CopyMat(
int* Source,
int Source_LDA,
int NumRows,
int NumCols,
int* Target,
int Target_LDA);
365 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
366 if(RowIndex >=
M_ || RowIndex < 0)
369 if(ColIndex >=
N_ || ColIndex < 0)
373 return(
A_[ColIndex*
LDA_ + RowIndex]);
377 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
378 if(RowIndex >=
M_ || RowIndex < 0)
381 if(ColIndex >=
N_ || ColIndex < 0)
385 return(
A_[ColIndex *
LDA_ + RowIndex]);
389 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
390 if(ColIndex >=
N_ || ColIndex < 0)
394 return(
A_+ ColIndex *
LDA_);
398 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
399 if(ColIndex >=
N_ || ColIndex < 0)
403 return(
A_ + ColIndex *
LDA_);
409 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
411 #warning "The Epetra package is deprecated"
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)