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

Go to the source code of this file

Interface for matrices handling.

Typedefs

typedef std::vector<int> VInt

A STL vector of int.

Functions

TYPEDEF_SPTR(VInt)

Abstract class to provide interface for matrices handling.

Matrices can be either block or Simple. See Derived classes for details.

In Siconos, a “matrix” can be either a SimpleMatrix or a BlockMatrix, ie a container of several pointers to SiconosMatrix

You can find an overview on how to build and use vectors and matrices in siconos users guide .

union MATRIX_UBLAS_TYPE
#include <SiconosMatrix.hpp>

Union of DenseMat pointer, TriangMat pointer BandedMat, SparseMat, SymMat, Zero and Identity mat pointers.

Public Members

BandedMat *Banded
DenseMat *Dense
IdentityMat *Identity
SparseMat *Sparse
SymMat *Sym
TriangMat *Triang
ZeroMat *Zero