|
Ublas : |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2006-04-17 09:16:36
I'm stumped - any hints?
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
int main() {
namespace ublas = boost::numeric::ublas;
ublas::vector<int> a (4);
ublas::matrix<int> b (4,4);
ublas::matrix<int> c = ublas::prod (a, b);
}
Test.cc: In function âint main()â:
Test.cc:9: error: conversion from
âboost::numeric::ublas::matrix_vector_binary2<boost::numeric::ublas::vector<int,
boost::numeric::ublas::unbounded_array<int, std::allocator<int> > >,
boost::numeric::ublas::matrix<int,
boost::numeric::ublas::basic_row_major<long unsigned int, long int>,
boost::numeric::ublas::unbounded_array<int, std::allocator<int> > >,
boost::numeric::ublas::matrix_vector_prod2<int, int, int> >â to non-scalar
type âboost::numeric::ublas::matrix<int,
boost::numeric::ublas::basic_row_major<long unsigned int, long int>,
boost::numeric::ublas::unbounded_array<int, std::allocator<int> > >â
requested