comparison liboctave/floatGEPBAL.h @ 7792:39c1026191e9

add missing files from single-precision merge
author John W. Eaton <jwe@octave.org>
date Wed, 21 May 2008 09:36:46 -0400
parents
children eb63fbe60fab
comparison
equal deleted inserted replaced
7791:975e9540be2c 7792:39c1026191e9
1 /*
2
3 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006,
4 2007 John W. Eaton
5
6 This file is part of Octave.
7
8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21
22 */
23
24 #if !defined (octave_FloatGEPBALANCE_h)
25 #define octave_FloatGEPBALANCE_h 1
26
27 #include <iostream>
28 #include <string>
29
30 #include "fMatrix.h"
31
32 class
33 OCTAVE_API
34 FloatGEPBALANCE
35 {
36 public:
37
38 FloatGEPBALANCE (void) : balanced_mat (), balancing_mat () { }
39
40 FloatGEPBALANCE (const FloatMatrix& a, const FloatMatrix& b, const std::string& balance_job)
41 {
42 init (a, b, balance_job);
43 }
44
45 FloatGEPBALANCE (const FloatGEPBALANCE& a)
46 : balanced_mat (a.balanced_mat), balanced_mat2 (a.balanced_mat2),
47 balancing_mat (a.balancing_mat), balancing_mat2 (a.balancing_mat2) { }
48
49 FloatGEPBALANCE& operator = (const FloatGEPBALANCE& a)
50 {
51 if (this != &a)
52 {
53 balanced_mat = a.balanced_mat;
54 balanced_mat2 = a.balanced_mat2;
55 balancing_mat = a.balancing_mat;
56 balancing_mat2 = a.balancing_mat2;
57 }
58 return *this;
59 }
60
61 ~FloatGEPBALANCE (void) { }
62
63 FloatMatrix balanced_matrix (void) const { return balanced_mat; }
64
65 FloatMatrix balanced_matrix2 (void) const { return balanced_mat2; }
66
67 FloatMatrix balancing_matrix (void) const { return balancing_mat; }
68
69 FloatMatrix balancing_matrix2 (void) const { return balancing_mat2; }
70
71 friend std::ostream& operator << (std::ostream& os, const FloatGEPBALANCE& a);
72
73 private:
74
75 FloatMatrix balanced_mat;
76 FloatMatrix balanced_mat2;
77 FloatMatrix balancing_mat;
78 FloatMatrix balancing_mat2;
79
80 octave_idx_type init (const FloatMatrix& a, const FloatMatrix& b,
81 const std::string& balance_job);
82 };
83
84 #endif
85
86 /*
87 ;;; Local Variables: ***
88 ;;; mode: C++ ***
89 ;;; End: ***
90 */