BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_reverse.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
21
22#ifndef BELFEM_FN_REVERSE_HPP
23#define BELFEM_FN_REVERSE_HPP
24
25#include "cl_Vector.hpp"
26
27namespace belfem
28{
29//------------------------------------------------------------------------------
30
31#ifdef BELFEM_ARMADILLO
32 template< typename T >
33 auto
34 reverse( arma::Mat <T> & aA )
35 ->decltype( arma::reverse( aA ) )
36 {
37 return arma::reverse( aA );
38 }
39
40#elif BELFEM_BLAZE
41 template< typename T >
42 auto
43 reverse( blaze::DynamicVector<T, blaze::columnVector> & aA )
44 ->decltype( blaze::reverse( aA ) )
45 {
46 return blaze::reverse( aA );
47 }
48#endif
49
50// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
51
52 template< typename T >
53 auto
54 reverse( const Vector< T > & aA )
55 -> decltype( reverse( aA.vector_data() ) )
56 {
57 return reverse( aA.vector_data() );
58 }
59
60//------------------------------------------------------------------------------
61
62}
63
64#endif //BELFEM_FN_REVERSE_HPP
Column vector.
Definition cl_BZ_Vector.hpp:41
USER GUIDES:
Definition cl_Capacitor.cpp:16
void reverse(Cell< T > &aCell)
Definition cl_Cell.hpp:524