// compile against a CBLAS interface (ATLAS) (you can // also define this on the command line, // in any case, do this before including bindings) #define BOOST_NUMERIC_BINDINGS_BLAS_CBLAS // step 1: bring in support for the container(s) #include #include // step 2: bring in support for the algorithms #include namespace ublas = boost::numeric::ublas; namespace blas = boost::numeric::bindings::blas; int main() { ublas::vector sv (8); std::cout << blas::nrm2 (sv) << std::endl; }