OptFEM2D  0.1
Matlab optimized FEM2D
 All Files Functions Groups Pages
ComputeAreaOpt.m File Reference

Compute areas of triangles mesh. More...

Go to the source code of this file.

Functions

function area = ComputeAreaOpt (q, me)
 Compute areas of triangles mesh.
 

Detailed Description

Compute areas of triangles mesh.

Definition in file ComputeAreaOpt.m.

Function Documentation

function area = ComputeAreaOpt (   q,
  me 
)

Compute areas of triangles mesh.

Parameters
q$2\times\nq$ array, ${\q}(\il,j)$ is the $\il$-th coordinate of the $j$-th vertex, $\il\in\{1,2\}$ and $j\in\{1,\hdots,n_q\}.$ Also noted $\q$.
me$3\times\nme$ int32 array, $\me(\jl,k)$ index of storage, in the array $\q$, of the $\jl$-th vertex of the triangle of index $k$, $\jl\in\{1,2,3\}$ and $k\in\{1,\hdots,\nme\}.$ Also noted $\me$.
Return values
areas$1\times\nme$ array, areas(k) is the area of triangle k.

Definition at line 17 of file ComputeAreaOpt.m.