9#include <alien/utils/Precomp.h>
32template <
class M,
class V>
43 using MatrixType =
Matrix ;
44 using VectorType =
Vector ;
45 using ValueType = Real ;
166 virtual void dump([[maybe_unused]]
Matrix const& a, [[maybe_unused]] std::string
const& filename)
const
168 throw NotImplementedException(
169 A_FUNCINFO,
"IInternalLinearAlgebra::dump not implemented");
178 virtual void dump([[maybe_unused]]
Vector const& x, [[maybe_unused]] std::string
const& filename)
const
180 throw NotImplementedException(
181 A_FUNCINFO,
"IInternalLinearAlgebra::dump not implemented");
Internal linear algebra interface.
virtual void dump(Matrix const &a, std::string const &filename) const
Dumps a matrix to a file.
virtual Real normInf(const Vector &x) const =0
Compute LInf norm of a vector.
virtual Real dot(const Vector &x, const Vector &y) const =0
Compute the dot product of two vectors.
virtual void axpy(Real alpha, const Vector &x, Vector &y) const =0
Scale a vector by a factor and adds the result to another vector.
virtual Real norm0(const Vector &x) const =0
Compute L0 norm of a vector.
virtual void mult(const Matrix &a, const Vector &x, Vector &r) const =0
Compute a matrix vector product.
virtual void scal(Real alpha, Vector &x) const =0
Scale a vector by a factor.
virtual void reciprocal(Vector &x) const =0
Compute the reciprocal of a vector.
virtual ~IInternalLinearAlgebra()
Free resources.
V Vector
Type of the vector used.
virtual void pointwiseMult(const Vector &x, const Vector &y, Vector &w) const =0
Compute the point wise multiplication of two vectors and store the result in another one.
virtual Real norm1(const Vector &x) const =0
Compute L1 norm of a vector.
virtual void dump(Vector const &x, std::string const &filename) const
Dumps a vector to a file.
M Matrix
Type of the matrix used.
virtual Real norm2(const Vector &x) const =0
Compute L2 norm of a vector.
virtual void aypx(Real alpha, Vector &y, const Vector &x) const =0
Scale a vector by a factor and adds the result to another vector.
virtual void diagonal(const Matrix &a, Vector &x) const =0
Extract the diagonal of a matrix in a vector.
virtual void copy(const Vector &x, Vector &r) const =0
Copy a vector in another one.
Implementation of an algebraic space.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --