File kernel/src/utils/SiconosAlgebra/SiconosMatrixSetBlock.hpp

Contents

File kernel/src/utils/SiconosAlgebra/SiconosMatrixSetBlock.hpp#

Go to the source code of this file

Functions

void setBlock(SPC::SiconosMatrix MIn, SP::SiconosMatrix MOut, const Index &dim, const Index &start)#

Copy a subBlock of MIn into a sub-block of MOut - Dim and positions of the sub-block are given in dim and start.

Parameters:
  • MIn – a SPC::SiconosMatrix

  • MOut[inout] a SP::SiconosMatrix

  • dim – an Index, dim[0], dim[1]: number of rows and columns of the sub-block

  • start – an Index, start[0], start[1]: position (row, column) of the first element of the sub-block in MIn start[2], start[3]: position (row, column) of the first element of the sub-block in MOut.