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 namespace polyfem {
4namespace autogen {void q_0_basis_grad_value_3d(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val){
5
6auto x=uv.col(0).array();
7auto y=uv.col(1).array();
8auto z=uv.col(2).array();
9
10val.resize(uv.rows(), uv.cols());
11 Eigen::ArrayXd result_0(uv.rows());
12switch(local_index){
13 case 0: {{result_0.setZero();val.col(0) = result_0; }{result_0.setZero();val.col(1) = result_0; }{result_0.setZero();val.col(2) = result_0; }} break;
14 default: assert(false);
15}}
16
17}}
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)