CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
materialEffect::Covariance Class Reference

#include <MaterialEffectsUpdator.h>

Public Member Functions

void add (AlgebraicSymMatrix55 &cov) const
 
Covarianceoperator+= (Covariance const &cov)
 
float & operator[] (CovIndex i)
 
float operator[] (CovIndex i) const
 

Private Attributes

float data [4] = {0}
 

Detailed Description

Definition at line 20 of file MaterialEffectsUpdator.h.

Member Function Documentation

◆ add()

void materialEffect::Covariance::add ( AlgebraicSymMatrix55 cov) const
inline

Definition at line 24 of file MaterialEffectsUpdator.h.

24  {
25  cov(0, 0) += data[elos];
26  cov(1, 1) += data[msxx];
27  cov(1, 2) += data[msxy];
28  cov(2, 2) += data[msyy];
29  }

References data, materialEffect::elos, materialEffect::msxx, materialEffect::msxy, and materialEffect::msyy.

Referenced by counter.Counter::register(), and MaterialEffectsUpdator::updateStateInPlace().

◆ operator+=()

Covariance& materialEffect::Covariance::operator+= ( Covariance const &  cov)
inline

Definition at line 30 of file MaterialEffectsUpdator.h.

30  {
31  for (int i = 0; i != 4; ++i)
32  data[i] += cov.data[i];
33  return *this;
34  }

References data, and mps_fire::i.

◆ operator[]() [1/2]

float& materialEffect::Covariance::operator[] ( CovIndex  i)
inline

Definition at line 23 of file MaterialEffectsUpdator.h.

23 { return data[i]; }

References data, and mps_fire::i.

◆ operator[]() [2/2]

float materialEffect::Covariance::operator[] ( CovIndex  i) const
inline

Definition at line 22 of file MaterialEffectsUpdator.h.

22 { return data[i]; }

References data, and mps_fire::i.

Member Data Documentation

◆ data

float materialEffect::Covariance::data[4] = {0}
private
mps_fire.i
i
Definition: mps_fire.py:355
materialEffect::Covariance::data
float data[4]
Definition: MaterialEffectsUpdator.h:37
materialEffect::elos
Definition: MaterialEffectsUpdator.h:19
materialEffect::msyy
Definition: MaterialEffectsUpdator.h:19
materialEffect::msxx
Definition: MaterialEffectsUpdator.h:19
materialEffect::msxy
Definition: MaterialEffectsUpdator.h:19