help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave_map


From: Doug Stewart
Subject: Octave_map
Date: Thu, 25 Jun 2015 21:35:02 -0400

News for 4.0.0 said:
 ** The internal class <Octave_map> was deprecated in Octave 3.8 and has
    been removed from Octave 4.0.  Replacement classes are
    <octave_map> (struct array) or <octave_scalar_map> for a single
structure.




I am trying to get octgpr working and I get errors because Octave_map will not work.
My question is:
How do I know whether to replace it with octave_map 
 or with  octave_scalar_map

I tried replacing them with octave_map

and got errors like this:

pkg install octgpr-1.1.tar.gz
gpr_train.cc: In function ‘octave_value_list Fgpr_train(const octave_value_list&, int)’:
gpr_train.cc:319:21: error: no matching function for call to ‘octave_map::assign(const char [2], Matrix&)’
   GPM.assign ("X", X);
                     ^
gpr_train.cc:319:21: note: candidates are:
In file included from gpr_train.cc:22:0:
/usr/local/include/octave-4.0.0/octave/../octave/oct-map.h:348:8: note: void octave_map::assign(const string&, const Cell&)
   void assign (const std::string& k, const Cell& val)
        ^
/usr/local/include/octave-4.0.0/octave/../octave/oct-map.h:348:8: note:   no known conversion for argument 2 from ‘Matrix’ to ‘const Cell&’
/usr/local/include/octave-4.0.0/octave/../octave/oct-map.h:429:8: note: void octave_map::assign(const idx_vector&, const octave_map&)
   void assign (const idx_vector& i, const octave_map& rhs);
        ^

any and all help is appreciated.
Doug.

-- 
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]