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