mirror of
https://github.com/boostorg/ublas.git
synced 2026-01-26 07:02:18 +00:00
12 lines
265 B
C++
12 lines
265 B
C++
#include <boost/numeric/ublas/vector.hpp>
|
|
#include <boost/numeric/ublas/io.hpp>
|
|
|
|
int main () {
|
|
using namespace boost::numeric::ublas;
|
|
vector<double> v (3);
|
|
for (unsigned i = 0; i < v.size (); ++ i)
|
|
v (i) = i;
|
|
std::cout << v << std::endl;
|
|
}
|
|
|