Skip to content

1888/derive dist vector - #2069

Open
MarcelKoch wants to merge 2 commits into
1888/derive-multivectorfrom
1888/derive-dist-vector
Open

1888/derive dist vector#2069
MarcelKoch wants to merge 2 commits into
1888/derive-multivectorfrom
1888/derive-dist-vector

Conversation

@MarcelKoch

Copy link
Copy Markdown
Member

This PR derives the distributed Vector from the AbstractMulitVector interface.

@MarcelKoch MarcelKoch added this to the Ginkgo 2.0 milestone Aug 17, 2026
@MarcelKoch MarcelKoch self-assigned this Aug 17, 2026
@MarcelKoch MarcelKoch mentioned this pull request Aug 17, 2026
9 tasks
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-multivector branch from 2efa831 to f284722 Compare August 18, 2026 14:37
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-dist-vector branch 2 times, most recently from ed710a9 to 1dc8c10 Compare August 18, 2026 14:57
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-multivector branch from f284722 to 152f952 Compare August 18, 2026 14:57
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-multivector branch from 152f952 to 449b684 Compare August 19, 2026 12:38
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-dist-vector branch from 1dc8c10 to d0862a3 Compare August 19, 2026 12:38
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-multivector branch from 449b684 to bfbe9df Compare August 19, 2026 12:56
@MarcelKoch
MarcelKoch force-pushed the 1888/derive-dist-vector branch from d0862a3 to d22dff9 Compare August 19, 2026 12:56

@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.

only as_precision part

Comment on lines +806 to +807
const typename Vector<ValueType>::value_type*
Vector<ValueType>::get_const_local_values() const

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.

Suggested change
const typename Vector<ValueType>::value_type*
Vector<ValueType>::get_const_local_values() const
auto Vector<ValueType>::get_const_local_values() const -> const value_type*

This can avoid the long access to member type

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I had this before, but I don't think we should do it, since it's inconsistent with the other function signatures.

Comment on lines +703 to +705
} else if constexpr (is_complex<ValueType>() &&
std::is_same_v<to_complex<OtherValueType>,
ValueType>) {

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.

same comment as multivector

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants