QuickRank  v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
Classes | Macros
symmatrix.h File Reference
#include <cstdlib>

Go to the source code of this file.

Classes

class  SymMatrix< T >
 

Macros

#define sm2v(i, j, size)   ((i)*(size)-((i)-1)*(i)/2+(j)-(i))
 map a 2D square matrix coorinate pair (i, j) into a 1D array coordinate; size denotes the size of the matrix. More...
 

Macro Definition Documentation

#define sm2v (   i,
  j,
  size 
)    ((i)*(size)-((i)-1)*(i)/2+(j)-(i))

map a 2D square matrix coorinate pair (i, j) into a 1D array coordinate; size denotes the size of the matrix.