Lines Matching defs:matrix
371 const MatchMatrix& matrix, MatchResultListener* listener) const {
372 if (matrix.LhsSize() == 0 && matrix.RhsSize() == 0) {
378 matrix.LhsSize() != matrix.RhsSize();
384 if (matrix.LhsSize() != 0 && listener->IsInterested()) {
385 *listener << "which has " << Elements(matrix.LhsSize()) << "\n";
390 ::std::vector<char> element_matched(matrix.LhsSize(), 0);
391 ::std::vector<char> matcher_matched(matrix.RhsSize(), 0);
393 for (size_t ilhs = 0; ilhs < matrix.LhsSize(); ilhs++) {
394 for (size_t irhs = 0; irhs < matrix.RhsSize(); irhs++) {
395 char matched = matrix.HasEdge(ilhs, irhs);
437 const MatchMatrix& matrix, MatchResultListener* listener) const {
438 ElementMatcherPairs matches = FindMaxBipartiteMatching(matrix);
442 max_flow < matrix.RhsSize()) {
446 << max_flow << " of " << matrix.RhsSize()
453 max_flow < matrix.LhsSize()) {
457 << max_flow << " of " << matrix.RhsSize()