JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
ConstMassMatrix.java
Go to the documentation of this file.
1 package kermor.dscomp;
2 
3 import org.apache.commons.math.linear.RealMatrix;
4 
13 public class ConstMassMatrix implements IMassMatrix {
14 
15  RealMatrix M;
16 
17  public ConstMassMatrix(RealMatrix M) {
18  this.M = M;
19  }
20 
21  /* (non-Javadoc)
22  * @see kermor.dscomp.IMassMatrix#evaluate(double, double[])
23  */
24  @Override
25  public RealMatrix evaluate(double t, double[] mu) {
26  return M;
27  }
28 
29  /* (non-Javadoc)
30  * @see kermor.dscomp.IMassMatrix#isTimeDependent()
31  */
32  @Override
33  public boolean isTimeDependent() {
34  return false;
35  }
36 }
Implements a constant mass matrix of the dynamical system.
Interface for dynamical system mass matrices .
RealMatrix evaluate(double t, double[] mu)