X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=linearalgebra.h;fp=linearalgebra.h;h=2acf5cb5584a59d9b6ef87517ce3ad53a839bf56;hb=605ab6fa594317a38f0df7bb6797740c735b2348;hp=0000000000000000000000000000000000000000;hpb=4b6e3f7b5543822a2cca4fb076ab6af2ce8ca62d;p=mothur.git diff --git a/linearalgebra.h b/linearalgebra.h new file mode 100644 index 0000000..2acf5cb --- /dev/null +++ b/linearalgebra.h @@ -0,0 +1,33 @@ +#ifndef LINEARALGEBRA +#define LINEARALGEBRA + +/* + * linearalgebra.h + * mothur + * + * Created by westcott on 1/7/11. + * Copyright 2011 Schloss Lab. All rights reserved. + * + */ + +#include "mothurout.h" + +class LinearAlgebra { + +public: + LinearAlgebra() { m = MothurOut::getInstance(); } + ~LinearAlgebra() {} + + vector > matrix_mult(vector >, vector >); + int tred2(vector >&, vector&, vector&); + int qtli(vector&, vector&, vector >&); + + +private: + MothurOut* m; + + double pythag(double, double); +}; + +#endif +