CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testBug6176.cc

Go to the documentation of this file.
00001 #include <iostream>
00002 
00003 #include "CLHEP/Matrix/Matrix.h"
00004 
00005 typedef CLHEP::HepMatrix AlgebraicMatrix; 
00006 
00007 int main(int, char **) {
00008 
00009 AlgebraicMatrix mtr(7,7,0); 
00010 for(int i=1;i<8;++i) 
00011 { 
00012   for(int j=1;j<8;++j) 
00013     { 
00014       if(i<=j) 
00015         { 
00016           mtr(i,j) = 10*i+j; 
00017           mtr(j,i) = 10*j+i; 
00018         } 
00019     } 
00020 }
00021 
00022 std::cout<<"Initial matrix "<<mtr<<std::endl; 
00023 std::cout<<"Sub (1,4,1,4)"<<mtr.sub(1,4,1,4)<<std::endl; 
00024 
00025 }

Generated on Thu Jul 1 22:02:31 2010 for CLHEP by  doxygen 1.4.7