Skip to content

Porting to AMatrix

Pooyan Dadvand edited this page Sep 10, 2018 · 16 revisions

This page provides a list of common changes for migration from ublas to AMatrix

Using Kratos vector and matrix aliases

It is recommended to use Kratos vector and matrix aliases instead of ones define by ublas:

  • Using Vector for a dynamic size vector of double
  • Using Matrix for a dynamic size matrix of double
  • Replacing the boost::numeric::ublas::vector with DenseVector
  • Replacing the boost::numeric::ublas::matrix with DenseMatrix
  • Replacing the boost::numeric::ublas::bounded_vector with BoundedVector
  • Replacing the boost::numeric::ublas::bounded_matrix with BoundedMatrix
  • Replacing the bounded_vector with BoundedVector
  • Replacing the bounded_matrix with BoundedMatrix
  • Relplacing the matrix< with DenseMatrix< NOTE: the < character should be included in this step to avoid unnecessary changes
  • Replacing the boost::numeric::ublas::prod with prod
  • 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