44 #ifndef EPETRA_VECTOR_H
45 #define EPETRA_VECTOR_H
224 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
225 int ReplaceGlobalValues(
int NumEntries,
const double * Values,
const int * Indices);
227 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
228 int ReplaceGlobalValues(
int NumEntries,
const double * Values,
const long long * Indices);
245 int ReplaceMyValues(
int NumEntries,
const double * Values,
const int * Indices);
261 int SumIntoGlobalValues(
int NumEntries,
const double * Values,
const int * Indices);
277 int SumIntoMyValues(
int NumEntries,
const double * Values,
const int * Indices);
300 int ReplaceGlobalValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
321 int ReplaceMyValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
342 int SumIntoGlobalValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
363 int SumIntoMyValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices);
405 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
407 !( 0 <= index && index < this->
MyLength() ), -99,
408 "Epetra_Vector::operator[](int): "
409 "The index = " << index <<
" does not fall in the range"
413 return Values_[index];
421 #ifdef HAVE_EPETRA_ARRAY_BOUNDS_CHECK
423 !( 0 <= index && index < this->
MyLength() ), -99,
424 "Epetra_Vector::operator[](int) const: "
425 "The index = " << index <<
" does not fall in the range"
429 return Values_[index];
464 int ChangeValues(
int NumEntries,
int BlockOffset,
const double * Values,
const int * Indices,
bool IndicesGlobal,
bool SumInto);
465 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
466 int ChangeValues(
int NumEntries,
int BlockOffset,
const double * Values,
const long long * Indices,
bool IndicesGlobal,
bool SumInto);
469 template<
typename int_type>
470 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.