4634
|
1 /* |
|
2 |
|
3 Copyright (C) 2003 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
4634
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_ls_mat4_h) |
|
25 #define octave_ls_mat4 1 |
|
26 |
|
27 extern oct_mach_info::float_format |
|
28 mopt_digit_to_float_format (int mach); |
|
29 |
|
30 extern int |
|
31 float_format_to_mopt_digit (oct_mach_info::float_format flt_fmt); |
|
32 |
|
33 extern int |
|
34 read_mat_file_header (std::istream& is, bool& swap, FOUR_BYTE_INT& mopt, |
|
35 FOUR_BYTE_INT& nr, FOUR_BYTE_INT& nc, |
|
36 FOUR_BYTE_INT& imag, FOUR_BYTE_INT& len, |
|
37 int quiet = 0); |
|
38 |
|
39 extern std::string |
|
40 read_mat_binary_data (std::istream& is, const std::string& filename, |
|
41 octave_value& tc); |
|
42 |
|
43 extern bool |
|
44 save_mat_binary_data (std::ostream& os, const octave_value& tc, |
|
45 const std::string& name) ; |
|
46 |
|
47 #endif |
|
48 |
|
49 /* |
|
50 ;;; Local Variables: *** |
|
51 ;;; mode: C++ *** |
|
52 ;;; End: *** |
|
53 */ |