src/seq_mv/vector.c
hypre_Vector *
hypre_SeqVectorCloneDeep_v2(hypre_Vector *x,
                            HYPRE_MemoryLocation memory_location) {
  HYPRE_Int size = hypre_VectorSize(x);
  HYPRE_Int num_vectors = hypre_VectorNumVectors(x);

  hypre_Vector *y = hypre_SeqMultiVectorCreate(size, num_vectors);

  hypre_VectorMultiVecStorageMethod(y) = hypre_VectorMultiVecStorageMethod(x);
  hypre_VectorVectorStride(y) = hypre_VectorVectorStride(x);
  hypre_VectorIndexStride(y) = hypre_VectorIndexStride(x);

  hypre_SeqVectorInitialize_v2(y, memory_location);
  hypre_SeqVectorCopy(x, y);

  return y;
}
/*--------------------------------------------------------------------------
 * hypre_SeqVectorCloneDeep
 * Returns a complete copy of x - a deep copy, with its own copy of the data.
 *--------------------------------------------------------------------------*/
hypre_SeqVectorCloneDeep
Returns a complete copy of x - a deep copy, with its own copy of the data.
hypre_SeqVectorCloneDeep Returns a complete copy of x - a deep copy with its own copy of the data .
hypre_Vector *
hypre_SeqVectorCloneDeep_v2(hypre_Vector *x,
                            HYPRE_MemoryLocation memory_location) {
  HYPRE_Int size = hypre_VectorSize(x);
  HYPRE_Int num_vectors = hypre_VectorNumVectors(x);
  hypre_Vector *y = hypre_SeqMultiVectorCreate(size, num_vectors);
  hypre_VectorMultiVecStorageMethod(y) = hypre_VectorMultiVecStorageMethod(x);
  hypre_VectorVectorStride(y) = hypre_VectorVectorStride(x);
  hypre_VectorIndexStride(y) = hypre_VectorIndexStride(x);
  hypre_SeqVectorInitialize_v2(y, memory_location);
  hypre_SeqVectorCopy(x, y);
  return y;
}
hypre_Vector * hypre_SeqVectorCloneDeep_v2 ( hypre_Vector * x , HYPRE_MemoryLocation memory_location ) { HYPRE_Int size = hypre_VectorSize ( x ) ; HYPRE_Int num_vectors = hypre_VectorNumVectors ( x ) ; hypre_Vector * y = hypre_SeqMultiVectorCreate ( size , num_vectors ) ; hypre_VectorMultiVecStorageMethod ( y ) = hypre_VectorMultiVecStorageMethod ( x ) ; hypre_VectorVectorStride ( y ) = hypre_VectorVectorStride ( x ) ; hypre_VectorIndexStride ( y ) = hypre_VectorIndexStride ( x ) ; hypre_SeqVectorInitialize_v2 ( y , memory_location ) ; hypre_SeqVectorCopy ( x , y ) ; return y ; }
hypre_SeqVectorCloneDeep
 Returns a complete copy of x - a deep copy, with its own copy of the data.
hypre_SeqVectorCloneDeep Returns a complete copy of x - a deep copy with its own copy of the data .