summaryrefslogtreecommitdiff
path: root/hwpfilter/source/cspline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/cspline.cxx')
-rw-r--r--hwpfilter/source/cspline.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/cspline.cxx b/hwpfilter/source/cspline.cxx
index 06dde6cf3176..90f8c1c3520d 100644
--- a/hwpfilter/source/cspline.cxx
+++ b/hwpfilter/source/cspline.cxx
@@ -126,8 +126,8 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c,
h[i] = x[i+1]-x[i];
mgcLinearSystemD sys;
- double** mat = sys.NewMatrix(N+1); // guaranteed to be zeroed memory
- c = sys.NewVector(N+1); // guaranteed to be zeroed memory
+ double** mat = mgcLinearSystemD::NewMatrix(N+1); // guaranteed to be zeroed memory
+ c = mgcLinearSystemD::NewVector(N+1); // guaranteed to be zeroed memory
// c[0] - c[N] = 0
mat[0][0] = +1.0f;
@@ -152,7 +152,7 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c,
c[N] = 3.0f*((a[1]-a[0])/h[0] - (a[0]-a[N-1])/h[N-1]);
// solve for c[0] through c[N]
- sys.Solve(N+1,mat,c);
+ mgcLinearSystemD::Solve(N+1,mat,c);
const double oneThird = 1.0/3.0;
b = new double[N];
@@ -164,7 +164,7 @@ void PeriodicSpline (int N, double* x, double* a, double*& b, double*& c,
}
delete[] h;
- sys.DeleteMatrix(N+1,mat);
+ mgcLinearSystemD::DeleteMatrix(N+1,mat);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */