Flow123d
JS_before_hm-1881-gd692239a6
|
#include <field_values.hh>
Public Types | |
typedef ET | element_type |
typedef internal::ReturnType< NRows, NCols, ET >::return_type | return_type |
typedef internal::InputType< ET >::type | ElementInputType |
typedef Input::Array | AccessType |
Public Member Functions | |
FieldValue_ (return_type &val) | |
const ET * | mem_ptr () const |
void | init_from_input (AccessType rec) |
void | set_n_comp (unsigned int) |
unsigned int | n_cols () const |
unsigned int | n_rows () const |
ET & | operator() (unsigned int i, unsigned int j) |
ET | operator() (unsigned int i, unsigned int j) const |
operator return_type () const | |
void | zeros () |
void | eye () |
void | ones () |
bool | equal_to (const return_type &other) |
void | scale (double scale_coef) |
Static Public Member Functions | |
static std::string | type_name () |
static IT::Array | get_input_type () |
static constexpr bool | is_scalable () |
static const return_type & | from_raw (return_type &val, ET *raw_data) |
static return_type | get_from_array (const Armor::Array< element_type > &arr, uint idx) |
Casts value stored in Armor::Array to return type. More... | |
Static Public Attributes | |
const static int | NRows_ = NRows |
const static int | NCols_ = NCols |
const static int | rank_ = 2 |
Private Attributes | |
return_type & | value_ |
Template for class representing all possible Filed values. It is just common interface to scalar (double, int) values, vector and tensor values with fixed size and vector/tensor values with variable size.
ET is type of elements, n_cols and n_rows gives fixed dimensions of the tensor value (nx1 is vector, 1x1 is scalar, 0x1 is variable size vector, 0x0 is variable size tensor (not implemented yet) )
Definition at line 248 of file field_values.hh.
typedef Input::Array FieldValue_< NRows, NCols, ET >::AccessType |
Definition at line 253 of file field_values.hh.
typedef ET FieldValue_< NRows, NCols, ET >::element_type |
Definition at line 250 of file field_values.hh.
typedef internal::InputType<ET>::type FieldValue_< NRows, NCols, ET >::ElementInputType |
Definition at line 252 of file field_values.hh.
typedef internal::ReturnType<NRows, NCols, ET>::return_type FieldValue_< NRows, NCols, ET >::return_type |
Definition at line 251 of file field_values.hh.
|
inline |
Definition at line 274 of file field_values.hh.
|
inline |
Definition at line 314 of file field_values.hh.
|
inline |
Definition at line 306 of file field_values.hh.
|
inlinestatic |
Definition at line 275 of file field_values.hh.
|
inlinestatic |
Casts value stored in Armor::Array to return type.
Definition at line 281 of file field_values.hh.
|
inlinestatic |
Definition at line 259 of file field_values.hh.
|
inline |
Definition at line 285 of file field_values.hh.
|
inlinestaticconstexpr |
|
inline |
Definition at line 276 of file field_values.hh.
|
inline |
|
inline |
|
inline |
Definition at line 310 of file field_values.hh.
|
inline |
Definition at line 298 of file field_values.hh.
|
inline |
Definition at line 294 of file field_values.hh.
|
inline |
Definition at line 296 of file field_values.hh.
|
inline |
Definition at line 318 of file field_values.hh.
|
inline |
Definition at line 289 of file field_values.hh.
|
inlinestatic |
Definition at line 258 of file field_values.hh.
|
inline |
Definition at line 302 of file field_values.hh.
|
static |
Definition at line 255 of file field_values.hh.
|
static |
Definition at line 254 of file field_values.hh.
|
static |
Definition at line 256 of file field_values.hh.
|
private |
Definition at line 326 of file field_values.hh.