File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
include/tensorwrapper/buffer Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 17
17
#pragma once
18
18
#include < tensorwrapper/buffer/replicated.hpp>
19
19
#include < tensorwrapper/detail_/integer_utilities.hpp>
20
+ #include < tensorwrapper/types/floating_point.hpp>
20
21
21
22
namespace tensorwrapper ::buffer {
22
23
@@ -137,4 +138,10 @@ class Contiguous : public Replicated {
137
138
virtual const_reference get_elem_ (index_vector index) const = 0;
138
139
};
139
140
141
+ #define DECLARE_CONTIG_BUFFER (TYPE ) extern template class Contiguous <TYPE>
142
+
143
+ TW_APPLY_FLOATING_POINT_TYPES (DECLARE_CONTIG_BUFFER);
144
+
145
+ #undef DECLARE_CONTIG_BUFFER
146
+
140
147
} // namespace tensorwrapper::buffer
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2025 NWChemEx-Project
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ #include < tensorwrapper/buffer/contiguous.hpp>
17
+
18
+ namespace tensorwrapper ::buffer {
19
+
20
+ #define DEFINE_CONTIG_BUFFER (TYPE ) template class Contiguous <TYPE>
21
+
22
+ TW_APPLY_FLOATING_POINT_TYPES (DEFINE_CONTIG_BUFFER);
23
+
24
+ #undef DEFINE_CONTIG_BUFFER
25
+
26
+ } // namespace tensorwrapper::buffer
You can’t perform that action at this time.
0 commit comments