MyraMath
Classes | Functions
perm2sparse.h File Reference

Makes an explicit SparseMatrix from a permutation vector. More...

#include <myramath/MYRAMATH_EXPORT.h>
#include <myramath/utility/Number.h>
#include <vector>
Include dependency graph for perm2sparse.h:

Go to the source code of this file.

Classes

class  myra::SparseMatrix< Number >
 Stores an IxJ matrix A in compressed sparse column format. More...
 

Functions

template<class Number >
SparseMatrix< Number > myra::perm2sparse (const intCRange &perm)
 Converts a permutation vector into a SparseMatrix. Returns P such that P*x has the same effect as swap_rows(perm2swaps(perm),x).
 

Detailed Description

Makes an explicit SparseMatrix from a permutation vector.