17 double* pvalues = values.
get_v() +
min;
18 for (
int i = min; i <=
max; ++i)
34 int cmin = matrix.
colmin();
35 int cmax = matrix.
colmax();
36 int rmin = matrix.
rowmin();
37 int rmax = matrix.
rowmax();
41 double* psumsj = sums.
get_v() + cmin;
42 for (
int j=cmin; j<=cmax; ++j)
44 const dvector* pmatrixi = &matrix(rmin);
45 for (
int i=rmin; i<=rmax; ++i)
47 *psumsj += *(pmatrixi->
get_v() + j);
68 const dvector* pmatrixi = &matrix(min);
69 for (
int i = min; i <=
max; ++i)
71 *psumsi =
sum(*pmatrixi);
90 for (
int i = min; i <=
max; ++i)
92 total +=
sum(*pmatrixi);
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector rowsum(const dmatrix &matrix)
Returns dvector where each element contains the sum total of each row in matrix.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double colsum(const dmatrix &m, int col)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
void initialize(void)
Initialze all elements of dvector to zero.