Aboria::create_sparse_operator — creates a sparse matrix-free linear operator for use with Eigen
// In header: </home/travis/build/martinjrobins/Aboria/src/Operators.h> template<typename RowParticles, typename ColParticles, typename FRadius, typename F, typename Kernel = KernelSparse<RowParticles, ColParticles, FRadius, F>, typename Operator = MatrixReplacement<1, 1, std::tuple<Kernel>>, typename = typename std::enable_if<!std::is_arithmetic<FRadius>::value>::type> Operator create_sparse_operator(const RowParticles & row_particles, const ColParticles & col_particles, const FRadius & radius_function, const F & function);
This function returns a MatrixReplacement
object that acts like a sparse linear operator (i.e. matrix) in Eigen, in that only particle pairs (i.e. a row/column pair) with a separation less that a given value are considered to be non-zero
Parameters: |
|
||||||||
Template Parameters: |
|