Functions to create views of dense matrices/vectors.
More...
|
ghost_error | ghost_densemat_view_plain (ghost_densemat *x, void *data, ghost_lidx stride) |
| View plain data which is stored with a given stride. More...
|
|
ghost_error | ghost_densemat_create_and_view_densemat (ghost_densemat **x, ghost_densemat *src, ghost_lidx nr, ghost_lidx roffs, ghost_lidx nc, ghost_lidx coffs) |
| Create a ghost_densemat as a view of compact data of another ghost_densemat. More...
|
|
ghost_error | ghost_densemat_create_and_view_densemat_scattered (ghost_densemat **x, ghost_densemat *src, ghost_lidx nr, ghost_lidx *ridx, ghost_lidx nc, ghost_lidx *cidx) |
| Create a ghost_densemat as a view of arbitrarily scattered data of another ghost_densemat. More...
|
|
ghost_error | ghost_densemat_create_and_view_densemat_cols (ghost_densemat **x, ghost_densemat *src, ghost_lidx nc, ghost_lidx coffs) |
| Create a ghost_densemat as a view of compact columns of another ghost_densemat. More...
|
|
ghost_error | ghost_densemat_create_and_view_densemat_cols_scattered (ghost_densemat **x, ghost_densemat *src, ghost_lidx nc, ghost_lidx *cidx) |
| Create a ghost_densemat as a view of full but scattered columns of another ghost_densemat. More...
|
|
ghost_error | ghost_densemat_clone (ghost_densemat **x, ghost_densemat *src, ghost_lidx nc, ghost_lidx coffs) |
| Create a ghost_densemat as a clone of another ghost_densemat at a column given offset. More...
|
|
Functions to create views of dense matrices/vectors.
Create a ghost_densemat as a clone of another ghost_densemat at a column given offset.
- Parameters
-
x | The clone. |
src | The source densemat. |
nc | The number of columsn of the new densemat. |
coffs | The column offset into the source densemat. |
- Returns
- GHOST_SUCCESS on success or an error indicator.
Create a ghost_densemat as a view of compact data of another ghost_densemat.
- Parameters
-
x | The resulting scattered view. |
src | The source densemat with the data to be viewed. |
nr | The number of rows of the new densemat. |
roffs | The row offset into the source densemat. |
nc | The number of columsn of the new densemat. |
coffs | The column offset into the source densemat. |
- Returns
- GHOST_SUCCESS on success or an error indicator.
Create a ghost_densemat as a view of compact columns of another ghost_densemat.
- Parameters
-
x | The resulting scattered view. |
src | The source densemat with the data to be viewed. |
nc | The number of columsn of the new densemat. |
coffs | The column offset into the source densemat. |
- Returns
- GHOST_SUCCESS on success or an error indicator.
Create a ghost_densemat as a view of full but scattered columns of another ghost_densemat.
- Parameters
-
x | The resulting scattered view. |
src | The source densemat with the data to be viewed. |
nc | The number of columsn of the new densemat. |
cidx | The column indices to be viewed. |
- Returns
- GHOST_SUCCESS on success or an error indicator.
Create a ghost_densemat as a view of arbitrarily scattered data of another ghost_densemat.
- Parameters
-
x | The resulting scattered view. |
src | The source densemat with the data to be viewed. |
nr | The number of rows of the new densemat. |
ridx | The row indices to be viewed. |
nc | The number of columsn of the new densemat. |
cidx | The column indices to be viewed. |
- Returns
- GHOST_SUCCESS on success or an error indicator.
View plain data which is stored with a given stride.
- Parameters
-
x | The densemat. |
data | Memory location of the data. |
stride | Stride of the data. |
- Returns
- GHOST_SUCCESS on success or an error indicator.