| 116 | } |
| 117 | |
| 118 | double SparseUnsortedArray::get( unsigned entry ) const |
| 119 | { |
| 120 | for ( unsigned i = 0; i < _nnz; ++i ) |
| 121 | { |
| 122 | if ( _array[i]._index == entry ) |
| 123 | return _array[i]._value; |
| 124 | } |
| 125 | |
| 126 | return 0; |
| 127 | } |
| 128 | |
| 129 | SparseUnsortedArray::Entry SparseUnsortedArray::getByArrayIndex( unsigned index ) const |
| 130 | { |
nothing calls this directly
no outgoing calls
no test coverage detected