gfmatrix Struct Reference

#include <matrix.h>

List of all members.

Public Member Functions

void evaluate (vector &p, char **namevar, matrix &res)
 evaluates individual matrix components and store them into the real matrix res
void evaluate_t (vector &p, char **namevar, matrix &res)
 evaluates individual matrix components and store them in the transposed form to the real matrix res
 gfmatrix (long m, long n)
 default constructor
 gfmatrix ()
gfunctoperator() (long i, long j) const
 ~gfmatrix ()
 destructor

Public Attributes

gfuncta
 pointer to onedimensional array with matrix elements stored in the rows
long m
 number of rows
long n
 number of columns

Detailed Description

This file declares struct gfmatrix, which implements matrix with elements type of gfunct. There are also declarations of the functions for the matrix and vector computing

Definition at line 125 of file matrix.h.


Constructor & Destructor Documentation

gfmatrix (  )  [inline]

Definition at line 134 of file matrix.h.

References a, m, and n.

gfmatrix ( long  m,
long  n 
)

default constructor

allocating constructor

The constructor allocates memory form the heap to the member array a.

Parameters:
m is the number of rows
n is the number of columns

created 10.12.2014, Tomas Koudelka, koudelka@cml.fsv.cvut.cz

Definition at line 185 of file matrix.cpp.

References a, m, n, and print_err().

~gfmatrix (  ) 

destructor

The destructor deallocates the memory occupied by the member array a.

created 10.12.2014, Tomas Koudelka, koudelka@cml.fsv.cvut.cz

Definition at line 203 of file matrix.cpp.

References a.


Member Function Documentation

void evaluate ( vector p,
char **  namevar,
matrix res 
)

evaluates individual matrix components and store them into the real matrix res

The function evaluates individual matrix components and store them in the real matrix res. Actual values of variables defined in the componet general functions are given by vector p and string with names of variables are given by namevar.

Parameters:
p - vector with actual values of variables which the matrix components depends on
namevar - array of pointers to strings with names of variables whose values are defined by p
res - matrix with resulting values of components

Created 10.12.2014, Tomas Koudelka, koudelka@cml.fsv.cvut.cz

Definition at line 225 of file matrix.cpp.

References a, and gfunct::getval().

Referenced by elastortomat::give_transf_mat(), and elastortomat::matstiff().

void evaluate_t ( vector p,
char **  namevar,
matrix res 
)

evaluates individual matrix components and store them in the transposed form to the real matrix res

The function evaluates individual matrix components and store them in transposed form in the real matrix res. Actual values of variables defined in the componet general functions are given by vector p and string with names of variables are given by namevar.

Parameters:
p - vector with actual values of variables which the matrix components depends on
namevar - array of pointers to strings with names of variables whose values are defined by p
res - matrix with resulting values of components

Created 10.12.2014, Tomas Koudelka, koudelka@cml.fsv.cvut.cz

Definition at line 250 of file matrix.cpp.

References a, and gfunct::getval().

Referenced by elemoutm::print_stra(), nodeoutm::print_stra(), elemoutm::print_stre(), nodeoutm::print_stre(), write_gid_elem_type_scalar(), write_gid_elem_type_tensor(), write_gid_nodscalar(), and write_gid_nodtensor().

gfunct& operator() ( long  i,
long  j 
) const [inline]

The operator enables access to the elements of the member array a.

Parameters:
i is the index of row
j is the index of column

created 29.5.2000, Tomas Koudelka, koudelka@cml.fsv.cvut.cz modified 9.5.2001, Tomas Koudelka, koudelka@cml.fsv.cvut.cz

Definition at line 146 of file matrix.h.

References a, m, n, and print_err().


Member Data Documentation

pointer to onedimensional array with matrix elements stored in the rows

Definition at line 132 of file matrix.h.

Referenced by allocim(), allocm(), evaluate(), evaluate_t(), gfmatrix(), operator()(), and ~gfmatrix().

long m

number of rows

Definition at line 130 of file matrix.h.

Referenced by allocim(), allocm(), gfmatrix(), operator()(), printm(), outdriverm::read(), and readm().

long n

number of columns

Definition at line 131 of file matrix.h.

Referenced by allocim(), allocm(), gfmatrix(), operator()(), printm(), outdriverm::read(), and readm().


The documentation for this struct was generated from the following files:

Generated by  doxygen 1.6.2