Xmipp  v3.23.11-Nereus
Functions
symmetries.cpp File Reference
#include <stdio.h>
#include "symmetries.h"
#include "geometry.h"
Include dependency graph for symmetries.cpp:

Go to the source code of this file.

Functions

bool found_not_tried (const Matrix2D< int > &tried, int &i, int &j, int true_symNo)
 

Function Documentation

◆ found_not_tried()

bool found_not_tried ( const Matrix2D< int > &  tried,
int &  i,
int &  j,
int  true_symNo 
)

Definition at line 436 of file symmetries.cpp.

438 {
439  i = j = 0;
440  size_t n = 0;
441  while (n != MAT_YSIZE(tried))
442  {
443  // if (tried(i, j) == 0 && !(i >= true_symNo && j >= true_symNo))
444  if (dMij(tried,i, j) == 0 && !(i >= true_symNo && j >= true_symNo))
445  return true;
446  if (i != (int)n)
447  {
448  // Move downwards
449  i++;
450  }
451  else
452  {
453  // Move leftwards
454  j--;
455  if (j == -1)
456  {
457  n++;
458  j = n;
459  i = 0;
460  }
461  }
462  }
463  return false;
464 }
#define MAT_YSIZE(m)
Definition: matrix2d.h:124
#define i
#define dMij(m, i, j)
Definition: matrix2d.h:139
#define j
int * n