# File kernel/src/utils/SiconosAlgebra/SiconosAlgebraTypeDef.hpp¶

Go to the source code of this file

!

Header file for Siconos Algebra objects

This file provides typedef for matrix and vector objects, const values and so on …

Typedefs

typedef ublas::matrix<double, ublas::column_major, std::vector<double>> DenseMat

DenseMat is a typedef of boost::ublas::numeric::matrix<double, column_major, std::vector<double> >

typedef std::vector<std::size_t> Index

type of object used to save indices

typedef std::vector<SP::BlockVector> VectorOfBlockVectors

Some containers for vectors - Used for example in Relation to compute y and r when there are 2 DS.

typedef std::vector<SP::SiconosMatrix> VectorOfMatrices

Some containers for matrices - Used for example to handle the various jacobian in LagrangianDS.

typedef VectorOfMatrices::const_iterator VectorOfMatricesConstIterator

const Iterator through vector of matrices

typedef VectorOfMatrices::iterator VectorOfMatricesIterator

Iterator through vector of matrices.

typedef std::vector<SP::SimpleMatrix> VectorOfSMatrices

Some containers for matrices - Used for example to handle the various jacobian in LagrangianDS.

typedef std::vector<SP::SiconosVector> VectorOfVectors

Objects used to define block matrices and vectors:

Some containers for vectors - Used for example to handle x and its derivatives in DynamicalSystem.

Functions

TYPEDEF_SPTR(Index)

Variables

const std::string DEFAULT_FORMAT = "ascii"
const unsigned int M_MAXSIZEFORDISPLAY = 10
const char N_DOUBLE_PRECISION[] = "%1.52e "

Const from old version of SiconosVector - To be reviewed.

namespace Siconos

Enums

enum UBLAS_TYPE

Siconos::UBLAS_TYPE is an enumerated type of Siconos::DENSE, TRIANGULAR, SYMMETRIC, SPARSE, BANDED.

It is used to describe the type of matrix or vector we want to construct.

Values:

DENSE = 1

id for dense matrix or vector

TRIANGULAR

id for triangular matrix

SYMMETRIC

id for symmetric matrix

SPARSE

id for sparse matrix or vector

BANDED

id for banded matrix

ZERO

id for zero matrix

IDENTITY

id for identity matrix