Debian Codegraph @

src/atlas/linalg/sparse/SparseMatrixMultiply_EckitLinalg.h

raw
1 /*
2 * (C) Copyright 2024- ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11
12 #pragma once
13
14 #include "atlas/linalg/sparse/SparseMatrixMultiply.h"
15
16 namespace atlas {
17 namespace linalg {
18 namespace sparse {
19
20 template <>
21 struct SparseMatrixMultiply<backend::eckit_linalg, Indexing::layout_right, 1, double, const double, double> {
22 static void multiply(const SparseMatrixView<double>&, const View<const double, 1>& src, View<double, 1>& tgt,
23 const Configuration&);
24 static void multiply_add(const SparseMatrixView<double>&, const View<const double, 1>& src, View<double, 1>& tgt,
25 const Configuration&);
26 };
27
28 template <>
29 struct SparseMatrixMultiply<backend::eckit_linalg, Indexing::layout_right, 2, double, const double, double> {
30 static void multiply(const SparseMatrixView<double>&, const View<const double, 2>& src, View<double, 2>& tgt,
31 const Configuration&);
32 static void multiply_add(const SparseMatrixView<double>&, const View<const double, 2>& src, View<double, 2>& tgt,
33 const Configuration&);
34 };
35
36
37 template <>
38 struct SparseMatrixMultiply<backend::eckit_linalg, Indexing::layout_left, 1, double, const double, double> {
39 static void multiply(const SparseMatrixView<double>&, const View<const double, 1>& src, View<double, 1>& tgt,
40 const Configuration&);
41 static void multiply_add(const SparseMatrixView<double>&, const View<const double, 1>& src, View<double, 1>& tgt,
42 const Configuration&);
43 };
44
45 } // namespace sparse
46 } // namespace linalg
47 } // namespace atlas