FEDRA emulsion software from the OPERA Collaboration
Invert< 1 > Class Reference

#include <Dinv.hh>

Static Public Member Functions

template<class Matrix >
static bool Dinv (Matrix &rhs)
 

Detailed Description

Invert<1>. $1\times1$ (sub-)matrix. $a_{11} \to 1/a_{11}$

Author
T. Glebe

Member Function Documentation

◆ Dinv()

template<class Matrix >
static bool Invert< 1 >::Dinv ( Matrix &  rhs)
inlinestatic
106 {
107 typename Matrix::value_type* a = rhs.Array();
108
109 if (a[0] == 0.) {
110 return false;
111 }
112 a[0] = 1. / a[0];
113 return true;
114 }
void a()
Definition: check_aligned.C:59

The documentation for this class was generated from the following file: