Peano
Loading...
Searching...
No Matches
MatrixMatrixOperations.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5
6#include "tarch/la/Scalar.h"
7
8
9namespace tarch {
10 namespace la {
16 template <int Rows, int Cols, int X, typename Scalar>
18 const Matrix<Rows, X, Scalar>& lhs,
20 );
21
22 template <int Rows, int Cols, int X, typename Scalar>
24 const Matrix<Rows, X, Scalar>& lhs,
26 );
27
28 template <int Rows, int Cols, int X, typename Scalar>
30 const Matrix<Rows, X, Scalar>& lhs,
32 );
33
34#ifdef UseOpenblas
39 template <int Rows, int Cols, int X>
41 const Matrix<Rows, X, double>& lhs,
43 );
44#endif
45
49 template <int Rows, int Cols, typename Scalar>
50 bool operator==(
53 );
54
58 template <int Rows, int Cols, typename Scalar>
59 bool equals(
62 const Scalar& tolerance = NUMERICAL_ZERO_DIFFERENCE
63 );
64
65 template <int Rows, int Cols, typename Scalar>
69 );
70
71 template <int Rows, int Cols, typename Scalar>
75 );
76
81 template <int Rows, int Cols, typename Scalar>
82 std::pair<int, int> equalsReturnIndex(
85 const Scalar& tolerance = NUMERICAL_ZERO_DIFFERENCE
86 );
87 } // namespace la
88} // namespace tarch
89
90
Static (i.e.
Definition Matrix.h:42
Matrix< Rows, Cols, Scalar > multiply(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)
Performs a matrix x matrix multiplication.
bool operator==(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs)
Bitwise comparison of the components of two matrices on equality.
Matrix< Rows, Cols, Scalar > operator-(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs)
constexpr double NUMERICAL_ZERO_DIFFERENCE
Definition Scalar.h:17
Matrix< Rows, Cols, Scalar > operator+(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs)
Matrix< Rows, Cols, Scalar > operator*(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)
bool equals(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs, const Scalar &tolerance=NUMERICAL_ZERO_DIFFERENCE)
Compares to matrices on equality by means of a numerical accuracy.
std::pair< int, int > equalsReturnIndex(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs, const Scalar &tolerance=NUMERICAL_ZERO_DIFFERENCE)
Return Index of element which is not equals.
Matrix< Rows, Cols, Scalar > multiplyComponents(const Matrix< Rows, X, Scalar > &lhs, const Matrix< X, Cols, Scalar > &rhs)
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19