IndexLessNxt Struct Reference

#include <nnet-common.h>

Public Member Functions

bool operator() (const Index &a, const Index &b) const
 

Detailed Description

Definition at line 90 of file nnet-common.h.

Member Function Documentation

◆ operator()()

bool operator() ( const Index a,
const Index b 
) const
inline

Definition at line 91 of file nnet-common.h.

References Index::n, kaldi::nnet3::operator<<(), kaldi::nnet3::ReadIndexVector(), Index::t, kaldi::nnet3::WriteIndexVector(), and Index::x.

91  {
92  if (a.n < b.n) { return true; }
93  else if (a.n > b.n) { return false; }
94  else if (a.x < b.x) { return true; }
95  else if (a.x > b.x) { return false; }
96  else return (a.t < b.t);
97  }

The documentation for this struct was generated from the following file: