CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions
TensorIndex_base1< d1, d2, d3, d4 > Class Template Reference

#include <TensorIndex.h>

Public Types

enum  { SIZE = d1*d2*d3*d4 }
 
enum  { LEN1 = d1 }
 
enum  { LEN2 = d2 }
 
enum  { LEN3 = d3 }
 
enum  { LEN4 = d4 }
 

Static Public Member Functions

static int indexOf (const int i)
 
static int indexOf (const int i, const int j)
 
static int indexOf (const int i, const int j, const int k)
 
static int indexOf (const int i, const int j, const int k, const int l)
 

Detailed Description

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
class TensorIndex_base1< d1, d2, d3, d4 >

Definition at line 39 of file TensorIndex.h.

Member Enumeration Documentation

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
anonymous enum
Enumerator
SIZE 

Definition at line 41 of file TensorIndex.h.

41 {SIZE = d1*d2*d3*d4 };
template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
anonymous enum
Enumerator
LEN1 

Definition at line 42 of file TensorIndex.h.

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
anonymous enum
Enumerator
LEN2 

Definition at line 43 of file TensorIndex.h.

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
anonymous enum
Enumerator
LEN3 

Definition at line 44 of file TensorIndex.h.

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
anonymous enum
Enumerator
LEN4 

Definition at line 45 of file TensorIndex.h.

Member Function Documentation

template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
static int TensorIndex_base1< d1, d2, d3, d4 >::indexOf ( const int  i)
inlinestatic

Definition at line 47 of file TensorIndex.h.

47  {
48  return i -1;
49  }
int i
Definition: DBlmapReader.cc:9
template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
static int TensorIndex_base1< d1, d2, d3, d4 >::indexOf ( const int  i,
const int  j 
)
inlinestatic

Definition at line 50 of file TensorIndex.h.

50  {
51  return j*d1 + i -1 -d1;
52  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
static int TensorIndex_base1< d1, d2, d3, d4 >::indexOf ( const int  i,
const int  j,
const int  k 
)
inlinestatic

Definition at line 53 of file TensorIndex.h.

53  {
54  return (k*d2 + j)*d1 + i -1 -d1 -d1*d2;
55  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
int k[5][pyjets_maxn]
template<int d1, int d2 = 1, int d3 = 1, int d4 = 1>
static int TensorIndex_base1< d1, d2, d3, d4 >::indexOf ( const int  i,
const int  j,
const int  k,
const int  l 
)
inlinestatic

Definition at line 56 of file TensorIndex.h.

56  {
57  return ((l*d3 + k)*d2 + j)*d1 + i -1 -d1 -d1*d2 - d1*d2*d3;
58  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
int k[5][pyjets_maxn]