SIFEL/GEFEL/bmatrix.h File Reference

#include <assert.h>
#include "iotools.h"
#include "matrix.h"

Go to the source code of this file.

Classes

struct  bmatrix

Functions

long addm (const bmatrix &a, const bmatrix &b, bmatrix &c)
 adds 2 matrices
long allocm (long m, long n, bmatrix &mat)
 allocates matrix
long cmulm (double c, bmatrix &a)
 multiplies matrix A with real constant c
long copym (const bmatrix &src, bmatrix &dest)
 copies contents of matrix
long destrm (bmatrix &mat)
 deallocates matrix
long fillcol (double c, long i, matrix &bmat)
long fillm (double c, bmatrix &mat)
 fills contents of matrix with given value
long fillrow (double c, long i, matrix &bmat)
long mxm (const bmatrix &a, const bmatrix &b, bmatrix &c)
 multiplies two matrices A.B=C
long subm (const bmatrix &a, const bmatrix &b, bmatrix &c)
 substracts 2 matrices
void tensprd (vector &a, vector &b, matrix &c)
 performs tensor product of two vectors

Function Documentation

long addm ( const bmatrix a,
const bmatrix b,
bmatrix c 
)

adds 2 matrices

The function adds bmatrix given by a to bmatrix given by b, the result is stored in c.

Parameters:
a is the structure of the first added bmatrix
b is the structure of the second added bmatrix
c is the structure of the result bmatrix

Requests: a, b and c have to be same dimensions, c has to have allocated memory array for elements which is enough large to hold contents of the result.

Return values:
0,: on succes.
1,: in case incompatibility sizes of a, b and c matrices.

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 421 of file bmatrix.cpp.

References bmatrix::give_locid(), bmatrix::give_totid(), bmatrix::m, bmatrix::n, print_err(), bmatrix::tm, and bmatrix::tn.

Referenced by bdbjac(), shefplast::deryieldfsigma(), boermat::deryieldfsigma(), glasgowcoup::material_matrix_td(), glasgownew::material_matrix_td(), camclaycoup::matstiff(), layplate::matstiff(), mohrcoulomb::mc_msurf_cp(), mechmat::mult_surf_cutting_plane(), hissplas::nlstresses(), anisodamrot::nlstresses(), nnjac(), paral_transport_homogenization(), least_square::polynom_coefficients_ae(), patch_averaging::polynom_coefficients_ae(), least_square::polynom_coefficients_inv_ae(), planeelemrotlt::stiffness_matrix(), planeelemrotlq::stiffness_matrix(), shefplast::stress_return(), shefplast::tangentstiff(), and transport_homogenization().

long allocm ( long  m,
long  n,
bmatrix mat 
)

allocates matrix

The function allocates memory from heap to the mat's member array a.

Parameters:
m is the number of rows
n is the number of columns
mat is the structure for allocated matrix

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 300 of file bmatrix.cpp.

References bmatrix::a, bmatrix::m, memset(), bmatrix::n, and print_err().

Referenced by soilplatetr::allip_stresses(), soilplateq::allip_stresses(), assemble_average_c_matrix(), assemble_average_d_matrix(), assemble_conductivity_matrix(), lplate::assemble_constr_dm(), assemble_gradients_contrib(), assemble_init(), assemble_init_coup_upper(), assemble_l_matrix(), bdbjac(), capacity_matrix(), z2_smoothing::compute_ainv(), soilplateq::compute_nonloc_nlstress(), stochdrivert::compute_nprunknowns(), z2_smoothing::compute_ntn_sky(), lintett::conductivity_matrix(), linhext::conductivity_matrix(), linbart::conductivity_matrix(), conductivity_matrix(), creep_incrtotstresses(), creep_initmaterialmodel(), creep_nlstressesincr(), creep_updateval(), creepb::creepb(), creepbs::creepbs(), scaldamcc::damfuncpar(), scaldam::damfuncpar(), glasgowdam::damfuncpar(), glasgmech::damfuncpar(), scaldamcc::damfunction(), linhex::eigstrain_forces(), elastortomat::elastortomat(), planeelemqt::elchar(), planeelemqq::elchar(), planeelemlt::elchar(), planeelemlq::elchar(), lintet::elchar(), soilplatetr::elem_integration(), soilplateq::elem_integration(), q4plate::elem_integration(), planeelemrotlt::elem_integration(), planeelemrotlq::elem_integration(), planeelemqt::elem_integration(), planeelemlq::elem_integration(), dstelem::elem_integration(), dktelem::elem_integration(), cctelem::elem_integration(), barelq3d::elem_integration(), barelq2d::elem_integration(), ArgyrisTriangle::elem_integration(), planeelemsubqt::elem_stresses(), planeelemrotlt::elem_stresses(), planeelemqt::elem_stresses(), linhex::elem_stresses(), axisymqq::elem_stresses(), axisymlq::elem_stresses(), findout_parentel_nod(), first_order_matrix(), planeelemqt::give_sig_roof(), linhex::gl_internal_forces(), planeelemlq::gl_ip_strains(), linhexrot::gl_ip_strains(), linhex::gl_ip_strains(), linhex::gl_mainip_strains(), planeelemlq::gl_stiffness_matrix(), linhexrot::gl_stiffness_matrix(), linhex::gl_stiffness_matrix(), shefplast::hardening(), HomogData::HerveZaoui(), homogmat::homogmat(), mechbclc::inicipval(), linhex::internal_forces(), axisymqq::internal_forces(), axisymlq::internal_forces(), linhex::internal_forces2(), quadtet::ip_strains(), quadhex::ip_strains(), q4plate::ip_strains(), planeelemrotlt::ip_strains(), planeelemrotlq::ip_strains(), planeelemqq::ip_strains(), lintet::ip_strains(), dstelem::ip_strains(), dktelem::ip_strains(), axisymlq::ip_strains(), lgmatrixtransfblock(), soilplateq::local_values(), quadrilatc::mainip_strains(), barelc::mainip_strains(), soilplatetr::mainip_strains(), soilplateq::mainip_strains(), planeelemsubqt::mainip_strains(), planeelemrotlt::mainip_strains(), planeelemqt::mainip_strains(), linhex::mainip_strains(), barelq3d::mainip_strains(), barelq2d::mainip_strains(), axisymqq::mainip_strains(), axisymlq::mainip_strains(), planeelemsubqt::mainip_stresses(), planeelemrotlt::mainip_stresses(), planeelemqt::mainip_stresses(), linhex::mainip_stresses(), axisymqq::mainip_stresses(), axisymlq::mainip_stresses(), mohrcoulomb::mc_msurf_cp(), mechmat::mult_surf_cutting_plane(), nnjac(), axisymqq::nod_strains(), axisymlq::nod_strains(), quadtet::nod_strains_comp(), quadhex::nod_strains_comp(), planeelemrotlq::nod_strains_comp(), planeelemlt::nod_strains_comp(), planeelemlq::nod_strains_comp(), linhexrot::nod_strains_comp(), linhex::nod_strains_comp(), barelq3d::nod_strains_comp(), barelq2d::nod_strains_comp(), axisymqq::nod_strains_comp(), axisymlt::nod_strains_comp(), axisymqq::nod_strains_old(), planeelemsubqt::nod_stresses(), planeelemrotlt::nod_stresses(), planeelemqt::nod_stresses(), linhex::nod_stresses(), axisymqq::nod_stresses(), axisymlq::nod_stresses(), axisymqq::nod_stresses_comp(), axisymqq::nod_stresses_old(), quadtet::node_forces_surf(), lintet::node_forces_surf(), linhex::node_forces_surf(), linhex::nonloc_internal_forces(), normmat::normmat(), shefplast::numdiff_dfdsdkc(), shefplast::numdiff_dhdsc(), paral_transport_homogenization(), elemoutm::print_stra(), nodeoutm::print_stra(), elemoutm::print_stre(), nodeoutm::print_stre(), stochdriver::read(), layplate::read(), stochdrivert::readtable(), stochdriver::readtable(), linbart::res_capacity_matrix(), linbart::res_conductivity_matrix(), linbart::res_internal_fluxes(), shelltr::res_ip_strains(), shellq::res_ip_strains(), quadtet::res_ip_strains(), quadhex::res_ip_strains(), q4plate::res_ip_strains(), planeelemrotlt::res_ip_strains(), planeelemrotlq::res_ip_strains(), planeelemlt::res_ip_strains(), planeelemlq::res_ip_strains(), lintetrot::res_ip_strains(), linhexrot::res_ip_strains(), linhex::res_ip_strains(), dstelem::res_ip_strains(), dktelem::res_ip_strains(), cctelem::res_ip_strains(), ArgyrisTriangle::res_ip_strains(), quadrilatc::res_lower_cap_coup_matrix(), hexahedc::res_lower_cap_coup_matrix(), quadrilatc::res_lower_cond_coup_matrix(), hexahedc::res_lower_cond_coup_matrix(), quadrilatc::res_mainip_strains(), barelc::res_mainip_strains(), soilplatetr::res_mainip_strains(), soilplateq::res_mainip_strains(), plquadcontact::res_mainip_strains(), planeelemrotlt::res_mainip_strains(), planeelemqt::res_mainip_strains(), beam2dspec::res_mainip_strains(), barelq3d::res_mainip_strains(), barelq2d::res_mainip_strains(), axisymlt::res_mainip_strains(), axisymlq::res_mainip_strains(), shelltr::res_stiffness_matrix(), shellq::res_stiffness_matrix(), quadrilatc::res_upper_cap_coup_matrix(), hexahedc::res_upper_cap_coup_matrix(), quadrilatc::res_upper_cond_coup_matrix(), hexahedc::res_upper_cond_coup_matrix(), shefplast::shefplast(), adaptivityt::spr(), adaptivity::spr(), soilplatetr::stiffness_matrix(), soilplateq::stiffness_matrix(), quadwedge::stiffness_matrix(), q4plate::stiffness_matrix(), planeelemsubqt::stiffness_matrix(), planeelemrotlt::stiffness_matrix(), planeelemrotlq::stiffness_matrix(), planeelemqt::stiffness_matrix(), linwedge::stiffness_matrix(), lintetrot::stiffness_matrix(), linhex::stiffness_matrix(), dstelem::stiffness_matrix(), cctelem::stiffness_matrix(), barelq2d::stiffness_matrix(), axisymlq::stiffness_matrix(), ArgyrisTriangle::stiffness_matrix(), argyrisplate::stiffness_matrix(), axisymlt::stiffness_matrix_block(), axisymlq::stiffness_matrix_blocks(), shefplast::stress_return(), shefplast::tangentstiff(), linhex::temp_forces(), axisymqq::temp_forces(), axisymlq::temp_forces(), anisodam::tmatstiff(), transport_homogenization(), barelc::volume_rhs_vector(), loadel::volumeload(), write_gid_elem_type_scalar(), write_gid_elem_type_tensor(), write_gid_nodscalar(), write_gid_nodtensor(), write_nforces(), and zero_order_matrix().

long cmulm ( double  c,
bmatrix a 
)

multiplies matrix A with real constant c

The function multiplies matrix given by a with constant c, the result is stored in a.

Parameters:
c is the real number
a is the structure of the bmatrix, from which is multiplied
Returns:
always zero

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 569 of file bmatrix.cpp.

References bmatrix::m, and bmatrix::n.

Referenced by assemble_average_c_matrix(), assemble_average_d_matrix(), nonlocplast::average(), lintet::bd_matrix(), bdbjac(), glasgmech::compute_lits(), creep_matstiff(), lintet::dd_matrix(), shefplast::derkhatds(), drprag::derpotsigma(), boermat::derpotsigma(), shefplast::derqdsigma(), shefplast::deryieldfsigma(), drprag::deryieldfsigma(), camclaycoup::deryieldfsigma(), camclay::deryieldfsigma(), boermat::deryieldfsigma(), doubdp::deryieldfsigma(), scaldamcc::elmatstiff(), scaldam::elmatstiff(), ortodamrot::elmatstiff(), ortodam::elmatstiff(), anisodamrot::elmatstiff(), anisodam::elmatstiff(), glasgownew::free_thermal_strains(), plquadcontact::geom_matrix(), trlineart::l_matrix(), quadlineart::l_matrix(), lintett::l_matrix(), linhext::l_matrix(), trlineart::l_t_matrix(), quadlineart::l_t_matrix(), lintett::l_t_matrix(), linhext::l_t_matrix(), glasgowcoup::material_matrix_fts(), glasgownew::material_matrix_fts(), glasgowcoup::material_matrix_td(), glasgownew::material_matrix_td(), splas1d::matstiff(), scaldamcc::matstiff(), scaldam::matstiff(), glasgowdam::matstiff(), glasgmech::matstiff(), damplast::matstiff(), creepbs::matstiff(), creepbbeam::matstiff(), creepb::matstiff(), camclaycoup::matstiff(), camclay::matstiff(), layplate::matstiff(), mechmat::newton_stress_return(), mechmat::newton_stress_return_2(), hissplas::nlstresses(), glasgmech::nlstresses(), geoelastmat::nlstresses(), anisodamrot::nlstresses(), nnjac(), normedtensor(), shefplast::numdiff_dfdsdkc(), shefplast::numdiff_dfdsdsc(), paral_transport_homogenization(), ortodamrot::pelmatstiff(), ortodam::pelmatstiff(), mohrcoulomb::pelmatstiff(), planeelemrotlt::stiffness_matrix(), planeelemrotlq::stiffness_matrix(), shefplast::stress_return(), shefplast::tangentstiff(), mohrcoulomb::tangentstiff(), j2flow2::tangentstiff(), j2flow::tangentstiff(), drprag::tangentstiff(), chen::tangentstiff(), drprag2::tangentstiff(), and transport_homogenization().

long copym ( const bmatrix src,
bmatrix dest 
)

copies contents of matrix

The function copies matrix given by src to dest.

Parameters:
src is the structure of source bmatrix to copy
dest is the structure of destination bmatrix to which the contents of src will be copied

Requests: dest has to be setuped dimensions and allocated memory array for elements which is enough large to hold all contents of the matrix src.

Return values:
0,: on succes
1,: in case incompatibility sizes of the src and dest matrices

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 335 of file bmatrix.cpp.

References bmatrix::col, bmatrix::m, ivector::n, bmatrix::n, print_err(), and bmatrix::row.

Referenced by condense_matrix(), boermat::deryieldfsigma(), deviator(), f_tensor(), gentensor_matrix(), HomogData::HerveZaoui(), elastortomat::loc_matstiff(), matrix_tensor4(), hissplas::nlstresses(), normedtensor(), mechtop::searching_hanging_nodes(), stiffness_matrix(), shefplast::tangentstiff(), mohrcoulomb::tangentstiff(), j2flow2::tangentstiff(), j2flow::tangentstiff(), drprag::tangentstiff(), chen::tangentstiff(), drprag2::tangentstiff(), tensor4_matrix(), and anisodam::tmatstiff().

long destrm ( bmatrix mat  ) 

deallocates matrix

The function deallocates memory occupied by mat's member array a.

Parameters:
mat is the structure for the deallocated bmatrix
Returns:
always zero

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 389 of file bmatrix.cpp.

References bmatrix::a, bmatrix::m, and bmatrix::n.

Referenced by soilplatetr::allip_stresses(), soilplateq::allip_stresses(), assemble_average_c_matrix(), assemble_average_d_matrix(), assemble_conductivity_matrix(), lplate::assemble_constr_dm(), assemble_gradients_contrib(), assemble_init(), assemble_init_coup_upper(), assemble_l_matrix(), bdbjac(), capacity_matrix(), z2_smoothing::compute_ainv(), soilplateq::compute_nonloc_nlstress(), z2_smoothing::compute_ntn_sky(), least_square::compute_patches_nod2sp(), lintett::conductivity_matrix(), linbart::conductivity_matrix(), conductivity_matrix(), creep_incrtotstresses(), creep_initmaterialmodel(), creep_nlstressesincr(), creep_updateval(), linhex::eigstrain_forces(), soilplatetr::elem_integration(), soilplateq::elem_integration(), q4plate::elem_integration(), planeelemrotlt::elem_integration(), planeelemrotlq::elem_integration(), planeelemqt::elem_integration(), planeelemlq::elem_integration(), dstelem::elem_integration(), dktelem::elem_integration(), cctelem::elem_integration(), barelq3d::elem_integration(), barelq2d::elem_integration(), ArgyrisTriangle::elem_integration(), planeelemsubqt::elem_stresses(), planeelemrotlt::elem_stresses(), planeelemqt::elem_stresses(), linhex::elem_stresses(), axisymqq::elem_stresses(), axisymlq::elem_stresses(), first_order_matrix(), transmat::flux_contributions(), linhex::gl_internal_forces(), planeelemlq::gl_ip_strains(), linhexrot::gl_ip_strains(), linhex::gl_ip_strains(), linhex::gl_mainip_strains(), planeelemlq::gl_stiffness_matrix(), linhexrot::gl_stiffness_matrix(), linhex::gl_stiffness_matrix(), shefplast::hardening(), HomogData::HerveZaoui(), mechbclc::inicipval(), linhex::internal_forces(), axisymqq::internal_forces(), axisymlq::internal_forces(), linhex::internal_forces2(), quadtet::ip_strains(), quadhex::ip_strains(), q4plate::ip_strains(), planeelemrotlt::ip_strains(), planeelemrotlq::ip_strains(), planeelemqq::ip_strains(), lintet::ip_strains(), dstelem::ip_strains(), dktelem::ip_strains(), axisymlq::ip_strains(), lgmatrixtransfblock(), soilplateq::local_values(), quadrilatc::mainip_strains(), barelc::mainip_strains(), soilplatetr::mainip_strains(), soilplateq::mainip_strains(), planeelemsubqt::mainip_strains(), planeelemrotlt::mainip_strains(), planeelemqt::mainip_strains(), linhex::mainip_strains(), barelq3d::mainip_strains(), barelq2d::mainip_strains(), axisymqq::mainip_strains(), axisymlq::mainip_strains(), planeelemsubqt::mainip_stresses(), planeelemrotlt::mainip_stresses(), planeelemqt::mainip_stresses(), linhex::mainip_stresses(), axisymqq::mainip_stresses(), axisymlq::mainip_stresses(), medc1::matcond_u(), multiphc::matcond_u(), glasgowmatc::matcond_u(), mohrcoulomb::mc_msurf_cp(), mechmat::mult_surf_cutting_plane(), nnjac(), axisymqq::nod_strains(), axisymlq::nod_strains(), quadtet::nod_strains_comp(), quadhex::nod_strains_comp(), planeelemrotlq::nod_strains_comp(), planeelemlt::nod_strains_comp(), planeelemlq::nod_strains_comp(), linhexrot::nod_strains_comp(), linhex::nod_strains_comp(), barelq3d::nod_strains_comp(), axisymqq::nod_strains_comp(), axisymlt::nod_strains_comp(), axisymqq::nod_strains_old(), planeelemsubqt::nod_stresses(), planeelemrotlt::nod_stresses(), planeelemqt::nod_stresses(), linhex::nod_stresses(), axisymqq::nod_stresses(), axisymlq::nod_stresses(), axisymqq::nod_stresses_comp(), axisymqq::nod_stresses_old(), linhex::nonloc_internal_forces(), shefplast::numdiff_dfdsdkc(), shefplast::numdiff_dhdsc(), paral_transport_homogenization(), linbart::res_capacity_matrix(), linbart::res_conductivity_matrix(), linbart::res_internal_fluxes(), shelltr::res_ip_strains(), shellq::res_ip_strains(), quadtet::res_ip_strains(), quadhex::res_ip_strains(), q4plate::res_ip_strains(), planeelemrotlt::res_ip_strains(), planeelemrotlq::res_ip_strains(), planeelemlt::res_ip_strains(), planeelemlq::res_ip_strains(), lintetrot::res_ip_strains(), linhexrot::res_ip_strains(), linhex::res_ip_strains(), dstelem::res_ip_strains(), dktelem::res_ip_strains(), cctelem::res_ip_strains(), ArgyrisTriangle::res_ip_strains(), quadrilatc::res_lower_cap_coup_matrix(), hexahedc::res_lower_cap_coup_matrix(), quadrilatc::res_lower_cond_coup_matrix(), hexahedc::res_lower_cond_coup_matrix(), quadrilatc::res_mainip_strains(), barelc::res_mainip_strains(), soilplatetr::res_mainip_strains(), soilplateq::res_mainip_strains(), plquadcontact::res_mainip_strains(), planeelemrotlt::res_mainip_strains(), planeelemqt::res_mainip_strains(), beam2dspec::res_mainip_strains(), barelq3d::res_mainip_strains(), barelq2d::res_mainip_strains(), axisymlt::res_mainip_strains(), axisymlq::res_mainip_strains(), shelltr::res_stiffness_matrix(), shellq::res_stiffness_matrix(), quadrilatc::res_upper_cap_coup_matrix(), hexahedc::res_upper_cap_coup_matrix(), quadrilatc::res_upper_cond_coup_matrix(), hexahedc::res_upper_cond_coup_matrix(), medc1::rhs_u(), multiphc::rhs_u1(), glasgowmatc::rhs_u1(), soilplatetr::stiffness_matrix(), soilplateq::stiffness_matrix(), quadwedge::stiffness_matrix(), q4plate::stiffness_matrix(), planeelemsubqt::stiffness_matrix(), planeelemrotlt::stiffness_matrix(), planeelemrotlq::stiffness_matrix(), planeelemqt::stiffness_matrix(), linwedge::stiffness_matrix(), lintetrot::stiffness_matrix(), linhex::stiffness_matrix(), dstelem::stiffness_matrix(), cctelem::stiffness_matrix(), axisymlq::stiffness_matrix(), ArgyrisTriangle::stiffness_matrix(), argyrisplate::stiffness_matrix(), axisymlt::stiffness_matrix_block(), axisymlq::stiffness_matrix_blocks(), shefplast::stress_return(), shefplast::tangentstiff(), linhex::temp_forces(), axisymqq::temp_forces(), axisymlq::temp_forces(), transfvalues_nod(), transport_homogenization(), barelc::volume_rhs_vector(), loadel::volumeload(), write_nforces(), zero_order_matrix(), and homogmat::~homogmat().

long fillcol ( double  c,
long  i,
matrix mat 
)

The function fills mat's column i with the constant c.

Parameters:
c is constant, which will be used for filling entire matrix
i is index of given column
mat is the structure for the allocated matrix
Returns:
always zero

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

Definition at line 529 of file matrix-new.cpp.

Referenced by mohrcoulomb::cutting_plane(), and mohrcoulomb::mc_msurf_cp().

long fillm ( double  c,
bmatrix mat 
)

fills contents of matrix with given value

The function fills memory of mat's member array a with constant c.

Parameters:
c is constant, which will be used for filling entire matrix
mat is the structure for the allocated bmatrix
Returns:
always zero

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

Definition at line 366 of file bmatrix.cpp.

References bmatrix::m, and bmatrix::n.

Referenced by planeelemrotlt::addgeommat(), planeelemrotlq::addgeommat(), arclengthrv(), lplate::assemble_constr_dm(), soilplateq::atd_matrix(), q4plate::atd_matrix(), lintet::bd_matrix(), soilbeam::beam_transf_matrix(), beamgen3d::beam_transf_matrix(), beamel3d::beam_transf_matrix(), beamel2d::beam_transf_matrix(), beam2dspec::beam_transf_matrix(), trlineart::bf_matrix(), trlinaxisym::bf_matrix(), quadquadrilattax::bf_matrix(), quadquadrilatt::bf_matrix(), quadlineart::bf_matrix(), quadlinaxisym::bf_matrix(), quadhext::bf_matrix(), quadbartax::bf_matrix(), quadbart::bf_matrix(), lintett::bf_matrix(), linhext::bf_matrix(), linbartax::bf_matrix(), linbart::bf_matrix(), quadwedge::bf_matrix(), quadtet::bf_matrix(), quadhex::bf_matrix(), planeelemsubqt::bf_matrix(), planeelemrotlt::bf_matrix(), planeelemrotlq::bf_matrix(), planeelemqt::bf_matrix(), planeelemqq::bf_matrix(), planeelemlt::bf_matrix(), planeelemlq::bf_matrix(), linwedge::bf_matrix(), lintetrot::bf_matrix(), lintet::bf_matrix(), linhexrot::bf_matrix(), linhex::bf_matrix(), cctelem::bf_matrix(), beamel2d::bf_matrix(), axisymqq::bf_matrix(), axisymlt::bf_matrix(), axisymlq::bf_matrix(), beamel3d::bf_matrix_transl(), trlineart::boundary_flux(), trlinaxisym::boundary_flux(), quadquadrilattax::boundary_flux(), quadquadrilatt::boundary_flux(), quadlineart::boundary_flux(), quadlinaxisym::boundary_flux(), quadhext::boundary_flux(), quadbartax::boundary_flux(), quadbart::boundary_flux(), lintett::boundary_flux(), linhext::boundary_flux(), linbartax::boundary_flux(), linbart::boundary_flux(), trlineart::capacity_matrix(), trlinaxisym::capacity_matrix(), quadquadrilattax::capacity_matrix(), quadquadrilatt::capacity_matrix(), quadlineart::capacity_matrix(), quadlinaxisym::capacity_matrix(), quadhext::capacity_matrix(), quadbartax::capacity_matrix(), quadbart::capacity_matrix(), lintett::capacity_matrix(), linhext::capacity_matrix(), linbartax::capacity_matrix(), linbart::capacity_matrix(), beamgen3d::ck_matrix(), glasgmech::compute_lits(), glasgowdam::compute_thermdilat(), glasgmech::compute_thermdilat(), trlineart::conductivity_matrix(), trlinaxisym::conductivity_matrix(), quadquadrilattax::conductivity_matrix(), quadquadrilatt::conductivity_matrix(), quadlineart::conductivity_matrix(), quadlinaxisym::conductivity_matrix(), quadhext::conductivity_matrix(), quadbartax::conductivity_matrix(), quadbart::conductivity_matrix(), lintett::conductivity_matrix(), linhext::conductivity_matrix(), linbartax::conductivity_matrix(), linbart::conductivity_matrix(), constr_matrix(), trlineart::convection_vector(), trlinaxisym::convection_vector(), quadquadrilattax::convection_vector(), quadquadrilatt::convection_vector(), quadlineart::convection_vector(), quadlinaxisym::convection_vector(), quadhext::convection_vector(), quadbartax::convection_vector(), quadbart::convection_vector(), lintett::convection_vector(), linhext::convection_vector(), linbartax::convection_vector(), linbart::convection_vector(), creep_incrtotstresses(), creep_initmaterialmodel(), creep_nlstressesincr(), creep_updateval(), beamel2d::dbf_matrix(), lintet::dd_matrix(), camclaycoup::dderyieldfsigma(), camclay::dderyieldfsigma(), glasgmech::depseqdepsel(), drprag::derpotsigma(), j2flow2::deryielddsigmadsigma(), chen::deryieldfdsigma(), chen::deryieldfdsigmadq(), chen::deryieldfdsigmadsigma(), drprag::deryieldfsigma(), boermat::deryieldfsigma(), splas1d::dfdsigmadq(), splas1d::dfdsigmadsigma(), camclay::dhardfdq(), hardsoft::dhdqpar(), chen::dhdqpar(), hardsoft::dhdsigma(), chen::dhdsigma(), q4plate::dmatblock(), planeelemsubqt::dmatblock(), planeelemrotlt::dmatblock(), planeelemrotlq::dmatblock(), planeelemqt::dmatblock(), planeelemlq::dmatblock(), linhex::dmatblock(), dstelem::dmatblock(), cctelem::dmatblock(), axisymqq::dmatblock(), axisymlt::dmatblock(), axisymlq::dmatblock(), quadrilatc::dmatblockcol(), axiquadc::dmatblockcol(), quadrilatc::dmatblockrow(), axiquadc::dmatblockrow(), dpdir_da(), camclay::dqdsigma(), axisymlt::edge_integral(), axisymlt::edgeload(), axisymlq::edgeload(), f_tensor(), garclength(), gentensor_matrix(), quadwedge::geom_matrix(), quadtet::geom_matrix(), quadhex::geom_matrix(), plquadcontact::geom_matrix(), planeelemsubqt::geom_matrix(), planeelemrotlt::geom_matrix(), planeelemrotlq::geom_matrix(), planeelemqt::geom_matrix(), planeelemqq::geom_matrix(), planeelemlt::geom_matrix(), planeelemlq::geom_matrix(), linwedge::geom_matrix(), linhexrot::geom_matrix(), linhex::geom_matrix(), cctelem::geom_matrix(), beamgen3d::geom_matrix(), beamel3d::geom_matrix(), beamel2d::geom_matrix(), barelq3d::geom_matrix(), barelq2d::geom_matrix(), axisymqq::geom_matrix(), axisymlt::geom_matrix(), axisymlq::geom_matrix(), argyrisplate::geom_matrix(), planeelemsubqt::geom_matrix_block(), planeelemrotlt::geom_matrix_block(), planeelemrotlq::geom_matrix_block(), planeelemqt::geom_matrix_block(), planeelemlq::geom_matrix_block(), linhex::geom_matrix_block(), cctelem::geom_matrix_block(), axisymqq::geom_matrix_block(), axisymlt::geom_matrix_block(), axisymlq::geom_matrix_block(), linhexrot::geom_matrix_shear(), barelq3d::give_glob_loc_tmat(), barelq2d::give_glob_loc_tmat(), barelq3d::give_loc_glob_tmat(), barelq2d::give_loc_glob_tmat(), drprag2::giveIdev(), planeelemlq::gl_stiffness_matrix(), linhexrot::gl_stiffness_matrix(), linhex::gl_stiffness_matrix(), gnewton_raphson(), gnewton_raphson_one_step(), planeelemlq::gngeom_matrix(), linhexrot::gngeom_matrix(), linhex::gngeom_matrix(), planeelemlq::gnl_stiffness_matrix(), linhexrot::gnl_stiffness_matrix(), linhex::gnl_stiffness_matrix(), trlineart::grad_matrix(), trlinaxisym::grad_matrix(), quadquadrilattax::grad_matrix(), quadquadrilatt::grad_matrix(), quadlineart::grad_matrix(), quadlinaxisym::grad_matrix(), quadhext::grad_matrix(), lintett::grad_matrix(), linhext::grad_matrix(), mechbclc::inicipval(), q4plate::initstr_matrix(), beamel3d::initstr_matrix(), beamel2d::initstr_matrix(), beamel2d::initstr_matrix_expl(), beamgen3d::internal_forces(), beamel3d::internal_forces(), beamgen3d::internal_forces1(), trlineart::l_matrix(), quadlineart::l_matrix(), lintett::l_matrix(), linhext::l_matrix(), trlineart::l_t_matrix(), quadlineart::l_t_matrix(), lintett::l_t_matrix(), linhext::l_t_matrix(), quadtet::load_matrix(), quadhex::load_matrix(), q4plate::load_matrix(), planeelemsubqt::load_matrix(), planeelemrotlt::load_matrix(), planeelemrotlq::load_matrix(), planeelemqt::load_matrix(), planeelemqq::load_matrix(), planeelemlt::load_matrix(), planeelemlq::load_matrix(), lintetrot::load_matrix(), lintet::load_matrix(), linhexrot::load_matrix(), linhex::load_matrix(), cctelem::load_matrix(), beamgen3d::load_matrix(), beamel3d::load_matrix(), barel2d::load_matrix(), axisymqq::load_matrix(), axisymlt::load_matrix(), axisymlq::load_matrix(), ArgyrisTriangle::load_matrix(), quadrilatc::lower_cap_coup_matrix(), hexahedc::lower_cap_coup_matrix(), barelc::lower_cap_coup_matrix(), quadrilatc::lower_cond_coup_matrix(), hexahedc::lower_cond_coup_matrix(), barelc::lower_cond_coup_matrix(), plquadcontact::mainip_strains(), springel::mass_matrix(), quadtet::mass_matrix(), quadhex::mass_matrix(), planeelemsubqt::mass_matrix(), planeelemrotlt::mass_matrix(), planeelemrotlq::mass_matrix(), planeelemqt::mass_matrix(), planeelemqq::mass_matrix(), planeelemlt::mass_matrix(), planeelemlq::mass_matrix(), lintetrot::mass_matrix(), lintet::mass_matrix(), linhexrot::mass_matrix(), linhex::mass_matrix(), cctelem::mass_matrix(), beamel3d::mass_matrix(), beamel2d::mass_matrix(), barel3d::mass_matrix(), barel2d::mass_matrix(), axisymqq::mass_matrix(), axisymlt::mass_matrix(), axisymlq::mass_matrix(), ArgyrisTriangle::mass_matrix(), beamel2d::mass_matrix_expl(), beam2dspec::mass_matrix_expl(), multiphc::matcap1d_l(), glasgowmatc::matcap1d_l(), multiphc::matcap1d_u(), glasgowmatc::matcap1d_u(), multiphc::matcap2d_l(), glasgowmatc::matcap2d_l(), con_awf2matc::matcap2d_l(), multiphc::matcap2d_u(), glasgowmatc::matcap2d_u(), con_awf2matc::matcap2d_u(), multiphc::matcap3d_l(), glasgowmatc::matcap3d_l(), con_awf2matc::matcap3d_l(), multiphc::matcap3d_u(), glasgowmatc::matcap3d_u(), con_awf2matc::matcap3d_u(), medc3::matcap_l(), medc1::matcap_l(), medc3::matcap_u(), medc1::matcap_u(), varelastisomat::matcompl_axi(), elastisomat::matcompl_axi(), varelastisomat::matcompl_plstrain(), elastisomat::matcompl_plstrain(), varelastisomat::matcompl_plstress(), elastisomat::matcompl_plstress(), varelastisomat::matcompl_spacestr(), elastisomat::matcompl_spacestr(), sejtkrmat::matcond1d(), con_awf1mat::matcond1d(), carbmat1::matcond1d(), richardscontam::matcond1d_2(), richards::matcond1d_2(), pedmat::matcond1d_2(), multiph::matcond1d_2(), gmultiph::matcond1d_2(), bazpedmat::matcond1d_2(), sejtkrmat::matcond2d(), saltmat3::matcond2d(), saltmat2::matcond2d(), saltmat1::matcond2d(), richards::matcond2d(), radiationmat::matcond2d(), pedmat::matcond2d(), nlisotrmat::matcond2d(), multiph::matcond2d(), moistheatmat::matcond2d(), millymat::matcond2d(), lincoupmat::matcond2d(), kunmat2::matcond2d(), kunmat::matcond2d(), isotrmat::matcond2d(), grunewaldmat::matcond2d(), gmultiph::matcond2d(), glasgowmat::matcond2d(), general3mat::matcond2d(), discmat::matcond2d(), discisotrmat::matcond2d(), devriesmat::matcond2d(), damisotrmat::matcond2d(), con_awf2mat::matcond2d(), con_awf1mat::matcond2d(), cernymat::matcond2d(), cemhydmat::matcond2d(), carbmat1::matcond2d(), bazpedmat::matcond2d(), richardscontam::matcond2d_2(), richards::matcond2d_2(), pedmat::matcond2d_2(), multiph::matcond2d_2(), gmultiph::matcond2d_2(), bazpedmat::matcond2d_2(), multiphc::matcond2d_l(), glasgowmatc::matcond2d_l(), con_awf2matc::matcond2d_l(), multiphc::matcond2d_u(), glasgowmatc::matcond2d_u(), con_awf2matc::matcond2d_u(), sejtkrmat::matcond3d(), saltmat3::matcond3d(), saltmat2::matcond3d(), saltmat1::matcond3d(), richards::matcond3d(), radiationmat::matcond3d(), pedmat::matcond3d(), nlisotrmat::matcond3d(), multiph::matcond3d(), moistheatmat::matcond3d(), millymat::matcond3d(), lincoupmat::matcond3d(), kunmat2::matcond3d(), kunmat::matcond3d(), isotrmat::matcond3d(), grunewaldmat::matcond3d(), gmultiph::matcond3d(), glasgowmat::matcond3d(), general3mat::matcond3d(), discmat::matcond3d(), discisotrmat::matcond3d(), devriesmat::matcond3d(), damisotrmat::matcond3d(), con_awf2mat::matcond3d(), con_awf1mat::matcond3d(), cernymat::matcond3d(), cemhydmat::matcond3d(), carbmat1::matcond3d(), bazpedmat::matcond3d(), richardscontam::matcond3d_2(), richards::matcond3d_2(), pedmat::matcond3d_2(), multiph::matcond3d_2(), gmultiph::matcond3d_2(), bazpedmat::matcond3d_2(), multiphc::matcond3d_l(), glasgowmatc::matcond3d_l(), con_awf2matc::matcond3d_l(), multiphc::matcond3d_u(), glasgowmatc::matcond3d_u(), con_awf2matc::matcond3d_u(), discmat::matcond4d(), medc3::matcond_l(), medc1::matcond_l(), medc3::matcond_u(), medc1::matcond_u(), therisomat::matdilat_axi(), therisomat::matdilat_plate(), therisomat::matdilat_plstrain(), therisomat::matdilat_plstress(), therisomat::matdilat_spacestr(), matrix_tensor4(), layplate::matstiff(), varelastisomat::matstiff_axi(), elastisomat::matstiff_axi(), varelastisomat::matstiff_platek(), elastisomat::matstiff_platek(), varelastisomat::matstiff_plates(), elastisomat::matstiff_plates(), state_eqcu::matstiff_plstrain(), varelastisomat::matstiff_plstrain(), elastisomat::matstiff_plstrain(), state_eqcu::matstiff_plstress(), varelastisomat::matstiff_plstress(), elastisomat::matstiff_plstress(), varelastisomat::matstiff_spacestr(), elastisomat::matstiff_spacestr(), state_eqcu::matstiff_spacestress(), newton_raphson_gparcoupl_lin(), newton_raphson_gparcoupl_nonlin(), newton_raphson_parcoupl_lin(), newton_raphson_parcoupl_nonlin(), newton_raphsonrv1(), ortodamrot::nlstresses(), ortodam::nlstresses(), anisodamrot::nlstresses(), anisodam::nlstresses(), quadtet::node_forces_surf(), quadhex::node_forces_surf(), lintet::node_forces_surf(), linhex::node_forces_surf(), linhexrot::node_forces_surf_old(), linhex::node_forces_surf_old(), planeelemsubqt::nodeforces(), planeelemqt::nodeforces(), planeelemqq::nodeforces(), planeelemlt::nodeforces(), planeelemlq::nodeforces(), axisymqq::nodeforces(), axisymlq::nodeforces(), planeelemqt::ntn_matrix(), planeelemqq::ntn_matrix(), planeelemlt::ntn_matrix(), planeelemlq::ntn_matrix(), lintet::ntn_matrix(), one_step_arcl(), par_gnewton_raphson_one_step(), par_gnewton_raphson_one_step_mefel(), par_newton_raphson_gparcoupl_lin(), par_newton_raphson_gparcoupl_nonlin(), par_newton_raphson_parcoupl_lin(), par_newton_raphson_parcoupl_nonlin(), par_solve_prob_constr_phases(), par_solve_timemech_prob(), mohrcoulomb::plasmodscalar(), trlineart::quantity_source_vector(), trlinaxisym::quantity_source_vector(), quadquadrilattax::quantity_source_vector(), quadquadrilatt::quantity_source_vector(), quadlineart::quantity_source_vector(), quadlinaxisym::quantity_source_vector(), quadhext::quantity_source_vector(), quadbartax::quantity_source_vector(), quadbart::quantity_source_vector(), lintett::quantity_source_vector(), linhext::quantity_source_vector(), linbartax::quantity_source_vector(), linbart::quantity_source_vector(), quadrilatc::res_lower_cap_coup_matrix(), hexahedc::res_lower_cap_coup_matrix(), barelc::res_lower_cap_coup_matrix(), axiquadc::res_lower_cap_coup_matrix(), quadrilatc::res_lower_cond_coup_matrix(), hexahedc::res_lower_cond_coup_matrix(), barelc::res_lower_cond_coup_matrix(), axiquadc::res_lower_cond_coup_matrix(), shelltr::res_stiffness_matrix(), shellq::res_stiffness_matrix(), quadrilatc::res_upper_cap_coup_matrix(), hexahedc::res_upper_cap_coup_matrix(), barelc::res_upper_cap_coup_matrix(), axiquadc::res_upper_cap_coup_matrix(), quadrilatc::res_upper_cond_coup_matrix(), hexahedc::res_upper_cond_coup_matrix(), barelc::res_upper_cond_coup_matrix(), axiquadc::res_upper_cond_coup_matrix(), sejtkrmat::rhs1d1(), multiph::rhs1d1(), gmultiph::rhs1d1(), con_awf2mat::rhs1d1(), con_awf1mat::rhs1d1(), sejtkrmatc::rhs1d1(), con_awf2matc::rhs1d1(), con_awf1matc::rhs1d1(), multiphc::rhs1d_u2(), sejtkrmat::rhs2d1(), multiph::rhs2d1(), gmultiph::rhs2d1(), con_awf2mat::rhs2d1(), con_awf1mat::rhs2d1(), sejtkrmatc::rhs2d1(), con_awf2matc::rhs2d1(), con_awf1matc::rhs2d1(), multiphc::rhs2d_u1(), glasgowmatc::rhs2d_u1(), multiphc::rhs2d_u2(), sejtkrmat::rhs3d1(), multiph::rhs3d1(), gmultiph::rhs3d1(), con_awf2mat::rhs3d1(), con_awf1mat::rhs3d1(), sejtkrmatc::rhs3d1(), con_awf2matc::rhs3d1(), con_awf1matc::rhs3d1(), multiphc::rhs3d_u1(), glasgowmatc::rhs3d_u1(), multiphc::rhs3d_u2(), medc1::rhs_u(), solve_prob_constr_phases(), soilplatetr::stiffness_matrix(), soilplateq::stiffness_matrix(), soilbeam::stiffness_matrix(), quadwedge::stiffness_matrix(), quadtet::stiffness_matrix(), quadhex::stiffness_matrix(), q4plate::stiffness_matrix(), plquadcontact::stiffness_matrix(), planeelemsubqt::stiffness_matrix(), planeelemrotlt::stiffness_matrix(), planeelemrotlq::stiffness_matrix(), planeelemqt::stiffness_matrix(), planeelemqq::stiffness_matrix(), planeelemlt::stiffness_matrix(), linwedge::stiffness_matrix(), lintetrot::stiffness_matrix(), lintet::stiffness_matrix(), linhex::stiffness_matrix(), dstelem::stiffness_matrix(), dktelem::stiffness_matrix(), cctelem::stiffness_matrix(), beamgen3d::stiffness_matrix(), beamel3d::stiffness_matrix(), beamel2d::stiffness_matrix(), barelq3d::stiffness_matrix(), barelq2d::stiffness_matrix(), barel3d::stiffness_matrix(), barel2d::stiffness_matrix(), axisymqq::stiffness_matrix(), axisymlt::stiffness_matrix(), axisymlq::stiffness_matrix(), ArgyrisTriangle::stiffness_matrix(), argyrisplate::stiffness_matrix(), elemparticle::stiffness_matrix_1d(), elemparticle::stiffness_matrix_2d(), elemparticle::stiffness_matrix_3d(), axisymlt::stiffness_matrix_block(), axisymlq::stiffness_matrix_blocks(), beamel2d::stiffness_matrix_expl(), beam2dspec::stiffness_matrix_expl(), beamel2d::stiffness_matrix_expl_local(), beamel3d::stiffness_matrix_local(), beamel3d::stiffness_matrix_local2(), tensor4_matrix(), tensor_vector_matrix(), anisodam::tmatstiff(), barel2d::tran_mat(), barelc::transf_matrix(), soilbeam::transf_matrix(), shelltr::transf_matrix(), shellq::transf_matrix(), quadwedge::transf_matrix(), quadtet::transf_matrix(), quadhex::transf_matrix(), plquadcontact::transf_matrix(), planeelemsubqt::transf_matrix(), planeelemrotlt::transf_matrix(), planeelemrotlq::transf_matrix(), planeelemqt::transf_matrix(), planeelemqq::transf_matrix(), planeelemlt::transf_matrix(), planeelemlq::transf_matrix(), linwedge::transf_matrix(), lintetrot::transf_matrix(), lintet::transf_matrix(), linhexrot::transf_matrix(), linhex::transf_matrix(), beamgen3d::transf_matrix(), beamel3d::transf_matrix(), beamel2d::transf_matrix(), beam2dspec::transf_matrix(), barelq3d::transf_matrix(), barelq2d::transf_matrix(), barel3d::transf_matrix(), barel2d::transf_matrix(), axisymqq::transf_matrix(), axisymlt::transf_matrix(), axisymlq::transf_matrix(), trlineart::transmission_vector(), trlinaxisym::transmission_vector(), quadquadrilattax::transmission_vector(), quadquadrilatt::transmission_vector(), quadlineart::transmission_vector(), quadlinaxisym::transmission_vector(), quadhext::transmission_vector(), quadbartax::transmission_vector(), quadbart::transmission_vector(), lintett::transmission_vector(), linhext::transmission_vector(), linbartax::transmission_vector(), linbart::transmission_vector(), unit_compl_matrix(), creepb::updateval(), creepbs::updatevalchange(), creepb::updatevalchange(), quadrilatc::upper_cap_coup_matrix(), hexahedc::upper_cap_coup_matrix(), barelc::upper_cap_coup_matrix(), quadrilatc::upper_cond_coup_matrix(), hexahedc::upper_cond_coup_matrix(), barelc::upper_cond_coup_matrix(), quadrilatc::upper_cond_coup_vector(), hexahedc::upper_cond_coup_vector(), barelc::upper_cond_coup_vector(), axiquadc::upper_cond_coup_vector(), vector_tensor(), visco_solver(), coupmatu::volume_rhs2(), quadlineart::volume_rhs_vector(), quadlinaxisym::volume_rhs_vector(), quadbart::volume_rhs_vector(), linhext::volume_rhs_vector(), linbart::volume_rhs_vector(), barelc::volume_rhs_vector(), write_gid_displ(), write_gid_nforces(), write_nforces(), and outdriverm::write_vtk_unkn().

long fillrow ( double  c,
long  i,
matrix mat 
)

The function fills mat's row i with the constant c.

Parameters:
c is constant, which will be used for filling entire matrix
i is index of given row
mat is the structure for the allocated matrix
Returns:
always zero

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

Definition at line 502 of file matrix-new.cpp.

Referenced by mohrcoulomb::cutting_plane(), and mohrcoulomb::mc_msurf_cp().

long mxm ( const bmatrix a,
const bmatrix b,
bmatrix c 
)

multiplies two matrices A.B=C

The function multiplies matrix given by a from right with matrix given by b, the result is stored in c

Parameters:
a is the structure of the bmatrix, from which is multiplied
b is the structure of the multiplicating bmatrix
c is the structure of the result bmatrix

Requests: a, b and c have to be following total dimensions a (tm,tn), b (tn,tp), c (tm,tp) c has to have allocated memory array for elements which is enough large to hold contents of the result.

Return values:
0,: on succes
1,: in case incompatibility sizes of a, b and c matrices

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 526 of file bmatrix.cpp.

References bmatrix::give_locid(), print_err(), bmatrix::tm, and bmatrix::tn.

Referenced by bdbjac(), plquadcontact::geom_matrix(), glmatrixtransf(), glob_loc_tens_trans(), HomogData::HerveZaoui(), initial_stiffness_matrix(), trlineart::l_matrix(), quadlineart::l_matrix(), lintett::l_matrix(), linhext::l_matrix(), lg_tens4transf(), lgmatrixtransf(), loc_glob_tens_trans(), mass_matrix(), medc1::matcond_u(), multiphc::matcond_u(), glasgowmatc::matcond_u(), glasgowcoup::material_matrix_fts(), glasgownew::material_matrix_fts(), glasgowcoup::material_matrix_td(), glasgownew::material_matrix_td(), splas1d::matstiff(), camclaycoup::matstiff(), camclay::matstiff(), layplate::matstiff(), mohrcoulomb::mc_msurf_cp(), mechmat::mult_surf_cutting_plane(), mechmat::newton_stress_return(), mechmat::newton_stress_return_2(), ortodamrot::nlstresses(), anisodamrot::nlstresses(), paral_transport_homogenization(), medc1::rhs_u(), multiphc::rhs_u1(), glasgowmatc::rhs_u1(), stiffness_matrix(), shefplast::tangentstiff(), mohrcoulomb::tangentstiff(), j2flow2::tangentstiff(), j2flow::tangentstiff(), drprag::tangentstiff(), chen::tangentstiff(), and transport_homogenization().

long subm ( const bmatrix a,
const bmatrix b,
bmatrix c 
)

substracts 2 matrices

The function substracts matrix given by b from matrix given by a, the result is stored in the c

Parameters:
a is the structure of the bmatrix, from which is sbustracted
b is the structure of substracted bmatrix
c is the structure of the result bmatrix

Requests: a, b and c have to be same dimensions, c has to have allocated memory array for elements which is enough large to hold contents of the result.

Return values:
0,: on succes
1,: in case incompatibility sizes of a, b and c matrices

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 471 of file bmatrix.cpp.

References bmatrix::give_locid(), bmatrix::give_totid(), bmatrix::m, bmatrix::n, print_err(), bmatrix::tm, and bmatrix::tn.

Referenced by shefplast::deryieldfsigma(), boermat::deryieldfsigma(), glasgowcoup::material_matrix_td(), glasgownew::material_matrix_td(), splas1d::matstiff(), shefplast::numdiff_dfdsdkc(), shefplast::numdiff_dfdsdsc(), shefplast::tangentstiff(), mohrcoulomb::tangentstiff(), j2flow2::tangentstiff(), j2flow::tangentstiff(), drprag::tangentstiff(), chen::tangentstiff(), and drprag2::tangentstiff().

void tensprd ( vector a,
vector b,
matrix c 
)

performs tensor product of two vectors


Generated by  doxygen 1.6.2