diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2009-04-06 22:29:34 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2009-04-06 22:29:34 +0000 |
| commit | 64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f (patch) | |
| tree | 0fae7298fc26ec9c39d73f1e9b33207c8bb0d9c2 /src/2geom/conjugate_gradient.cpp | |
| parent | noop: Rename argument from uri to filename for Extension::...::save implement... (diff) | |
| download | inkscape-64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f.tar.gz inkscape-64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f.zip | |
update 2geom. big commit as it has been a while. (2geom svn rev. 1870, i think)
i turned some optional compilation stuff *on* per default, to help building inkscape.
(bzr r7638)
Diffstat (limited to 'src/2geom/conjugate_gradient.cpp')
| -rw-r--r-- | src/2geom/conjugate_gradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/conjugate_gradient.cpp b/src/2geom/conjugate_gradient.cpp index f5a0f9cd8..9c4ea7776 100644 --- a/src/2geom/conjugate_gradient.cpp +++ b/src/2geom/conjugate_gradient.cpp @@ -46,7 +46,7 @@ matrix_times_vector(valarray<double> const &matrix, /* m * n */ unsigned n = vec.size(); unsigned m = result.size(); assert(m*n == matrix.size()); - const double* mp = &matrix[0]; + const double* mp = &const_cast<valarray<double>&>(matrix)[0]; for (unsigned i = 0; i < m; i++) { double res = 0; for (unsigned j = 0; j < n; j++) |
