SHOGUN v0.9.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2010 Soeren Sonnenburg 00008 * Copyright (C) 2010 Berlin Institute of Technology 00009 */ 00010 #ifndef __LIBSVM_FILE_H__ 00011 #define __LIBSVM_FILE_H__ 00012 00013 #include <shogun/lib/config.h> 00014 #include <shogun/lib/common.h> 00015 #include <shogun/base/SGObject.h> 00016 #include <shogun/lib/io.h> 00017 00018 namespace shogun 00019 { 00032 bool read_real_valued_sparse( 00033 TSparse<float64_t>*& matrix, int32_t& num_feat, int32_t& num_vec); 00034 00042 bool write_real_valued_sparse( 00043 const TSparse<float64_t>* matrix, int32_t num_feat, int32_t num_vec); 00044 00056 bool read_real_valued_dense( 00057 float64_t*& matrix, int32_t& num_feat, int32_t& num_vec); 00058 00066 bool write_real_valued_dense( 00067 const float64_t* matrix, int32_t num_feat, int32_t num_vec); 00068 00080 bool read_char_valued_strings(TString<char>*& strings, int32_t& num_str, int32_t& max_string_len); 00087 bool write_char_valued_strings(const TString<char>* strings, int32_t num_str); 00088 00089 } 00090 #endif //__LIBSVM_FILE_H__ 00091