//  -*- C++  -*-
//
//======================================================================
//  File:          product.c
//  Author:        Thomas G. Dietterich
//  Description:   Reads in two probability tables and writes their
//                 conformal product on the output.
//                 
//  Copyright (c) 1995 by Thomas G. Dietterich.  All Rights Reserved.
//       may be reproduced by any non-commercial purpose.
//======================================================================
#include "ptable.h"
#include <iostream.h>
#include <fstream.h>

int main(int argc, char *argv[])
{
  probabilityTable table1, table2, table3;

  {
    ifstream str(argv[1]);
    str >> table1;
  }
  {
    ifstream str(argv[2]);
    str >> table2;
  }
  table3 = *(table1 * table2);
  cout << table3;
  return 0;
}
