44 #ifndef EPETRA_LONGLONGSERIALDENSEMATRIX_H
45 #define EPETRA_LONGLONGSERIALDENSEMATRIX_H
50 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
191 int Shape(
int NumRows,
int NumCols);
207 int Reshape(
int NumRows,
int NumCols);
217 virtual long long OneNorm();
220 virtual long long InfNorm();
241 {
return !(*
this == rhs); }
253 long long& operator () (
int RowIndex,
int ColIndex);
265 const long long& operator () (
int RowIndex,
int ColIndex)
const;
278 long long* operator [] (
int ColIndex);
291 const long long* operator [] (
int ColIndex)
const;
303 int M()
const {
return(M_);};
306 int N()
const {
return(N_);};
309 const long long*
A()
const {
return(A_);};
312 long long*
A() {
return(A_);};
315 int LDA()
const {
return(LDA_);};
323 virtual void Print(std::ostream& os)
const;
353 void CopyMat(
long long* Source,
int Source_LDA,
int NumRows,
int NumCols,
long long* Target,
int Target_LDA);
368 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
369 if(RowIndex >=
M_ || RowIndex < 0)
372 if(ColIndex >=
N_ || ColIndex < 0)
376 return(
A_[ColIndex*
LDA_ + RowIndex]);
380 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
381 if(RowIndex >=
M_ || RowIndex < 0)
384 if(ColIndex >=
N_ || ColIndex < 0)
388 return(
A_[ColIndex *
LDA_ + RowIndex]);
392 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
393 if(ColIndex >=
N_ || ColIndex < 0)
397 return(
A_+ ColIndex *
LDA_);
401 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
402 if(ColIndex >=
N_ || ColIndex < 0)
406 return(
A_ + ColIndex *
LDA_);
Epetra_LongLongSerialDenseMatrix: A class for constructing and using general dense integer matrices.
int N() const
Returns column dimension of system.
int M() const
Returns row dimension of system.
int LDA() const
Returns the leading dimension of the this matrix.
bool operator!=(const Epetra_LongLongSerialDenseMatrix &rhs) const
Inequality operator.
long long * A()
Returns pointer to the this matrix.
Epetra_DataAccess CV() const
Returns the data access mode of the this matrix.
const long long * A() const
Returns const pointer to the this matrix.
long long * operator[](int ColIndex)
Column access function.
long long & operator()(int RowIndex, int ColIndex)
Element access function.
Epetra_Object: The base Epetra class.
virtual void Print(std::ostream &os) const
Print object to an output stream Print method.
virtual int ReportError(const std::string Message, int ErrorCode) const
Error reporting method.
std::string toString(const int &x) const
Epetra_Object & operator=(const Epetra_Object &src)