View of a permutation_matrix
.
Array | Type of permutation array view |
IndexType | Type used for matrix indices (e.g. int ). |
MemorySpace | A memory space (e.g. cusp::host_memory or cusp::device_memory) |
A permutation_matrix_view
is a view of a permutation_matrix
constructed from existing data or iterators.
permutation_matrix
on the host with 3 nonzeros and permutes a coo_matrix by first by row and then by column.Definition at line 34 of file permutation_matrix.h.
#include <permutation_matrix.h>
Public Methods | |
permutation_matrix_view (void) | |
permutation_matrix_view (const size_t num_rows, ArrayType &permutation) | |
permutation_matrix_view (const size_t num_rows, const ArrayType &permutation) | |
permutation_matrix_view (permutation_matrix< IndexType, MemorySpace > &matrix) | |
permutation_matrix_view (const permutation_matrix< IndexType, MemorySpace > &matrix) | |
permutation_matrix_view (permutation_matrix_view< ArrayType > &matrix) | |
permutation_matrix_view (const permutation_matrix_view< ArrayType > &matrix) | |
void | resize (const size_t num_rows) |
template<typename MatrixType > | |
void | symmetric_permute (MatrixType &matrix) |
Public Members | |
permutation_array_type | permutation |
|
inline |
Construct an empty permutation_matrix_view
.
Definition at line 297 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
with a specific number of rows from an existing array denoting the permutation indices.
num_rows | Number of rows. |
permutation | Array containing the permutation indices. |
Definition at line 306 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
with a specific number of rows from an existing const array denoting the permutation indices.
num_rows | Number of rows. |
permutation | Array containing the permutation indices. |
Definition at line 316 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
from a existing permutation_matrix
.
matrix | permutation_matrix used to create view. |
Definition at line 324 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
from a existing const permutation_matrix
.
matrix | permutation_matrix used to create view. |
Definition at line 332 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
from a existing permutation_matrix_view
.
matrix | permutation_matrix_view used to create view. |
Definition at line 340 of file permutation_matrix.h.
|
inline |
Construct a permutation_matrix_view
from a existing const permutation_matrix_view
.
matrix | permutation_matrix_view used to create view. |
Definition at line 348 of file permutation_matrix.h.
void cusp::permutation_matrix_view< ArrayType, IndexType, MemorySpace >::resize | ( | const size_t | num_rows | ) |
Resize matrix dimensions and underlying storage
num_rows | Number of rows. |
void cusp::permutation_matrix_view< ArrayType, IndexType, MemorySpace >::symmetric_permute | ( | MatrixType & | matrix | ) |
Permute rows and columns of matrix elements
matrix | Input matrix to apply symmetric permutation. |
permutation_array_type cusp::permutation_matrix_view< ArrayType, IndexType, MemorySpace >::permutation |
Storage for the permutation indices
Definition at line 293 of file permutation_matrix.h.