represent a rectangular region of a prefix sum array as an prefix sum array. More...
#include <util/subpsa.hpp>
represent a rectangular region of a prefix sum array as an prefix sum array.
SubPSA respect the 2D prefix sum array skeleton defined by util::PrefixSumArray2DOfTBracket.
T | type of the data in the prefix sum array | |
Pr | type of the prefix sum array to represent |
Classes | |
class | Intermediate |
a row from a SubPSA. More... | |
Public Member Functions | |
SubPSA (const Pr &psa, const rectangle &r) | |
int | prefixsizeX () const |
size of the prefix sum array not the real matrix! | |
int | prefixsizeY () const |
size of the prefix sum array not the real matrix! | |
Intermediate | operator[] (int x) const |
rectangle | inOriginalSpace (const rectangle &r) |
transfrom a rectangle in SubPSA space into a rectangle into originalpsa space | |
Private Attributes | |
const Pr & | originalpsa |
prefix sum array containing the SubPSA | |
rectangle | subspace |
region of originalpsa representend by SubPSA. Recall that rectangle are indexed from 1 |
util::SubPSA< T, Pr >::SubPSA | ( | const Pr & | psa, | |
const rectangle & | r | |||
) | [inline] |
rectangle util::SubPSA< T, Pr >::inOriginalSpace | ( | const rectangle & | r | ) | [inline] |
transfrom a rectangle in SubPSA space into a rectangle into originalpsa space
Intermediate util::SubPSA< T, Pr >::operator[] | ( | int | x | ) | const [inline] |
int util::SubPSA< T, Pr >::prefixsizeX | ( | ) | const [inline] |
size of the prefix sum array not the real matrix!
int util::SubPSA< T, Pr >::prefixsizeY | ( | ) | const [inline] |
size of the prefix sum array not the real matrix!
const Pr& util::SubPSA< T, Pr >::originalpsa [private] |
prefix sum array containing the SubPSA
rectangle util::SubPSA< T, Pr >::subspace [private] |
region of originalpsa representend by SubPSA. Recall that rectangle are indexed from 1