16 int jmin = matrix.
colmin();
17 int jmax = matrix.
colmax();
20 int imin = matrix.
rowmin();
21 int imax = matrix.
rowmax();
23 int* pcolumnsj = colsums.
get_v() + jmin;
24 for (
int j = jmin; j <= jmax; ++j)
28 const ivector* pmatrixi = &matrix(imin);
29 for (
int i = imin; i <= imax; ++i)
31 *pcolumnsj += *(pmatrixi->
get_v() + j);
52 int* prowsumsi = rowsums.
get_v() +
min;
53 const ivector* pmatrixi = &matrix(min);
54 for (
int i = min; i <=
max; ++i)
56 *prowsumsi =
sum(*pmatrixi);
75 for (
int i = imin; i <= imax; ++i)
Description not yet available.
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void fill_seqadd(int, int)
Fills ivector elements with values starting from base and incremented by offset.
Array of integers(int) with indexes from index_min to indexmax.
dvector rowsum(const dmatrix &matrix)
Returns dvector where each element contains the sum total of each row in matrix.
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.
void fill_seqadd(int, int)
Fill imatrix with sequence of integers from start and adding with increment.