Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Hiding implementation details for distance primitives (dense + sparse) #344

Merged
merged 23 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/

#pragma once
#include <raft/distance/pairwise_distance_base.cuh>
#include <raft/distance/detail/pairwise_distance_base.cuh>

namespace raft {
namespace distance {
namespace detail {

/**
* @brief the canberra distance matrix calculation implementer
Expand Down Expand Up @@ -157,5 +158,7 @@ void canberraImpl(int m, int n, int k, const InType *pA, const InType *pB,
n, m, k, lda, ldb, ldd, pB, pA, pDcast, fin_op, stream);
}
}

} // namespace detail
} // namespace distance
} // namespace raft
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

#pragma once
#include <raft/distance/pairwise_distance_base.cuh>
#include <raft/distance/detail/pairwise_distance_base.cuh>

namespace raft {
namespace distance {

namespace detail {
/**
* @brief the Chebyshev distance matrix calculation implementer
* It computes the following equation: cij = max(cij, op(ai-bj))
Expand Down Expand Up @@ -154,5 +154,6 @@ void chebyshevImpl(int m, int n, int k, const InType *pA, const InType *pB,
n, m, k, lda, ldb, ldd, pB, pA, pDcast, fin_op, stream);
}
}
} // namespace detail
} // namespace distance
} // namespace raft
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@

#pragma once
#include <raft/cuda_utils.cuh>
#include <raft/distance/pairwise_distance_base.cuh>
#include <raft/distance/detail/pairwise_distance_base.cuh>
#include <raft/linalg/reduce.cuh>

namespace raft {
namespace distance {
namespace detail {

/**
* @brief the Correlation distance matrix:
Expand Down Expand Up @@ -243,5 +244,7 @@ void correlationImpl(int m, int n, int k, const InType *pA, const InType *pB,
fin_op, stream);
}
}

} // namespace detail
} // namespace distance
} // namespace raft
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@

#pragma once

#include <raft/distance/pairwise_distance_base.cuh>
#include <raft/distance/detail/pairwise_distance_base.cuh>
#include <raft/linalg/norm.cuh>

namespace raft {
namespace distance {
namespace detail {

/**
* @brief the cosine distance matrix calculation implementer
Expand Down Expand Up @@ -201,5 +202,6 @@ void cosineAlgo1(Index_ m, Index_ n, Index_ k, const InType *pA,
}
}

}; // end namespace detail
}; // end namespace distance
}; // end namespace raft
Loading