44 #ifndef EPETRA_VECTOR_H
45 #define EPETRA_VECTOR_H
47 #if defined(Epetra_SHOW_DEPRECATED_WARNINGS)
49 #warning "The Epetra package is deprecated"
232 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
233 int ReplaceGlobalValues(
int NumEntries,
const double * Values,
const int * Indices);
235 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
236 int ReplaceGlobalValues(
int NumEntries,
const double * Values,
const long long * Indices);
253 int ReplaceMyValues(
int NumEntries,
const double * Values,
const int * Indices);
269 int SumIntoGlobalValues(
int NumEntries,
const double * Values,
const int * Indices);
285 int SumIntoMyValues(
int NumEntries,
const double * Values,
const int * Indices);
308 int ReplaceGlobalValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
329 int ReplaceMyValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
350 int SumIntoGlobalValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
371 int SumIntoMyValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
413 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
415 !( 0 <= index && index < this->
MyLength() ), -99,
416 "Epetra_Vector::operator[](int): "
417 "The index = " << index <<
" does not fall in the range"
421 return Values_[index];
429 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
431 !( 0 <= index && index < this->
MyLength() ), -99,
432 "Epetra_Vector::operator[](int) const: "
433 "The index = " << index <<
" does not fall in the range"
437 return Values_[index];
472 int ChangeValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices,
bool IndicesGlobal,
bool SumInto);
473 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
474 int ChangeValues(
int NumEntries,
int BlockOffset,
const double * Values,
const long long * Indices,
bool IndicesGlobal,
bool SumInto);
477 template<
typename int_type>
478 int TChangeValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int_type * Indices,
bool IndicesGlobal,
bool SumInto);
Epetra_MultiVector: A class for constructing and using dense multi-vectors, vectors and matrices in p...
Epetra_Map: A class for partitioning vectors and matrices.
int ResetView(double *Values_in)
Reset the view of an existing vector to point to new user data.
int MyLength() const
Returns the local vector length on the calling processor of vectors in the multi-vector.
#define EPETRA_CHK_ERR(a)
Epetra_Vector: A class for constructing and using dense vectors on a parallel computer.
int ExtractCopy(double *A, int MyLDA) const
Put multi-vector values into user-provided two-dimensional array.
int ResetView(double **ArrayOfPointers)
Reset the view of an existing multivector to point to new user data.
int ExtractView(double **A, int *MyLDA) const
Set user-provided addresses of A and MyLDA.
Epetra_BlockMap: A class for partitioning block element vectors and matrices.
#define EPETRA_TEST_FOR_EXCEPTION(throw_exception_test, errCode, msg)
Macro for testing for and throwing and int exception for objects derived from Epetra_Object.
double *& operator[](int i)
Vector access function.