Skip to content

Conversation

@mkatliar
Copy link
Owner

@mkatliar mkatliar commented Aug 12, 2024

  • Make ptr() implementation independent of specific matrix and vector types
  • Blaze-specific code moved to blast/blaze

@mkatliar mkatliar force-pushed the ptr_cleanup branch 3 times, most recently from 4c9900c to 5dd5638 Compare August 12, 2024 11:38
@mkatliar mkatliar marked this pull request as ready for review August 12, 2024 11:41
@mkatliar mkatliar requested a review from roversch August 12, 2024 11:41
@mkatliar mkatliar changed the title Ptr cleanup ptr() cleanup Aug 12, 2024
@mkatliar mkatliar changed the title ptr() cleanup ptr() clean-up Aug 12, 2024
Copy link
Collaborator

@roversch roversch left a comment

Choose a reason for hiding this comment

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

I can see that you changed the interface a bit (ptr(*A) vs ptr(A)), which I don't understand the reasons for. Could you elaborate?

@mkatliar
Copy link
Owner Author

mkatliar commented Aug 12, 2024

I can see that you changed the interface a bit (ptr(*A) vs ptr(A)), which I don't understand the reasons for. Could you elaborate?

This is because ptr() expects the most derived type like blaze::StaticMatrix<...> and not the CRTP base blaze::DenseMatrix<...>. But, I just realized that I could implement

template <typename MT, bool SO>
inline ptr(blaze::DenseMatrix<MT, SO>& m)
{
    return ptr(*m);
}

and then the *s would not be needed.

- Blaze-specific code moved to blast/blaze
@mkatliar mkatliar merged commit 1b0925d into master Aug 12, 2024
@mkatliar mkatliar deleted the ptr_cleanup branch August 12, 2024 17:24
mkatliar added a commit that referenced this pull request Sep 13, 2024
- Matrix concept and type traits
- Clean ptr mess
- Blaze-specific code moved to blast/blaze

---------

Co-authored-by: Mikhail Katliar <mikhail.katliar@protonmail.com>
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.

3 participants