Nx1 matrix.  
 More...
#include <JVectorND.hh>
 | 
| std::ostream &  | operator<< (std::ostream &out, const JVectorND &object) | 
|   | Print ASCII formatted output.  
  | 
|   | 
Nx1 matrix. 
Definition at line 21 of file JVectorND.hh.
 
◆ JVectorND() [1/2]
  
  
      
        
          | JMATH::JVectorND::JVectorND  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JVectorND() [2/2]
  
  
      
        
          | JMATH::JVectorND::JVectorND  | 
          ( | 
          size_t |           size | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ reset()
  
  
      
        
          | void JMATH::JVectorND::reset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Reset. 
Definition at line 45 of file JVectorND.hh.
   46    {
   47      for (iterator i = this->begin(); i != this->end(); ++i) {
   48        *i = 0.0;
   49      }
   50    }
 
 
 
◆ getDot()
  
  
      
        
          | double JMATH::JVectorND::getDot  | 
          ( | 
          const JVectorND & |           vector | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get dot product. 
- Parameters
 - 
  
  
 
- Returns
 - dot product 
 
Definition at line 59 of file JVectorND.hh.
   60    {
   61      double dot = 0.0;
   62 
   63      const double* p = this-> 
data();
 
   64      const double* q = vector.data();
   65 
   66      for (size_t i = this->size(); i != 0; --i, ++p, ++q) {
   67        dot += (*p) * (*q);
   68      }
   69 
   70      return dot;
   71    }
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JVectorND & |           object ) | 
         
       
   | 
  
friend   | 
  
 
Print ASCII formatted output. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | Nx1 matrix  | 
  
   
- Returns
 - output stream 
 
Definition at line 81 of file JVectorND.hh.
   82    {
   84 
   86 
   87      for (JVectorND::const_iterator i = object.begin(); i != object.end(); ++i) {
   88        out << format << *i << ' ';
   89      }
   90 
   91      out << endl;
   92 
   93      return out;
   94    }
JFormat_t & getFormat()
Get format for given type.
 
 
 
 
The documentation for this struct was generated from the following file: