15 #ifndef ALLIUM_LA_VECTOR_SPEC_HPP
16 #define ALLIUM_LA_VECTOR_SPEC_HPP
18 #include <allium/util/types.hpp>
19 #include <allium/ipc/comm.hpp>
30 VectorSpec(
Comm comm,
size_t local_size, global_size_t global_size);
36 return (m_comm != other.m_comm)
37 || (m_global_size != other.m_global_size)
38 || (m_local_size != other.m_local_size);
41 Comm comm() {
return m_comm; }
42 global_size_t global_size() {
return m_global_size; }
43 size_t local_size() {
return m_local_size; }
45 global_size_t local_start() {
return m_local_start; }
46 global_size_t local_end() {
return m_local_end; }
49 global_size_t m_global_size;
51 global_size_t m_local_start;
52 global_size_t m_local_end;
Wraps an MPI communicator to make MPI easier to use.
Definition: comm.hpp:26
The specification of a vector, needed to create distributed vectors.
Definition: vector_spec.hpp:26