[Trilinos-Users] Tpetra::Vector: elementwise operations
nico.schloemer at ua.ac.be
Wed Feb 17 06:32:07 MST 2010
On 01/25/2010 05:21 PM, Baker, Christopher G. wrote:
> Furthermore, and I keep meaning to add a note about this, the method replaceLocalValue() is not an efficient method anymore. On GPU platforms, the performance will be horrible. On CPU platforms, there will be some overhead to pay. The reason is because each call to replaceLocalValue() will call get1dViewNonConst(); therefore, it is better to call get1dViewNonConst() up front and use a view of the out vector, as you are currently doing with the in vector.
Is that true for Epetra_Vectors as well? Is there any substantial
difference between the next two lines (with x being an Epetra_Vector)?
x.ReplaceMyValue( k , 0, val );
x[k] = val;
More information about the Trilinos-Users