Skip to content

Commit 82f4c81

Browse files
committed
remove temporary precision conversion from interface
1 parent 02f5809 commit 82f4c81

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

core/matrix/multivector.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -271,30 +271,5 @@ GKO_INSTANTIATE_FOR_EACH_VALUE_TYPE(
271271
GKO_DECLARE_MULTIVECTOR_CREATE_LOCAL_VIEW_CONST);
272272

273273

274-
template <typename ValueType>
275-
auto MultiVector::temporary_precision()
276-
-> std::unique_ptr<MultiVector, std::function<void(MultiVector*)>>
277-
{
278-
return temporary_precision_impl(ValueType());
279-
}
280-
281-
#define GKO_DECLARE_MULTIVECTOR_AS_PRECISION(_type) \
282-
std::unique_ptr<MultiVector, std::function<void(MultiVector*)>> \
283-
MultiVector::temporary_precision<_type>()
284-
GKO_INSTANTIATE_FOR_EACH_VALUE_TYPE(GKO_DECLARE_MULTIVECTOR_AS_PRECISION);
285-
286-
287-
template <typename ValueType>
288-
std::unique_ptr<const MultiVector> MultiVector::temporary_precision() const
289-
{
290-
return temporary_precision_impl(ValueType());
291-
}
292-
293-
#define GKO_DECLARE_MULTIVECTOR_AS_PRECISION_CONST(_type) \
294-
std::unique_ptr<const MultiVector> \
295-
MultiVector::temporary_precision<_type>() const
296-
GKO_INSTANTIATE_FOR_EACH_VALUE_TYPE(GKO_DECLARE_MULTIVECTOR_AS_PRECISION_CONST);
297-
298-
299274
} // namespace matrix
300275
} // namespace gko

include/ginkgo/core/matrix/multivector.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ class MultiVector : public EnableAbstractPolymorphicObject<MultiVector, LinOp> {
156156
[[nodiscard]] std::unique_ptr<const Dense<ValueType>> create_local_view()
157157
const;
158158

159-
template <typename ValueType>
160-
[[nodiscard]] auto temporary_precision() const
161-
-> std::unique_ptr<const MultiVector>;
162-
163-
template <typename ValueType>
164-
[[nodiscard]] auto temporary_precision()
165-
-> std::unique_ptr<MultiVector, std::function<void(MultiVector*)>>;
166-
167159
[[nodiscard]] size_type get_stride() const noexcept;
168160

169161
protected:
@@ -272,14 +264,6 @@ class MultiVector : public EnableAbstractPolymorphicObject<MultiVector, LinOp> {
272264
syn::apply_to_list<std::add_const_t, dense_types>>> = 0;
273265

274266
[[nodiscard]] virtual auto get_stride_impl() const -> size_type = 0;
275-
276-
[[nodiscard]] virtual auto temporary_precision_impl(
277-
syn::variant_from_tuple<supported_value_types> type)
278-
-> std::unique_ptr<MultiVector, std::function<void(MultiVector*)>> = 0;
279-
280-
[[nodiscard]] virtual auto temporary_precision_impl(
281-
syn::variant_from_tuple<supported_value_types> type) const
282-
-> std::unique_ptr<const MultiVector> = 0;
283267
};
284268

285269

0 commit comments

Comments
 (0)