CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
testBug6176.cc File Reference
#include <iostream>
#include "CLHEP/Matrix/Matrix.h"

Go to the source code of this file.

Typedefs

typedef CLHEP::HepMatrix AlgebraicMatrix
 

Functions

int main (int, char **)
 

Typedef Documentation

◆ AlgebraicMatrix

Definition at line 5 of file testBug6176.cc.

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 7 of file testBug6176.cc.

7 {
8
9AlgebraicMatrix mtr(7,7,0);
10for(int i=1;i<8;++i)
11{
12 for(int j=1;j<8;++j)
13 {
14 if(i<=j)
15 {
16 mtr(i,j) = 10*i+j;
17 mtr(j,i) = 10*j+i;
18 }
19 }
20}
21
22std::cout<<"Initial matrix "<<mtr<<std::endl;
23std::cout<<"Sub (1,4,1,4)"<<mtr.sub(1,4,1,4)<<std::endl;
24
25}