Skip to content

Commit 960b11a

Browse files
committed
Added interp0 as a field in WlsObject.
1 parent 51f7dfc commit 960b11a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/wls_internal.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -16016,21 +16016,23 @@ namespace wls
1601616016
// wls = wls_resize(wls, dim, npoints)
1601716017
// wls = wls_resize(wls, dim, npoints, degree)
1601816018
// wls = wls_resize(wls, dim, npoints, degree, order)
16019+
// wls = wls_resize(wls, dim, npoints, degree, order, interp0)
1601916020
//
1602016021
// Parameters
1602116022
// ----------
16022-
// wls: previously allocated WlsObject object
16023-
// dim: dimension
16024-
// npoints: number of points
16025-
// degree: degree of polynomials (use negative for tensor product monomials)
16026-
// order: order of the confluent Vandermonde system (default is 0)
16023+
// wls: Previously allocated WlsObject object
16024+
// dim: Dimension
16025+
// npoints: Number of points.
16026+
// degree: Degree of polynomials (negative for tensor product monomials).
16027+
// order: Order of the confluent Vandermonde system (default is 0).
16028+
// interp0: Whether to enforce WLS to pass through the first point.
1602716029
//
1602816030
// Returns
1602916031
// -------
1603016032
// wls: a MATLAB/C struct that contains the buffer spaces for
1603116033
// computing WLS and its differentiation.
1603216034
//
16033-
// See also wls_init wls_diff
16035+
// See also wls_init, wls_var_diff
1603416036
b_wls->degree = degree;
1603516037
b_wls->order = order;
1603616038

src/wls_internal_types.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ struct WlsObject {
2626
int npoints;
2727
int degree;
2828
int order;
29+
boolean_T interp0;
2930
int stride;
3031
::coder::array<double, 2U> us;
3132
::coder::array<double, 1U> rweights;

0 commit comments

Comments
 (0)