2 x 2 symmetric matrix  
 More...
#include <JMatrix2S.hh>
2 x 2 symmetric matrix 
Definition at line 26 of file JMatrix2S.hh.
 
◆ JMatrix2S() [1/3]
  
  
      
        
          | JMATH::JMatrix2S::JMatrix2S  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JMatrix2S() [2/3]
  
  
      
        
          | JMATH::JMatrix2S::JMatrix2S  | 
          ( | 
          const JMatrix2D &  | 
          A | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JMatrix2S() [3/3]
  
  
      
        
          | JMATH::JMatrix2S::JMatrix2S  | 
          ( | 
          const double  | 
          __a00,  | 
         
        
           | 
           | 
          const double  | 
          __a10,  | 
         
        
           | 
           | 
          const double  | 
          __a11  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Contructor. 
The upper triangle is internally set.
- Parameters
 - 
  
    | __a00 | (0,0)  | 
    | __a10 | (1,0)  | 
    | __a11 | (1,1)  | 
  
   
Definition at line 56 of file JMatrix2S.hh.
 
 
◆ invert()
  
  
      
        
          | void JMATH::JMatrix2S::invert  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Invert matrix. 
Definition at line 66 of file JMatrix2S.hh.
   78       if (fabs(
a10) > fabs(val)) {
 
   88         throw JDivisionByZero(
"LDU decomposition zero pivot");
 
   97         throw JDivisionByZero(
"D matrix not invertable");
 
 
 
 
◆ getInstance()
  
  
      
        
          | static const JMatrix2D& JMATH::JMatrix2D::getInstance  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Get reference to unique instance of this class object. 
- Returns
 - zero matrix 
 
Definition at line 70 of file JMath/JMatrix2D.hh.
 
 
◆ setIdentity()
◆ getIdentity()
  
  
      
        
          | static const JMatrix2D& JMATH::JMatrix2D::getIdentity  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestaticinherited   | 
  
 
Get reference to unique instance of this class object. 
- Returns
 - identity matrix 
 
Definition at line 97 of file JMath/JMatrix2D.hh.
 
 
◆ set()
  
  
      
        
          | void JMATH::JMatrix2D::set  | 
          ( | 
          const JMatrix2D &  | 
          A | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Set matrix. 
- Parameters
 - 
  
  
 
Definition at line 110 of file JMath/JMatrix2D.hh.
  112       static_cast<JMatrix2D&>(*
this) = A;
 
 
 
 
◆ reset()
◆ transpose()
◆ negate()
◆ add()
◆ sub()
◆ mul() [1/3]
  
  
      
        
          | JMatrix2D& JMATH::JMatrix2D::mul  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale matrix. 
- Parameters
 - 
  
  
 
- Returns
 - this matrix * factor 
 
Definition at line 194 of file JMath/JMatrix2D.hh.
  196       a00 *= factor; 
a01 *= factor;
 
  197       a10 *= factor; 
a11 *= factor;
 
 
 
 
◆ mul() [2/3]
◆ mul() [3/3]
Multiply with object. 
- Parameters
 - 
  
  
 
- Returns
 - result object 
 
Definition at line 273 of file JMath.hh.
 
 
◆ div()
  
  
      
        
          | JMatrix2D& JMATH::JMatrix2D::div  | 
          ( | 
          const double  | 
          factor | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
Scale matrix. 
- Parameters
 - 
  
  
 
- Returns
 - this matrix / factor 
 
Definition at line 209 of file JMath/JMatrix2D.hh.
  211       a00 /= factor; 
a01 /= factor;
 
  212       a10 /= factor; 
a11 /= factor;
 
 
 
 
◆ equals()
  
  
      
        
          | bool JMATH::JMatrix2D::equals  | 
          ( | 
          const JMatrix2D &  | 
          A,  | 
         
        
           | 
           | 
          const double  | 
          eps = std::numeric_limits<double>::min()  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
Equality. 
- Parameters
 - 
  
    | A | matrix  | 
    | eps | numerical precision  | 
  
   
- Returns
 - true if matrices identical; else false 
 
Definition at line 245 of file JMath/JMatrix2D.hh.
  248       return (fabs(
a00 - A.
a00) <= eps  &&
 
  249               fabs(
a01 - A.
a01) <= eps  &&
 
  250               fabs(
a10 - A.
a10) <= eps  &&
 
  251               fabs(
a11 - A.
a11) <= eps);
 
 
 
 
◆ isIdentity()
  
  
      
        
          | bool JMATH::JMatrix2D::isIdentity  | 
          ( | 
          const double  | 
          eps = std::numeric_limits<double>::min() | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Test identity. 
- Parameters
 - 
  
  
 
- Returns
 - true if identity matrix; else false 
 
Definition at line 261 of file JMath/JMatrix2D.hh.
 
 
◆ getDeterminant()
  
  
      
        
          | double JMATH::JMatrix2D::getDeterminant  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get determinant of matrix. 
- Returns
 - determinant of matrix 
 
Definition at line 272 of file JMath/JMatrix2D.hh.
 
 
◆ transform()
  
  
      
        
          | void JMATH::JMatrix2D::transform  | 
          ( | 
          double &  | 
          __x,  | 
         
        
           | 
           | 
          double &  | 
          __y  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ a00
  
  
      
        
          | double JMATH::JMatrix2D::a00 | 
         
       
   | 
  
inherited   | 
  
 
 
◆ a01
  
  
      
        
          | double JMATH::JMatrix2D::a01 | 
         
       
   | 
  
inherited   | 
  
 
 
◆ a10
  
  
      
        
          | double JMATH::JMatrix2D::a10 | 
         
       
   | 
  
inherited   | 
  
 
 
◆ a11
  
  
      
        
          | double JMATH::JMatrix2D::a11 | 
         
       
   | 
  
inherited   | 
  
 
 
The documentation for this class was generated from the following file: