monoadaptivejacobian.h
来自「利用C」· C头文件 代码 · 共 62 行
H
62 行
// Copyright (C) 2005-2006 Anders Logg.// Licensed under the GNU LGPL Version 2.1.//// First added: 2005-01-28// Last changed: 2006-07-06#ifndef __MONO_ADAPTIVE_JACOBIAN_H#define __MONO_ADAPTIVE_JACOBIAN_H#include "TimeSlabJacobian.h"namespace dolfin{ class MonoAdaptiveTimeSlab; /// This class represents the Jacobian matrix of the system of /// equations defined on a mono-adaptive time slab. class MonoAdaptiveJacobian : public TimeSlabJacobian { public: /// Constructor MonoAdaptiveJacobian(MonoAdaptiveTimeSlab& timeslab, bool implicit, bool piecewise); /// Destructor ~MonoAdaptiveJacobian(); /// Return number of rows (dim = 0) or columns (dim = 1) uint size(uint dim) const; /// Compute product y = Ax void mult(const uBlasVector& x, uBlasVector& y) const; private: /// Friends friend class MonoAdaptiveNewtonSolver; // The time slab MonoAdaptiveTimeSlab& ts; // True if ODE is implicit bool implicit; // True if M is piecewise constant bool piecewise; // FIXME: Maybe we can reuse some other vectors? // Temporary vectors for storing multiplication mutable uBlasVector xx; mutable uBlasVector yy; };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?