Constructors

danceq::internal::Vector::Vector(void)

Creates vector of size zero.

danceq::internal::Vector::Vector(uint64_t dim_)

Creates vector of size dim_ with zeros.

Parameters:

dim_ – Dimension

danceq::internal::Vector::Vector(const std::vector<uint64_t> ownership_per_rank_)

Constructor with given memory layout.

Initialized a vector with zeros in the given memory layout. Only available if MPI is activated.

Parameters:

ownership_per_rank_ – Sets ownership_per_rank

danceq::internal::Vector::Vector(const Vec &vec)

Creates vector from Vec of Petsc.

This constructor is only available if Petsc is included. The Vector uses the same memory layout as the input vector.

Parameters:

vec – Input Vec from Petsc

danceq::internal::Vector::Vector(const Mat &mat)

Creates vector from Mat object of Petsc.

This constructor is only available if Petsc is included. The Vector uses the same memory layout as the input matrix.

Parameters:

mat – Input Mat from Petsc