BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_AR_cross.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
12#ifndef BELFEM_FN_AR_CROSS_HPP
13#define BELFEM_FN_AR_CROSS_HPP
14
15#include "cl_AR_Vector.hpp"
16
17namespace belfem
18{
19//------------------------------------------------------------------------------
20
21 template< typename ET >
22 auto
23 cross( const ET & aA, const ET & aB )
24 -> decltype( arma::cross( aA, aB ))
25 {
26 return arma::cross( aA, aB );
27 }
28
29// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30
31 template< typename T, typename ET >
32 auto
33 cross( Vector<T> & aA, const ET & aB )
34 -> decltype( arma::cross( aA.vector_data(), aB ))
35 {
36 return arma::cross( aA.vector_data(), aB );
37 }
38
39// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
40
41 template< typename ET, typename T >
42 auto
43 cross( const ET & aA, const Vector<T> & aB )
44 -> decltype( arma::cross( aA, aB.vector_data()))
45 {
46 return arma::cross( aA.vector_data(), aB );
47 }
48
49//------------------------------------------------------------------------------
50}
51
52#endif //BELFEM_FN_AR_CROSS_HPP
Column vector.
Definition cl_BZ_Vector.hpp:41
USER GUIDES:
Definition cl_Capacitor.cpp:16
auto cross(const ET &aA, const ET &aB) -> decltype(arma::cross(aA, aB))
Definition fn_AR_cross.hpp:23