Lines Matching refs:vi
163 Linear2d& index(unsigned ui, unsigned vi) {
165 assert(vi < vs);
166 return (*this)[ui + vi*us];
169 Linear2d index(unsigned ui, unsigned vi) const {
172 if(vi >= vs)
174 return (*this)[ui + vi*us];
183 for(unsigned vi = 0; vi < vs; vi++) {
186 p += (sk*tk)*index(ui, vi);
222 for(unsigned vi = 0; vi < result.vs; vi++) {
225 if(ui < a.us && vi < a.vs)
226 bo += a.index(ui, vi);
227 if(ui < b.us && vi < b.vs)
228 bo += b.index(ui, vi);
229 result.index(ui, vi) = bo;
242 for(unsigned vi = 0; vi < result.vs; vi++) {
245 if(ui < a.us && vi < a.vs)
246 bo += a.index(ui, vi);
247 if(ui < b.us && vi < b.vs)
248 bo -= b.index(ui, vi);
249 result.index(ui, vi) = bo;