Skip to content

Implementing writable to matrix#2033

Open
JEFFjeffJJ wants to merge 2 commits into
ginkgo-project:developfrom
JEFFjeffJJ:writable_to_matrix_data
Open

Implementing writable to matrix#2033
JEFFjeffJJ wants to merge 2 commits into
ginkgo-project:developfrom
JEFFjeffJJ:writable_to_matrix_data

Conversation

@JEFFjeffJJ

Copy link
Copy Markdown

No description provided.

@yhmtsai yhmtsai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current implementation is good if we have row_map.
I need to think/discuss the row_map with others first.
The constructor assumes the row and col partition are the same but it is not always true.
The test will also need more cases such as row and col partition are different

Comment thread core/test/mpi/distributed/matrix.cpp Outdated
Comment thread core/test/mpi/distributed/matrix.cpp
Comment thread core/test/mpi/distributed/matrix.cpp Outdated
Comment thread core/test/mpi/distributed/matrix.cpp Outdated
Comment thread core/test/mpi/distributed/matrix.cpp Outdated
Comment thread core/distributed/matrix.cpp Outdated
exec, comm, local_linop->get_size()[0]));
row_map_ = index_map<local_index_type, global_index_type>(
exec, partition, comm.rank(), array<global_index_type>{exec});
imap_ = row_map_;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

colmap should use another partition from get_size()[1] unless they are equal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants