This project has moved. For the latest updates, please go here.

Vector of integers

Jul 28, 2014 at 11:45 PM
I can't seem to find vectors with type int (e.g. vector<int>). Was that on purpose or did I miss something?

Jul 29, 2014 at 9:26 AM
Edited Jul 29, 2014 at 9:28 AM
Yes, this is intentional. Vector<int> would not technically be a vector in the mathematical sense of vector fields, as integers lack the multiplicative inverse. Quite a few of the linear algebra routines would not work properly.

But I take it you have a use case for using integer vectors?
Maybe something outside the field of linear algebra?

It would certainly be possible to make integer vectors work - just not for things like matrix decompositions or solving linear equation systems.

Jul 29, 2014 at 5:29 PM
Oh ok. I was trying to implement the PageRank Algorithm using the Matrix/Vector classes in the Numerics library. I think I figured it out though.

Thanks for answering!