NeoN
A framework for CFD software
Loading...
Searching...
No Matches
utilities.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// SPDX-FileCopyrightText: 2024-2025 NeoN authors
3
4#pragma once
5
9
10
11namespace NeoN::la
12{
13
14/* @brief given a linear system consisting of A, b and x the operator computes the residual vector
15 * Ax-b
16 *
17 * @param[in] mtx, the corresponding matrix
18 * @param[in] b, rhs vector b
19 * @param[in] x, initial guess vector x
20 * @param[out]
21 */
24 const Vector<scalar>& b,
25 const Vector<scalar>& x,
27);
28
29}
A class to contain the data and executors for a field and define some basic operations.
Definition vector.hpp:28
Sparse matrix class with compact storage by row (CSR) format.
Definition CSRMatrix.hpp:84
void computeResidual(const CSRMatrix< scalar, localIdx > &mtx, const Vector< scalar > &b, const Vector< scalar > &x, Vector< scalar > &res)