2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

remove std_min and std_max, update minmax coding guidelines

This commit is contained in:
Eric Niebler
2004-06-23 04:49:48 +00:00
parent 01a0f8f38a
commit 65b3cad8bf
30 changed files with 440 additions and 285 deletions

View File

@@ -16,12 +16,11 @@
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/minmax.hpp>
int main () {
using namespace boost::numeric::ublas;
vector<double> v1 (3), v2 (3);
for (unsigned i = 0; i < std_min (v1.size (), v2.size ()); ++ i)
for (unsigned i = 0; i < (std::min)(v1.size (), v2.size ()); ++ i)
v1 (i) = v2 (i) = i;
std::cout << outer_prod (v1, v2) << std::endl;