Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90338223
support.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 31, 16:33
Size
414 B
Mime Type
text/x-c++
Expires
Sat, Nov 2, 16:33 (2 d)
Engine
blob
Format
Raw Data
Handle
22056220
Attached To
rGOOSEFEM GooseFEM
support.h
View Options
#ifndef SUPPORT_H
#define SUPPORT_H
#include <catch2/catch.hpp>
#include <cppmat/cppmat.h>
#include <xtensor/xrandom.hpp>
#include <xtensor/xmath.hpp>
#include "../include/GooseFEM/GooseFEM.h"
#define EQ(a,b) REQUIRE_THAT( (a), Catch::WithinAbs((b), 1.e-12) );
template
<
class
E
,
class
W
>
inline
auto
Average
(
E
&&
e
,
W
&&
weights
)
{
return
xt
::
sum
(
e
*
weights
,
{
0
,
1
})
/
xt
::
sum
(
weights
,
{
0
,
1
});
}
#endif
Event Timeline
Log In to Comment