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 …

Defines

BIND_FORTRAN_LOWERCASE_UNDERSCORE
BOOST_ALL_NO_LIB
USE_OPTIMAL_WORKSPACE

Typedefs

typedef ublas::banded_matrix<double, ublas::column_major> BandedMat

BandedMat is a typedef of boost::ublas::numeric::banded_matrix<double, column_major, std::vector<double> >

typedef ublas::compressed_matrix<SP::SiconosMatrix> BlocksMat

A collection of pointers to matrices ; blocksMat is a typedef of boost::ublas::numeric::mapped_matrix<SiconosMatrix* >

typedef ublas::matrix<std::complex<double>, ublas::column_major> complex_matrix

Complex matrix.

typedef ublas::vector<std::complex<double>> complex_vector

Complex vector.

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 ublas::vector<double, std::vector<double>> DenseVect

Various vector types available in Siconos.

DenseVect is a typedef of boost::ublas::numeric::vector<double, std::vector<double> >

typedef ublas::identity_matrix<double> IdentityMat

IdentityMat is a typedef of boost::ublas::identity_matrix ie identity matrix.

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

type of object used to save indices

typedef ublas::coordinate_matrix<double, ublas::column_major, 0, Index> SparseCoordinateMat

SparseMat is a typedef of boost::ublas::numeric::mapped_matrix<double>

typedef ublas::compressed_matrix<double, ublas::column_major, 0, Index> SparseMat

SparseMat is a typedef of boost::ublas::numeric::compressed_matrix<double>

typedef ublas::compressed_vector<double> SparseVect

SparseVect is a typedef of boost::ublas::numeric::mapped<double>

typedef ublas::symmetric_matrix<double, ublas::upper, ublas::column_major> SymMat

SymMat is a typedef of boost::ublas::numeric::symmetric_matrix<double, upper, column_major, std::vector<double> >

typedef ublas::triangular_matrix<double, ublas::upper, ublas::column_major> TriangMat

TriangMat is a typedef of boost::ublas::numeric::triangular_matrix<double, upper, column_major, std::vector<double> >

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.

typedef ublas::zero_matrix<double> ZeroMat

ZeroMat is a typedef of boost::ublas::numeric::zero_matrix, ie null matrix.

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

SPARSE_COORDINATE

id for sparse matrix or vector