PolyFEM
Loading...
Searching...
No Matches
auto_q_bases_3d_grad_0.cpp
Go to the documentation of this file.
1#include <Eigen/Dense>
2#include <cassert>
3
4namespace polyfem {
5namespace autogen {
6namespace {
7void q_0_basis_grad_value_3d_single_0(double x, double y, double z, double *val) {
8{val[0] = 0;}
9{val[1] = 0;}
10{val[2] = 0;}
11}
12
13
14
15}
16
17void q_0_basis_grad_value_3d(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val){
18val.resize(uv.rows(), 3);
19double gradient[3];
20switch(local_index){
21 case 0:
22 for (Eigen::Index i = 0; i < uv.rows(); ++i) {
23 q_0_basis_grad_value_3d_single_0(uv(i, 0), uv(i, 1), uv(i, 2), gradient);
24 val(i, 0) = gradient[0];
25 val(i, 1) = gradient[1];
26 val(i, 2) = gradient[2];
27 }
28 break;
29 default: assert(false);
30}
31}
32
33}}
double val
Definition Assembler.cpp:86
int y
int z
int x
void q_0_basis_grad_value_3d(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)