]> git.donarmstrong.com Git - mothur.git/blob - fullmatrix.cpp
3f1344c6c930bfebadcc0cb10a3939379db27886
[mothur.git] / fullmatrix.cpp
1 /*
2  *  fullmatrix.cpp
3  *  Mothur
4  *
5  *  Created by Sarah Westcott on 3/6/09.
6  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
7  *
8  */
9
10 #include "fullmatrix.h"
11
12
13 /**************************************************************************/
14 //This constructor reads a distance matrix file and stores the data in the matrix.
15 FullMatrix::FullMatrix(ifstream& f) {
16         try{
17                 string name;
18                 f >> numSeqs >> name;
19                 
20                 matrix.resize(numSeqs);  
21                 
22                 
23         
24         }
25         catch(exception& e) {
26                 cout << "Standard Error: " << e.what() << " has occurred in the FullMatrix class Function FullMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
27                 exit(1);
28         }
29         catch(...) {
30                 cout << "An unknown error has occurred in the FullMatrix class function FullMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
31                 exit(1);
32         }
33 }
34 /**************************************************************************/    
35 int FullMatrix::getNumSeqs(){ return numSeqs; }
36 /**************************************************************************/