23 (*ad_printf)(
"Entering dvector * dvec dmat is corrupted.\n" );
27 (*ad_printf)(
"Entering dvector * dvec dmat Heap is OK.\n" );
39 cerr <<
" Incompatible array bounds in "
40 <<
"dvector operator*(const dvector& A, const dmatrix& B)\n";
47 double* presultsj = results.
get_v() + jmin;
48 for (
int j = jmin; j <= jmax; ++j)
52 const double* pAi = A.
get_v() + imin;
54 for (
int i = imin; i <= imax; ++i)
56 *presultsj += *pAi * *(pBi->
get_v() + j);
66 (*ad_printf)(
"Leaving dvector * dvec dmat is corrupted.\n" );
70 (*ad_printf)(
"Leaving dvector * dvec dmat Heap is OK.\n" );
87 (*ad_printf)(
"Entering dvector * dmat dvec is corrupted.\n");
91 (*ad_printf)(
"Entering dvector * dmat dvec Heap is OK.\n");
103 cerr <<
" Incompatible array bounds in "
104 <<
"dvector operator*(const dmatrix& A, const dvector& B)\n";
111 double* presultsi = results.
get_v() + imin;
113 for (
int i = imin; i <= imax; ++i)
117 double* pBj = B.
get_v() + jmin;
118 double* pAij = pAi->
get_v() + jmin;
119 for (
int j = jmin; j <= jmax; ++j)
121 *presultsi += *pAij * *pBj;
133 (*ad_printf)(
"Leaving dvector * dmat dvec is corrupted.\n");
137 (*ad_printf)(
"Leaving dvector * dmat dvec Heap is OK.\n");
159 cerr <<
" Incompatible array bounds in "
160 <<
"dmatrix operator*(const dmatrix& A, const dmatrix& B)\n";
165 dmatrix results(imin, imax, jmin, jmax);
166 for (
int j = jmin; j <= jmax; ++j)
170 dvector* presultsi = &results(imin);
171 for (
int i = imin; i <= imax; ++i)
173 *(presultsi->
get_v() + j) = *pAi * col;
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
dmatrix operator*(const d3_array &t, const dvector &v)
Description not yet available.
int heapcheck(void)
Does nothing.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
dvector column(const dmatrix &matrix, int j)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int ad_printf(FILE *stream, const char *format, Args...args)