Skip to content

Cannot create NeighborSearch with arma:fmat MatType #506

@victor1234

Description

@victor1234

I cannot declare type:

using KnnModel = mlpack::neighbor::NeighborSearch<mlpack::neighbor::NearestNeighborSort,
                                                  mlpack::metric::ManhattanDistance,
                                                  arma::fmat,
                                                  mlpack::tree::KDTree>;

error:

/usr/include/mlpack/core/tree/hrectbound_impl.hpp:372:30: 
error: no matching function for call to 
‘arma::Col<double>::Col(const arma::Op<arma::subview<float>, arma::op_min>)’
   arma::vec mins(min(data, 1));

Is threre no implementation for float or I'm doing something wrong?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions