diff options
Diffstat (limited to 'bench/btl/libs/gmm/gmm_interface.hh')
-rw-r--r-- | bench/btl/libs/gmm/gmm_interface.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bench/btl/libs/gmm/gmm_interface.hh b/bench/btl/libs/gmm/gmm_interface.hh index 6a81fe969..7ef41c0cf 100644 --- a/bench/btl/libs/gmm/gmm_interface.hh +++ b/bench/btl/libs/gmm/gmm_interface.hh @@ -106,6 +106,10 @@ public : gmm::add(gmm::scaled(X,coef), Y); } + static inline void axpby(real a, const gene_vector & X, real b, gene_vector & Y, int N){ + gmm::add(gmm::scaled(X,a), gmm::scaled(Y,b), Y); + } + static inline void copy_matrix(const gene_matrix & source, gene_matrix & cible, int N){ gmm::copy(source,cible); } @@ -114,6 +118,12 @@ public : gmm::copy(source,cible); } + static inline void trisolve_lower(const gene_matrix & L, const gene_vector& B, gene_vector & X, int N){ + gmm::copy(B,X); + gmm::lower_tri_solve(L, X, false); + } + + }; #endif |