BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
fn_BZ_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_BZ_CROSS_HPP
13
#define BELFEM_FN_BZ_CROSS_HPP
14
15
#include "
cl_BZ_Vector.hpp
"
16
17
namespace
belfem
18
{
19
//------------------------------------------------------------------------------
20
21
template
<
typename
ET >
22
auto
23
cross
(
const
ET & aA,
const
ET & aB )
24
->
decltype
( blaze::cross( aA, aB ))
25
{
26
return
blaze::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
( blaze::cross( aA.vector_data(), aB ))
35
{
36
return
blaze::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
( blaze::cross( aA, aB.vector_data()))
45
{
46
return
blaze::cross( aA.vector_data(), aB );
47
}
48
49
//------------------------------------------------------------------------------
50
}
51
52
#endif
//BELFEM_FN_BZ_CROSS_HPP
cl_BZ_Vector.hpp
belfem::Vector
Column vector.
Definition
cl_BZ_Vector.hpp:41
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::cross
auto cross(const ET &aA, const ET &aB) -> decltype(arma::cross(aA, aB))
Definition
fn_AR_cross.hpp:23
src
linalg
blaze
fn_BZ_cross.hpp
Generated by
1.18.0