#include <Smatrix.hpp>
Inheritance diagram for smatrix::svector_ref::
Public Types | |
typedef map< size_t, size_t >::iterator | iterator |
Public Methods | |
svector_ref (smatrix< t > *pm, const rng &i, size_t j) | |
svector_ref (smatrix< t > *pm, size_t i, const rng &j) | |
map< size_t, size_t > * | GetMap () |
iterator | lower_bound (size_t i) |
t & | Coef (iterator p) |
svector_ref | operator= (const const_svector_ref &b) |
svector_ref & | operator= (const svector &b) |
iterator | insert (iterator p, size_t x, const t &d) |
iterator | erase (iterator p) |
t & | operator() (size_t n) |
void | CalcEpsilon (const t &d) |
svector_ref & | operator+= (const const_svector_ref &b) |
svector_ref & | operator-= (const const_svector_ref &b) |
svector_ref & | operator+= (const svector &b) |
svector_ref & | operator-= (const svector &b) |
svector_ref & | operator *= (const t &d) |
Static Public Methods | |
size_t | Index (iterator p) |
Public Attributes | |
smatrix< t > * | m |
|
Definition at line 434 of file Smatrix.hpp. |
|
Definition at line 436 of file Smatrix.hpp. 00436 : 00437 m(pm), const_svector_ref(pm, i, j) { } |
|
Definition at line 438 of file Smatrix.hpp. 00438 : 00439 m(pm), const_svector_ref(pm, i, j) { } |
|
Definition at line 495 of file Smatrix.hpp. 00496 { 00497 sm::CalcEpsilon(m->maxCoef, m->epsilon, d); 00498 } |
|
Definition at line 453 of file Smatrix.hpp. Referenced by operator *=().
00454 { 00455 return(m->e[p->second]); 00456 } |
|
Definition at line 440 of file Smatrix.hpp. Referenced by lower_bound(), and operator()().
|
|
Definition at line 452 of file Smatrix.hpp. 00452 { return(p->first); } |
|
Definition at line 478 of file Smatrix.hpp. |
|
Definition at line 465 of file Smatrix.hpp. Referenced by operator()().
|
|
Definition at line 448 of file Smatrix.hpp. Referenced by operator *=().
00449 { 00450 return(GetMap()->lower_bound(i)); 00451 } |
|
Definition at line 515 of file Smatrix.hpp. 00516 { 00517 iterator i = lower_bound(range.first); 00518 iterator iEnd = lower_bound(range.second + 1); 00519 for(; i != iEnd; i++) 00520 Coef(i) *= d; 00521 return(*this); 00522 } |
|
Definition at line 489 of file Smatrix.hpp. 00490 { 00491 const map<size_t, size_t> *Map = GetMap(); 00492 const_iterator p = Map->find(n); 00493 return(p == Map->end() ? insert(n, t(0)) : cm->e[p->second]); 00494 } |
|
Definition at line 507 of file Smatrix.hpp. 00508 { 00509 return(svAddEq(*this, b, false)); 00510 } |
|
Definition at line 499 of file Smatrix.hpp. 00500 { 00501 return(svAddEq(*this, b, false)); 00502 } |
|
Definition at line 511 of file Smatrix.hpp. 00512 { 00513 return(svAddEq(*this, b, true)); 00514 } |
|
Definition at line 503 of file Smatrix.hpp. 00504 { 00505 return(svAddEq(*this, b, true)); 00506 } |
|
Definition at line 461 of file Smatrix.hpp. 00462 { 00463 return(svAssign(*this, b)); 00464 } |
|
Definition at line 457 of file Smatrix.hpp. 00458 { 00459 return(svAssign(*this, b)); 00460 } |
|
Definition at line 433 of file Smatrix.hpp. |