@@ -54,9 +54,9 @@ pub mod error;
54
54
/// **Function Arguments and Output**
55
55
///
56
56
/// * The first argument of the function must be a reference to a `&DVector` type
57
- /// that accepts the independent variable (the `$\vec{x}$` values) and the other
58
- /// parameters must be scalars that are the nonlinear parameters that the basis
59
- /// function depends on.
57
+ /// that accepts the independent variable (the `$\vec{x}$` values) and the other
58
+ /// parameters must be scalars that are the nonlinear parameters that the basis
59
+ /// function depends on.
60
60
///
61
61
/// So if we want to model a basis function `$\vec{f_1}(\vec{x},\vec{\alpha})$`
62
62
/// where `$\vec{\alpha}=(\alpha_1,\alpha_2)$` we would write the function in Rust as
@@ -129,14 +129,14 @@ pub mod error;
129
129
/// ** Rules You Must Abide By **
130
130
///
131
131
/// * Basis functions must be **nonlinear** in the parameters they take. If they aren't, you can always
132
- /// rewrite the problem so that the linear parameters go in the coefficient vector `$\vec{c}$`. This
133
- /// means that each partial derivative also depend on all the parameters that the basis function depends
134
- /// on.
132
+ /// rewrite the problem so that the linear parameters go in the coefficient vector `$\vec{c}$`. This
133
+ /// means that each partial derivative also depend on all the parameters that the basis function depends
134
+ /// on.
135
135
///
136
136
/// * Derivatives must take the same parameter arguments *and in the same order* as the original
137
- /// basis function. This means if basis function `$\vec{f}_j$` is given as `$\vec{f}_j(\vec{x},a,b)$`,
138
- /// then the derivatives must also be given with the parameters `$a,b$` in the same order, i.e.
139
- /// `$\partial/\partial a \vec{f}_j(\vec{x},a,b)$`, `$\partial/\partial b \vec{f}_j(\vec{x},a,b)$`.
137
+ /// basis function. This means if basis function `$\vec{f}_j$` is given as `$\vec{f}_j(\vec{x},a,b)$`,
138
+ /// then the derivatives must also be given with the parameters `$a,b$` in the same order, i.e.
139
+ /// `$\partial/\partial a \vec{f}_j(\vec{x},a,b)$`, `$\partial/\partial b \vec{f}_j(\vec{x},a,b)$`.
140
140
///
141
141
/// **Rules Enforced at Compile Time**
142
142
///
@@ -333,8 +333,8 @@ where
333
333
/// * The list of parameters must only contain unique names
334
334
/// * The list of parameter names must not be empty
335
335
/// * Parameter names must not contain a comma. This is a precaution because
336
- /// `&["alpha,beta"]` most likely indicates a typo for `&["alpha","beta"]`. Any other form
337
- /// of punctuation is allowed.
336
+ /// `&["alpha,beta"]` most likely indicates a typo for `&["alpha","beta"]`. Any other form
337
+ /// of punctuation is allowed.
338
338
pub fn new < StrCollection > ( parameter_names : StrCollection ) -> Self
339
339
where
340
340
StrCollection : IntoIterator ,
0 commit comments