Xmipp  v3.23.11-Nereus
Classes | Functions
sparse_matrix2d.h File Reference
#include "core/multidim_array.h"
Include dependency graph for sparse_matrix2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SparseElement
 
class  SparseMatrix2D
 

Functions

bool operator< (const SparseElement &_x, const SparseElement &_y)
 

Function Documentation

◆ operator<()

bool operator< ( const SparseElement _x,
const SparseElement _y 
)
inline

Function to sort the sparse elements by their i,j position

Definition at line 42 of file sparse_matrix2d.h.

43 {
44  return ( _x.i < _y.i) || (( _x.i== _y.i) && ( _x.j< _y.j));
45 }