Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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/io/SGIO.h>
00017
00018 namespace shogun
00019 {
00032 bool read_real_valued_sparse(
00033 SGSparseVector<float64_t>*& matrix, int32_t& num_feat, int32_t& num_vec);
00034
00042 bool write_real_valued_sparse(
00043 const SGSparseVector<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(SGString<char>*& strings, int32_t& num_str, int32_t& max_string_len);
00087 bool write_char_valued_strings(const SGString<char>* strings, int32_t num_str);
00088
00089 }
00090 #endif //__LIBSVM_FILE_H__
00091