svm_read_problem   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/svm.xtm

Implementation

(bind-func svm_read_problem 1100000
  (let ((max_line_length    1000000)
        (line (zalloc max_line_length))))
  (lambda (filename)
    (let ((prob (svm_problem 0 null null))
          (max_index 0)
          (inst_max_index 0)
          (elements 0)
          (i 0)
          (j 0)
          (fp (fopen filename "r"))
          (endptr:i8* null)
          (idx:i8* null)
          (val:i8* null)
          (label:i8* null))
      (if (null? fp)
          (begin
            (printf "Error: cannot open input file %s\n" filename)
            null)
          (while (fgets line max_line_len fp)
            (while)
            )))))


Back to Index

Similar Entries

  • AudioBuffer_read    xtlang
  • AudioBuffer_read    xtlang
  • AudioBuffer_read_interp    xtlang
  • AudioBuffer_read_interp_mix    xtlang
  • AudioBuffer_read_interp_pw    xtlang
  • AudioBuffer_read_looped    xtlang
  • AudioBuffer_read_looped    xtlang
  • astra_readX    xtlang
  • astra_reader    xtlang
  • audiofile_aiff_read_samples    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • expr_problem    xtlang
  • expr_problem    xtlang
  • expr_problem    xtlang
  • impc:compiler:print-already-bound-error    scheme
  • midi_read_loop    xtlang
  • midi_read_msg    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • ocv_imread    xtlang
  • ocv_imread    xtlang
  • ocv_imread    scheme
  • ocv_imread1    xtlang
  • ocv_imread2    xtlang
  • ocv_read    xtlang
  • ocv_read    xtlang
  • ocv_read    scheme
  • ocv_read1    xtlang
  • ocv_read2    xtlang
  • read_and_write_frame    xtlang
  • sf_read_file_into_buffer    xtlang
  • svm_num_elements    xtlang
  • svm_parse_line    xtlang
  • svm_read_line    xtlang
  • sys_file_read    xtlang
  • thread_native_call    xtlang
  • thread_native_call_with_zone    xtlang
  • xhid_read    xtlang