Xmipp  v3.23.11-Nereus
Functions
sparse_matrix2d.cpp File Reference
#include <algorithm>
#include <fstream>
#include "sparse_matrix2d.h"
#include "core/xmipp_filename.h"
Include dependency graph for sparse_matrix2d.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const SparseMatrix2D &X)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const SparseMatrix2D X 
)

Definition at line 142 of file sparse_matrix2d.cpp.

143 {
144  int N=X.nrows();
145  for(int i =0 ; i< N ; i++)
146  {
147  for(int j =0; j<N ; j++)
148  out << X.getElemIJ(i, j) << "\t";
149  out << std::endl;
150  }
151  return out;
152 }
#define i
int nrows() const
Y size of the matrix.
#define j
double getElemIJ(int row, int col) const