#include <BaseMatrix.h>
Protected Attributes | |
BaseMatrix * | matrix |
InternalBlockAccessor | internal |
Public Member Functions | |
~BlockAccessor () | |
BlockAccessor (const BlockAccessor &b) | |
void | operator= (const BlockAccessor &b) |
Index | getRow () const |
Index | getCol () const |
const BaseMatrix * | getMatrix () const |
BaseMatrix * | getMatrix () |
bool | isValid () const |
SReal | element (Index i, Index j) const |
Read the value of the element at row i, column j within this block (using 0-based indices) More... | |
void | set (Index i, Index j, double v) |
Write the value of the element at row i, column j within this block (using 0-based indices) More... | |
void | add (Index i, Index j, double v) |
Add v to the existing value of the element at row i, column j within this block (using 0-based indices) More... | |
const float * | elements (float *dest) const |
Read all values from this block into given float buffer, or return the pointer to the data if the in-memory format is compatible. More... | |
const double * | elements (double *dest) const |
Read all values from this block into given double buffer, or return the pointer to the data if the in-memory format is compatible. More... | |
const int * | elements (int *dest) const |
Read all values from this block into given int buffer, or return the pointer to the data if the in-memory format is compatible. More... | |
void | set (const float *src) |
Set all values of this block from the given float buffer. More... | |
void | set (const double *src) |
Set all values of this block from the given double buffer. More... | |
void | set (const int *src) |
Set all values of this block from the given int buffer. More... | |
void | add (const float *src) |
Add to all values of this block from the given float buffer. More... | |
void | add (const double *src) |
Add to all values of this block from the given double buffer. More... | |
void | add (const int *src) |
Add to all values of this block from the given int buffer. More... | |
const float * | prepareAdd (float *buffer) |
void | finishAdd (const float *buffer) |
const double * | prepareAdd (double *buffer) |
void | finishAdd (const double *buffer) |
const int * | prepareAdd (int *buffer) |
void | finishAdd (const int *buffer) |
Protected Member Functions | |
BlockAccessor () | |
BlockAccessor (BaseMatrix *matrix, Index row, Index col, void *internalPtr) | |
BlockAccessor (BaseMatrix *matrix, Index row, Index col, Index internalData) | |
Friends | |
class | BaseMatrix |
class | BlockConstAccessor |
class | ColBlockConstIterator |
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Add to all values of this block from the given double buffer.
|
inline |
Add to all values of this block from the given float buffer.
|
inline |
Add to all values of this block from the given int buffer.
Add v to the existing value of the element at row i, column j within this block (using 0-based indices)
Read the value of the element at row i, column j within this block (using 0-based indices)
|
inline |
Read all values from this block into given double buffer, or return the pointer to the data if the in-memory format is compatible.
Read all values from this block into given float buffer, or return the pointer to the data if the in-memory format is compatible.
|
inline |
Read all values from this block into given int buffer, or return the pointer to the data if the in-memory format is compatible.
|
inline |
Finalize an addition of double values to this block. The buffer must be the one returned by calling the prepareAdd method.
|
inline |
Finalize an addition of float values to this block. The buffer must be the one returned by calling the prepareAdd method.
|
inline |
Finalize an addition of int values to this block. The buffer must be the one returned by calling the prepareAdd method.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Prepare the addition of double values to this block. Return a pointer to a double buffer where values can be added. If the in-memory format of the matrix is incompatible, the provided buffer can be used, but the method must clear it before returning.
Prepare the addition of float values to this block. Return a pointer to a float buffer where values can be added. If the in-memory format of the matrix is incompatible, the provided buffer can be used, but the method must clear it before returning.
|
inline |
Prepare the addition of int values to this block. Return a pointer to a int buffer where values can be added. If the in-memory format of the matrix is incompatible, the provided buffer can be used, but the method must clear it before returning.
|
inline |
Set all values of this block from the given double buffer.
|
inline |
Set all values of this block from the given float buffer.
|
inline |
Set all values of this block from the given int buffer.
Write the value of the element at row i, column j within this block (using 0-based indices)
|
friend |
|
friend |
|
friend |