Definition at line 143 of file SvmProblemRepositoryInFile.h. References Impala::Persistency::File::GetWriteBuffer(), Impala::MakeString(), and Impala::Util::IOBuffer::Puts(). Referenced by Add(). 00144 { 00145 Util::IOBuffer* buf = file.GetWriteBuffer(); 00146 if (!buf) 00147 return; 00148 00149 for (int i=0 ; i<p->l ; ++i) 00150 { 00151 String s = MakeString(p->y[i]); 00152 for (int j=0 ; p->x[i][j].index != -1 ; ++j) 00153 { 00154 s += " " + MakeString(p->x[i][j].index) + ":" 00155 + MakeString(p->x[i][j].value); 00156 } 00157 buf->Puts(s); 00158 } 00159 delete buf; 00160 }
Here is the call graph for this function: ![]()
|