G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
_expr< E, false > Class Template Reference

Detailed Description

template<typename E>
class gismo::expr::_expr< E, false >

Base class for all expressions.

Public Member Functions

adjugate_expr< E > adj () const
 Returns the adjugate of the expression (for matrix-valued expressions)
 
asdiag_expr< E > asDiag () const
 Returns a diagonal matrix expression of the vector expression.
 
cb_expr< E > cb () const
 Returns the puts the expression to colBlocks.
 
index_t cols () const
 Returns the column-size of the expression.
 
colsum_expr< E > colSum () const
 Returns the colSum of a matrix.
 
const gsFeSpace< Scalar > & colVar () const
 
tr_expr< E, true > cwisetr () const
 Returns the coordinate-wise transpose of the expression.
 
det_expr< E > det () const
 Returns the determinant of the expression.
 
MatExprType eval (const index_t k) const
 Evaluates the expression at evaluation point indexed by k.
 
exp_expr< E > exp () const
 Returns exp(expression)
 
inv_expr< E > const inv () const
 Returns the inverse of the expression (for matrix-valued expressions)
 
bool isScalar () const
 Returns true iff the expression is scalar-valued. More...
 
max_expr< E > max () const
 Returns the rowSum of a matrix.
 
 mult_expr (sqr)() const
 Returns the square root of the expression (component-wise)
 
norm_expr< E > norm () const
 Returns the Euclidean norm of the expression.
 
normalized_expr< E > normalized () const
 Returns the vector normalized to unit length.
 
mult_expr< real_t, ppart_expr
< mult_expr< double, E, false >
>, false > 
npart () const
 Returns the expression's negative part.
 
void parse (gsExprHelper< Scalar > &evList) const
 Parse the expression and discover the list of evaluation sources, also sets the required evaluation flags.
 
ppart_expr< E > ppart () const
 Returns the expression's positive part.
 
void print (std::ostream &os) const
 Prints the expression as a string to os.
 
index_t rows () const
 Returns the row-size of the expression.
 
rowsum_expr< E > rowSum () const
 Returns the rowSum of a matrix.
 
const gsFeSpace< Scalar > & rowVar () const
 
sign_expr< E > sgn (Scalar tolerance=0) const
 Returns the sign of the expression.
 
sqNorm_expr< E > sqNorm () const
 Returns the squared Euclidean norm of the expression.
 
temp_expr< E > temp () const
 Returns an evaluation of the (sub-)expression in temporary memory.
 
tr_expr< E > tr () const
 Returns the transpose of the expression.
 
trace_expr< E > trace () const
 Returns the trace of the expression (for matrix-valued expressions)
 
value_expr< E > val () const
 

Static Public Member Functions

static bool isVector ()
 rowSpan && !colSpan
 

Member Function Documentation

const gsFeSpace<Scalar>& colVar ( ) const
inline

Returns the space that is found on the right-most of the expression

bool isScalar ( ) const
inline

Returns true iff the expression is scalar-valued.

Note
This is a runtime check, for compile-time check use E::ScalarValued
const gsFeSpace<Scalar>& rowVar ( ) const
inline

Returns the space that is found on the left-most of the expression

value_expr<E> val ( ) const
inline

For matrix-valued expressions which are actually 1x1 matrix, returns a scalar valued expression