Skip to content

Using alias for Ublas matrix and vector

Pooyan Dadvand edited this page Apr 23, 2018 · 5 revisions

The first step to be taken in order to migrate from ublas dense matrix and vectors to AMatrix consists in use of Kratos alias for different matrix and vector classes of ublas doing the following replaces which are recommended to be done in following order:

  1. Replacing the boost::numeric::ublas::vector with DenseVector
  2. Replacing the boost::numeric::ublas::matrix with DenseMatrix
  3. Replacing the boost::numeric::ublas::bounded_vector with BoundedVector
  4. Replacing the boost::numeric::ublas::bounded_matrix with BoundedMatrix
  5. Replacing the bounded_vector with BoundedVector
  6. Replacing the bounded_matrix with BoundedMatrix
  7. Relplacing the matrix< with DenseMatrix< NOTE: the < character should be included in this step to avoid unnecessary changes
  8. Replacing the boost::numeric::ublas::prod with prod
  9. Replacing the boost::numeric::ublas::trans with trans

Project information

Getting Started

Tutorials

Developers

Kratos structure

Conventions

Solvers

Debugging, profiling and testing

HOW TOs

Utilities

Kratos API

Kratos Structural Mechanics API

Clone this wiki locally