CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
Matrix
test
testBug6176.cc
Go to the documentation of this file.
1
#include <iostream>
2
3
#include "CLHEP/Matrix/Matrix.h"
4
5
typedef
CLHEP::HepMatrix
AlgebraicMatrix
;
6
7
int
main
(
int
,
char
**) {
8
9
AlgebraicMatrix
mtr(7,7,0);
10
for
(
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
22
std::cout<<
"Initial matrix "
<<mtr<<std::endl;
23
std::cout<<
"Sub (1,4,1,4)"
<<mtr.
sub
(1,4,1,4)<<std::endl;
24
25
}
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition:
testBug6176.cc:5
CLHEP::HepMatrix
Definition:
Matrix/CLHEP/Matrix/Matrix.h:209
CLHEP::HepMatrix::sub
HepMatrix sub(int min_row, int max_row, int min_col, int max_col) const
Definition:
Matrix.cc:195
main
int main()
Definition:
testBug66214.cc:30
Generated on Sat Dec 14 2013 08:54:16 for CLHEP by
1.8.5