#include "MultInd.h"
#include "Vector.h"
#include "Matrix.h"
#include <fstream>
Go to the source code of this file.
◆ choose()
unsigned long choose |
( |
unsigned |
n, |
|
|
unsigned |
k |
|
) |
| |
Definition at line 38 of file tools.cpp.
40 const unsigned long uupSize = 100;
41 static unsigned long uup[uupSize];
43 static unsigned long Nold = 0;
44 static unsigned long Kold = 0;
48 if ( (
n <
k) || !
n )
return 0;
56 if ( (Nold ==
n) && (k < Kold) )
57 return *(uup + k - 1);
61 printf(
"choose( unsigned, unsigned) : overflow\n");
74 for (j=0; j<
mmin(i,k); j++)
84 return *(uup + k - 1);
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
◆ operator*()