added operator() to change values
parent
6073bdb679
commit
8bf8e4dc1f
|
@ -35,7 +35,11 @@ namespace tensors {
|
|||
T[j] = a(j);
|
||||
}
|
||||
|
||||
double operator()(int i, int j) const {
|
||||
const double & operator()(int i, int j) const {
|
||||
return T[j](i);
|
||||
}
|
||||
|
||||
double & operator()(int i, int j) {
|
||||
return T[j](i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue