<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Class for representing a matrix in StarPU that is split into tiles. More...
#include <Matrix.hpp>
Public Member Functions | |
Matrix< const T > | get_const_tiles (idx_t ix, idx_t iy, idx_t nx, idx_t ny) const noexcept |
Create a const submatrix from a list of tiles. | |
constexpr idx_t | get_nx () const noexcept |
Get number of tiles in x direction. | |
constexpr idx_t | get_ny () const noexcept |
Get number of tiles in y direction. | |
Matrix< T > | get_tiles (idx_t ix, idx_t iy, idx_t nx, idx_t ny) noexcept |
Create a submatrix from a list of tiles. | |
Matrix< const T > | map_to_const_tiles (idx_t rowStart, idx_t rowEnd, idx_t colStart, idx_t colEnd) const noexcept |
Create a const submatrix from starting and ending indices. | |
Matrix< T > | map_to_tiles (idx_t rowStart, idx_t rowEnd, idx_t colStart, idx_t colEnd) noexcept |
Create a submatrix from starting and ending indices. | |
constexpr | Matrix (const std::shared_ptr< starpu_data_handle_t > &pHandle, idx_t ix, idx_t iy, idx_t nx, idx_t ny, idx_t row0, idx_t col0, idx_t lastRows, idx_t lastCols) noexcept |
Create a submatrix from a handle and a grid. | |
Matrix (T *ptr, idx_t m, idx_t n, idx_t ld, idx_t mt, idx_t nt) noexcept | |
Create a matrix of size m-by-n from a pointer in main memory. | |
constexpr | Matrix (T *ptr, idx_t m, idx_t n, idx_t mt, idx_t nt) noexcept |
Create a matrix of size m-by-n from contiguous data in main memory. | |
constexpr idx_t | nblockcols () const noexcept |
Get the maximum number of columns of a tile. | |
constexpr idx_t | nblockrows () const noexcept |
Get the maximum number of rows of a tile. | |
constexpr idx_t | ncols () const noexcept override |
Get the number of columns in the matrix. | |
constexpr idx_t | nrows () const noexcept override |
Get the number of rows in the matrix. | |
Matrix & | operator= (const Matrix &)=delete |
Tile | tile (idx_t ix, idx_t iy) noexcept |
Get the data handle of a tile in the matrix or the data handle of the matrix if it is not partitioned. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const starpu::Matrix< T > &A) |
Display matrix in output stream. | |
Class for representing a matrix in StarPU that is split into tiles.
This class is a wrapper around a StarPU data handle. The grid is created by the StarPU map filters. In order to be able to extract submatrices, this class stores a virtual partition in addition to the StarPU data handle.
T | Type of the elements of the matrix |
|
inlinenoexcept |
Create a matrix of size m-by-n from a pointer in main memory.
[in] | ptr | Pointer to the data |
[in] | m | Number of rows |
[in] | n | Number of columns |
[in] | ld | Leading dimension of the matrix |
[in] | mt | Number of rows in a tile |
[in] | nt | Number of columns in a tile |
|
inlineconstexprnoexcept |
Create a matrix of size m-by-n from contiguous data in main memory.
|
inlinenoexcept |
Create a const submatrix from a list of tiles.
[in] | ix | Index of the first tile in x |
[in] | iy | Index of the first tile in y |
[in] | nx | Number of tiles in x |
[in] | ny | Number of tiles in y |
|
inlinenoexcept |
Create a submatrix from a list of tiles.
[in] | ix | Index of the first tile in x |
[in] | iy | Index of the first tile in y |
[in] | nx | Number of tiles in x |
[in] | ny | Number of tiles in y |
|
inlinenoexcept |
Create a const submatrix from starting and ending indices.
[in] | rowStart | Starting row index |
[in] | rowEnd | Ending row index |
[in] | colStart | Starting column index |
[in] | colEnd | Ending column index |
|
inlinenoexcept |
Create a submatrix from starting and ending indices.
[in] | rowStart | Starting row index |
[in] | rowEnd | Ending row index |
[in] | colStart | Starting column index |
[in] | colEnd | Ending column index |
|
inlineconstexproverridenoexcept |
Get the number of columns in the matrix.
|
inlineconstexproverridenoexcept |
Get the number of rows in the matrix.
|
friend |
Display matrix in output stream.
[in,out] | out | Output stream |
[in] | A | Matrix to display |