41#if !defined(R__SOLARIS) && !defined(R__ACC) && !defined(R__FBSD)
47template<
class Element>
50 if (
m.GetNrows() != 2 ||
m.GetNcols() != 2 ||
m.GetRowLwb() !=
m.GetColLwb()) {
51 Error(
"Inv2x2",
"matrix should be square 2x2");
55 Element *
pM =
m.GetMatrixArray();
64 Error(
"Inv2x2",
"matrix is singular");
79template<
class Element>
82 if (
m.GetNrows() != 3 ||
m.GetNcols() != 3 ||
m.GetRowLwb() !=
m.GetColLwb()) {
83 Error(
"Inv3x3",
"matrix should be square 3x3");
87 Element *
pM =
m.GetMatrixArray();
112 }
else if (
t2 >=
t1) {
120 if (
det == 0 || tmp == 0) {
121 Error(
"Inv3x3",
"matrix is singular");
166template<
class Element>
169 if (
m.GetNrows() != 4 ||
m.GetNcols() != 4 ||
m.GetRowLwb() !=
m.GetColLwb()) {
170 Error(
"Inv4x4",
"matrix should be square 4x4");
174 Element *
pM =
m.GetMatrixArray();
240 Error(
"Inv4x4",
"matrix is singular");
304template<
class Element>
307 if (
m.GetNrows() != 5 ||
m.GetNcols() != 5 ||
m.GetRowLwb() !=
m.GetColLwb()) {
308 Error(
"Inv5x5",
"matrix should be square 5x5");
312 Element *
pM =
m.GetMatrixArray();
451 Error(
"Inv5x5",
"matrix is singular");
537template<
class Element>
540 if (
m.GetNrows() != 6 ||
m.GetNcols() != 6 ||
m.GetRowLwb() !=
m.GetColLwb()) {
541 Error(
"Inv6x6",
"matrix should be square 6x6");
545 Element *
pM =
m.GetMatrixArray();
914 Error(
"Inv6x6",
"matrix is singular");
#define NamespaceImp(name)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Bool_t Inv6x6(TMatrixT< Element > &m, Double_t *determ)
Bool_t Inv3x3(TMatrixT< Element > &m, Double_t *determ)
Bool_t Inv4x4(TMatrixT< Element > &m, Double_t *determ)
Bool_t Inv2x2(TMatrixT< Element > &m, Double_t *determ)
Bool_t Inv5x5(TMatrixT< Element > &m, Double_t *determ)