BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
op_VectorTimes.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_OP_VECTORTIMES_HPP
13#define BELFEM_OP_VECTORTIMES_HPP
14
15#include "cl_Vector.hpp"
16
17namespace belfem
18{
19//------------------------------------------------------------------------------
20
21 template< typename A, typename B >
22 inline auto
24 const B & aB )
25 -> decltype( aA.vector_data() * aB )
26 {
27
28 return aA.vector_data() * aB ;
29 }
30
31// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
32
33 template< typename A, typename B >
34 inline auto
35 operator*( const A & aA,
36 const Vector< B > & aB )
37 -> decltype( aA * aB.vector_data() )
38 {
39
40 return aA * aB.vector_data() ;
41 }
42
43//------------------------------------------------------------------------------
44
45}
46#endif //BELFEM_OP_VECTORTIMES_HPP
Column vector.
Definition cl_BZ_Vector.hpp:41
USER GUIDES:
Definition cl_Capacitor.cpp:16
auto operator*(const Matrix< T > &aA, const Matrix< T > &aB) -> decltype(aA.matrix_data() *aB.matrix_data())
Definition op_MatrixTimes.hpp:24