Marine systems simulation
LinearOperator.h
1#pragma once
2#include "eigen_matrix_defs.h"
3
4namespace CoRiBoDynamics{
5
13 public:
14 virtual ~LinearOperator(){}
15 virtual int SystemSize() = 0;
16 virtual void ComputeApproximateInverse() = 0;
17 virtual double ApplyLinearOperator (const Vector& V, Vector& Result) = 0;
18 virtual double ApplyApproximateInverse(const Vector& V, Vector& Result) = 0;
19 };
20}
Definition: LinearOperator.h:12
virtual void ComputeApproximateInverse()=0
returns the number of unknowns in the system;
virtual double ApplyApproximateInverse(const Vector &V, Vector &Result)=0
Applies the linear operator to the vector V and stores the value in Result. Returns Vt * A * V.
virtual double ApplyLinearOperator(const Vector &V, Vector &Result)=0
performs any precomputations
Definition: CollisionManager.h:6