Feellgood
Namespaces | Functions
algebra.h File Reference

set of class to handle sparse matrix operations for gradient conjugate algorithms a sparse vector class a read and a write sparse matrix class various vector operations, scalar and direct products; ... most of the member functions of the classes are using lambdas and C++11/17 algorithm and numeric More...

#include <iostream>
#include <cmath>
#include <algorithm>
#include "sparseMat.h"
#include "algebraCore.h"
#include "iter.h"

Go to the source code of this file.

Namespaces

 algebra
 

Functions

template<typename T >
algebra::sq (const T x)
 
template<typename T >
void algebra::scaled (const T alpha, std::vector< T > &Y)
 
template<typename T >
void algebra::p_direct (const std::vector< T > &X, const std::vector< T > &Y, std::vector< T > &Z)
 
template<typename T >
void algebra::add (const std::vector< T > &X, std::vector< T > &Y)
 
template<typename T >
void algebra::sub (const std::vector< T > &X, std::vector< T > &Y)
 
template<typename T >
void algebra::scaled_add (const std::vector< T > &X, const T alpha, std::vector< T > &Y)
 
template<typename T >
void algebra::mult (r_sparseMat &A, std::vector< T > const &X, std::vector< T > &Y)
 
template<typename T >
void algebra::applyMask (const std::vector< int > &mask, std::vector< T > &X)
 
std::ostream & algebra::operator<< (std::ostream &flux, r_sparseMat const &m)
 
template<typename T >
bool algebra::check (std::vector< T > &v)
 

Detailed Description

set of class to handle sparse matrix operations for gradient conjugate algorithms a sparse vector class a read and a write sparse matrix class various vector operations, scalar and direct products; ... most of the member functions of the classes are using lambdas and C++11/17 algorithm and numeric