44 #ifndef EPETRA_LONGLONGSERIALDENSEMATRIX_H
45 #define EPETRA_LONGLONGSERIALDENSEMATRIX_H
47 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
49 #warning "The Epetra package is deprecated"
58 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
199 int Shape(
int NumRows,
int NumCols);
215 int Reshape(
int NumRows,
int NumCols);
225 virtual long long OneNorm();
228 virtual long long InfNorm();
249 {
return !(*
this == rhs); }
261 long long& operator () (
int RowIndex,
int ColIndex);
273 const long long& operator () (
int RowIndex,
int ColIndex)
const;
286 long long* operator [] (
int ColIndex);
299 const long long* operator [] (
int ColIndex)
const;
311 int M()
const {
return(M_);};
314 int N()
const {
return(N_);};
317 const long long*
A()
const {
return(A_);};
320 long long*
A() {
return(A_);};
323 int LDA()
const {
return(LDA_);};
331 virtual void Print(std::ostream& os)
const;
361 void CopyMat(
long long* Source,
int Source_LDA,
int NumRows,
int NumCols,
long long* Target,
int Target_LDA);
376 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
377 if(RowIndex >=
M_ || RowIndex < 0)
380 if(ColIndex >=
N_ || ColIndex < 0)
384 return(
A_[ColIndex*
LDA_ + RowIndex]);
388 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
389 if(RowIndex >=
M_ || RowIndex < 0)
392 if(ColIndex >=
N_ || ColIndex < 0)
396 return(
A_[ColIndex *
LDA_ + RowIndex]);
400 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
401 if(ColIndex >=
N_ || ColIndex < 0)
405 return(
A_+ ColIndex *
LDA_);
409 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
410 if(ColIndex >=
N_ || ColIndex < 0)
414 return(
A_ + ColIndex *
LDA_);
418 #endif // EPETRA_NO_64BIT_GLOBAL_INDICES
long long * A()
Returns pointer to the this matrix.
virtual void Print(std::ostream &os) const
Print object to an output stream Print method.
int N() const
Returns column dimension of system.
const long long * A() const
Returns const pointer to the this matrix.
bool operator!=(const Epetra_LongLongSerialDenseMatrix &rhs) const
Inequality operator.
std::string toString(const int &x) const
Epetra_Object & operator=(const Epetra_Object &src)
Epetra_Object: The base Epetra class.
Epetra_DataAccess CV() const
Returns the data access mode of the this matrix.
long long * operator[](int ColIndex)
Column access function.
long long & operator()(int RowIndex, int ColIndex)
Element access function.
virtual int ReportError(const std::string Message, int ErrorCode) const
Error reporting method.
int M() const
Returns row dimension of system.
bool operator==(BigUInt< n > const &a, BigUInt< n > const &b)
int LDA() const
Returns the leading dimension of the this matrix.
Epetra_LongLongSerialDenseMatrix: A class for constructing and using general dense integer matrices...