viennacl/viennacl-dev

Can't create a random vector/matrix via their initializer types

Opened this issue · 1 comments

sghkk commented

I saw http://viennacl.sourceforge.net/doc/manual-types.html#manual-operations-initializers. But I can't create a random vector as follows:

viennacl::vector<float> v1 = viennacl::random_vector<float>(s, d);

According to the vector_def.hpp (http://viennacl.sourceforge.net/doc/vector__def_8hpp_source.html), the initializer is not implemented in ViennaCL. Is the initializer a obsolete feature?

Ouch, unfortunately the documentation is incorrect at this point. random_vector as well as random_matrix have never become mature enough and have subsequently been removed at some point.

(I'll leave the issue open until the wrong documentation is fixed)