simple_fit.operator[]
This commit is contained in:
parent
78efe19873
commit
999093c7dd
1
simple.h
1
simple.h
@ -102,6 +102,7 @@ T fitcoef[n];
|
||||
int npoints;
|
||||
void clear(bool keepresults=false) {npoints=0; memset(&fitmat[0][0],0,n*n*sizeof(T)); memset(&rhsmat[0][0],0,1*n*sizeof(T)); if(!keepresults) memset(&fitcoef[0],0,n*sizeof(T));};
|
||||
simple_linfit() {clear(false);}
|
||||
const T &operator[](int i) const {return fitcoef[i];}
|
||||
void input(const T (&funcs)[n], const T y)
|
||||
{
|
||||
++npoints;
|
||||
|
Loading…
Reference in New Issue
Block a user