Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PointMatrix Class Reference

#include <G4OsloMatrix.hh>

Public Member Functions

 G4PointMatrix ()
 
 G4PointMatrix (G4int, G4int)
 
 G4PointMatrix (G4double[])
 
 ~G4PointMatrix ()
 
G4int GetRows () const
 
G4int GetCols () const
 
void put (G4int i, G4int j, G4double x)
 
G4double get (G4int i, G4int j) const
 

Detailed Description

Definition at line 80 of file G4OsloMatrix.hh.

Constructor & Destructor Documentation

◆ G4PointMatrix() [1/3]

G4PointMatrix::G4PointMatrix ( )

Definition at line 56 of file G4OsloMatrix.cc.

57{
58 nr=nc=0;
59 data=0;
60}

◆ G4PointMatrix() [2/3]

G4PointMatrix::G4PointMatrix ( G4int  rows,
G4int  columns 
)

Definition at line 63 of file G4OsloMatrix.cc.

64{
65 nr=rows; nc=columns;
66 data = new G4double[nr*nc];
67 for(G4int a =0; a<nr*nc;a++)
68 { data[a]=0; }
69}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66

◆ G4PointMatrix() [3/3]

G4PointMatrix::G4PointMatrix ( G4double  vec[])

Definition at line 72 of file G4OsloMatrix.cc.

73{
74 nr = nc = 4;
75 data = new G4double[nr*nc];
76 for(G4int a=0;a<nr*nc;a++)
77 { data[a]=vec[a]; }
78}

◆ ~G4PointMatrix()

G4PointMatrix::~G4PointMatrix ( )

Definition at line 80 of file G4OsloMatrix.cc.

81{
82 delete [] data;
83}

Member Function Documentation

◆ get()

G4double G4PointMatrix::get ( G4int  i,
G4int  j 
) const
inline

◆ GetCols()

G4int G4PointMatrix::GetCols ( ) const
inline

◆ GetRows()

G4int G4PointMatrix::GetRows ( ) const
inline

◆ put()

void G4PointMatrix::put ( G4int  i,
G4int  j,
G4double  x 
)
inline

The documentation for this class was generated from the following files: