Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
#include "moab/FindPtFuncs.h"
Go to the source code of this file.
Functions | |
static void | mxm_cc (const realType *A, unsigned na, const realType *B, unsigned nb, realType *C, unsigned nc) |
static void | mxm_rc (const realType *A, unsigned na, const realType *B, unsigned nb, realType *C, unsigned nc) |
static void | mxm_cr (const realType *A, unsigned na, const realType *B, unsigned nb, realType *C, unsigned nc) |
static void | mxv_c (realType *y, unsigned ny, const realType *A, const realType *x, unsigned nx) |
static void | mxv_r (realType *y, unsigned ny, const realType *A, const realType *x, unsigned nx) |
static realType | inner (const realType *u, const realType *v, unsigned n) |
void | tensor_c1 (const realType *R, unsigned mr, unsigned nr, const realType *u, realType *v) |
void | tensor_r1 (const realType *R, unsigned mr, unsigned nr, const realType *u, realType *v) |
void | tensor_c2 (const realType *R, unsigned mr, unsigned nr, const realType *S, unsigned ms, unsigned ns, const realType *u, realType *v, realType *W) |
void | tensor_r2 (const realType *R, unsigned mr, unsigned nr, const realType *S, unsigned ms, unsigned ns, const realType *u, realType *v, realType *W) |
void | tensor_c3 (const realType *R, unsigned mr, unsigned nr, const realType *S, unsigned ms, unsigned ns, const realType *T, unsigned mt, unsigned nt, const realType *u, realType *v, realType *W, realType *Z) |
void | tensor_r3 (const realType *R, unsigned mr, unsigned nr, const realType *S, unsigned ms, unsigned ns, const realType *T, unsigned mt, unsigned nt, const realType *u, realType *v, realType *W, realType *Z) |
realType | tensor_i1 (const realType *Jr, unsigned nr, const realType *u) |
realType | tensor_i2 (const realType *Jr, unsigned nr, const realType *Js, unsigned ns, const realType *u, realType *work) |
realType | tensor_i3 (const realType *Jr, unsigned nr, const realType *Js, unsigned ns, const realType *Jt, unsigned nt, const realType *u, realType *work) |
realType | tensor_ig1 (const realType *Jr, const realType *Dr, unsigned nr, const realType *u, realType *g) |
realType | tensor_ig2 (const realType *Jr, const realType *Dr, unsigned nr, const realType *Js, const realType *Ds, unsigned ns, const realType *u, realType *g, realType *work) |
realType | tensor_ig3 (const realType *Jr, const realType *Dr, unsigned nr, const realType *Js, const realType *Ds, unsigned ns, const realType *Jt, const realType *Dt, unsigned nt, const realType *u, realType *g, realType *work) |
Definition at line 132 of file tensor.c.
References moab::sum().
Referenced by run_quality_optimizer(), tensor_i1(), tensor_i2(), tensor_i3(), tensor_ig1(), tensor_ig2(), and tensor_ig3().
static void mxm_cc | ( | const realType * | A, |
unsigned | na, | ||
const realType * | B, | ||
unsigned | nb, | ||
realType * | C, | ||
unsigned | nc | ||
) | [static] |
Definition at line 13 of file tensor.c.
Referenced by tensor_c2(), tensor_c3(), tensor_r2(), and tensor_r3().
static void mxm_cr | ( | const realType * | A, |
unsigned | na, | ||
const realType * | B, | ||
unsigned | nb, | ||
realType * | C, | ||
unsigned | nc | ||
) | [static] |
Definition at line 46 of file tensor.c.
Referenced by tensor_c2(), and tensor_c3().
static void mxm_rc | ( | const realType * | A, |
unsigned | na, | ||
const realType * | B, | ||
unsigned | nb, | ||
realType * | C, | ||
unsigned | nc | ||
) | [static] |
Definition at line 29 of file tensor.c.
Referenced by tensor_r2(), and tensor_r3().
static void mxv_c | ( | realType * | y, |
unsigned | ny, | ||
const realType * | A, | ||
const realType * | x, | ||
unsigned | nx | ||
) | [static] |
Definition at line 89 of file tensor.c.
Referenced by tensor_c1().
static void mxv_r | ( | realType * | y, |
unsigned | ny, | ||
const realType * | A, | ||
const realType * | x, | ||
unsigned | nx | ||
) | [static] |
Definition at line 109 of file tensor.c.
References moab::sum().
Referenced by tensor_i2(), tensor_i3(), tensor_ig2(), tensor_ig3(), and tensor_r1().
Definition at line 255 of file tensor.c.
References inner().
Referenced by opt_edge_hess_2(), opt_edge_hess_3(), opt_edge_intp_2(), and opt_edge_intp_3().
realType tensor_i2 | ( | const realType * | Jr, |
unsigned | nr, | ||
const realType * | Js, | ||
unsigned | ns, | ||
const realType * | u, | ||
realType * | work | ||
) |
Definition at line 261 of file tensor.c.
References inner(), and mxv_r().
Referenced by moab::SpectralQuad::evalFcn(), moab::Element::SpectralQuad::evaluate(), moab::Element::SpectralQuad::evaluate_scalar_field(), findpt_eval_2(), opt_face_hess_3(), and opt_face_intp_3().
realType tensor_i3 | ( | const realType * | Jr, |
unsigned | nr, | ||
const realType * | Js, | ||
unsigned | ns, | ||
const realType * | Jt, | ||
unsigned | nt, | ||
const realType * | u, | ||
realType * | work | ||
) |
Definition at line 273 of file tensor.c.
References inner(), and mxv_r().
Referenced by moab::element_utility::Spectral_hex_map< moab::Matrix3 >::evaluate(), moab::Element::SpectralHex::evaluate(), moab::element_utility::Spectral_hex_map< moab::Matrix3 >::evaluate_scalar_field(), moab::Element::SpectralHex::evaluate_scalar_field(), findpt_eval_3(), and moab::ElemUtil::hex_eval().
realType tensor_ig1 | ( | const realType * | Jr, |
const realType * | Dr, | ||
unsigned | nr, | ||
const realType * | u, | ||
realType * | g | ||
) |
Definition at line 304 of file tensor.c.
References inner().
Referenced by opt_edge_intp_2(), and opt_edge_intp_3().
realType tensor_ig2 | ( | const realType * | Jr, |
const realType * | Dr, | ||
unsigned | nr, | ||
const realType * | Js, | ||
const realType * | Ds, | ||
unsigned | ns, | ||
const realType * | u, | ||
realType * | g, | ||
realType * | work | ||
) |
Definition at line 311 of file tensor.c.
References inner(), and mxv_r().
Referenced by obbox_calc_2(), opt_area_intp_2(), opt_face_hess_3(), and opt_face_intp_3().
realType tensor_ig3 | ( | const realType * | Jr, |
const realType * | Dr, | ||
unsigned | nr, | ||
const realType * | Js, | ||
const realType * | Ds, | ||
unsigned | ns, | ||
const realType * | Jt, | ||
const realType * | Dt, | ||
unsigned | nt, | ||
const realType * | u, | ||
realType * | g, | ||
realType * | work | ||
) |
Definition at line 330 of file tensor.c.
References inner(), and mxv_r().
Referenced by obbox_calc_3(), and opt_vol_intp_3().
{ unsigned nsnt = ns * nt; realType *a = work, *ar = a + nsnt, *b = ar + nsnt, *br = b + ns, *bs = br + ns; mxv_r( a, nsnt, u, Jr, nr ); mxv_r( ar, nsnt, u, Dr, nr ); mxv_r( b, nt, a, Js, ns ); mxv_r( br, nt, ar, Js, ns ); mxv_r( bs, nt, a, Ds, ns ); g[0] = inner( Jt, br, nt ); g[1] = inner( Jt, bs, nt ); g[2] = inner( Dt, b, nt ); return inner( Jt, b, nt ); }