KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::UblasSpace< TDataType, TMatrixType, TVectorType > Class Template Reference

A class template for handling data types, matrices, and vectors in a Ublas space. More...

#include <ublas_space.h>

Collaboration diagram for Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >:

Public Member Functions

Life Cycle
 UblasSpace ()
 Default constructor. More...
 
virtual ~UblasSpace ()
 Destructor. More...
 

Static Public Member Functions

Operations
static MatrixPointerType CreateEmptyMatrixPointer ()
 
static VectorPointerType CreateEmptyVectorPointer ()
 
static IndexType Size (VectorType const &rV)
 return size of vector rV More...
 
static IndexType Size1 (MatrixType const &rM)
 return number of rows of rM More...
 
static IndexType Size2 (MatrixType const &rM)
 return number of columns of rM More...
 
template<typename TColumnType >
static void GetColumn (unsigned int j, Matrix &rM, TColumnType &rX)
 rXi = rMij More...
 
template<typename TColumnType >
static void SetColumn (unsigned int j, Matrix &rM, TColumnType &rX)
 
static void Copy (MatrixType const &rX, MatrixType &rY)
 rY = rX More...
 
static void Copy (VectorType const &rX, VectorType &rY)
 rY = rX More...
 
static TDataType Dot (VectorType const &rX, VectorType const &rY)
 rX * rY More...
 
static TDataType TwoNorm (VectorType const &rX)
 ||rX||2 More...
 
static TDataType TwoNorm (const Matrix &rA)
 
static TDataType TwoNorm (const compressed_matrix< TDataType > &rA)
 
static TDataType JacobiNorm (const Matrix &rA)
 
static TDataType JacobiNorm (const compressed_matrix< TDataType > &rA)
 
static void Mult (const Matrix &rA, VectorType &rX, VectorType &rY)
 
static void Mult (const compressed_matrix< TDataType > &rA, VectorType &rX, VectorType &rY)
 
template<class TOtherMatrixType >
static void TransposeMult (TOtherMatrixType &rA, VectorType &rX, VectorType &rY)
 
static SizeType GraphDegree (IndexType i, TMatrixType &A)
 
static void GraphNeighbors (IndexType i, TMatrixType &A, std::vector< IndexType > &neighbors)
 
static void InplaceMult (VectorType &rX, const double A)
 
static void Assign (VectorType &rX, const double A, const VectorType &rY)
 
static void UnaliasedAdd (VectorType &rX, const double A, const VectorType &rY)
 
static void ScaleAndAdd (const double A, const VectorType &rX, const double B, const VectorType &rY, VectorType &rZ)
 
static void ScaleAndAdd (const double A, const VectorType &rX, const double B, VectorType &rY)
 
static double RowDot (unsigned int i, MatrixType &rA, VectorType &rX)
 rA[i] * rX More...
 
static void SetValue (VectorType &rX, IndexType i, TDataType value)
 
static void Set (VectorType &rX, TDataType A)
 rX = A More...
 
static void Resize (MatrixType &rA, SizeType m, SizeType n)
 
static void Resize (MatrixPointerType &pA, SizeType m, SizeType n)
 
static void Resize (VectorType &rX, SizeType n)
 
static void Resize (VectorPointerType &pX, SizeType n)
 
static void Clear (MatrixPointerType &pA)
 
static void Clear (VectorPointerType &pX)
 
template<class TOtherMatrixType >
static void ResizeData (TOtherMatrixType &rA, SizeType m)
 
static void ResizeData (compressed_matrix< TDataType > &rA, SizeType m)
 
static void ResizeData (VectorType &rX, SizeType m)
 
template<class TOtherMatrixType >
static void SetToZero (TOtherMatrixType &rA)
 
static void SetToZero (compressed_matrix< TDataType > &rA)
 
static void SetToZero (VectorType &rX)
 
template<class TOtherMatrixType , class TEquationIdVectorType >
static void AssembleLHS (MatrixType &A, TOtherMatrixType &LHS_Contribution, TEquationIdVectorType &EquationId)
 
static double CheckAndCorrectZeroDiagonalValues (const ProcessInfo &rProcessInfo, MatrixType &rA, VectorType &rb, const SCALING_DIAGONAL ScalingDiagonal=SCALING_DIAGONAL::NO_SCALING)
 This method checks and corrects the zero diagonal values. More...
 
static double GetScaleNorm (const ProcessInfo &rProcessInfo, const MatrixType &rA, const SCALING_DIAGONAL ScalingDiagonal=SCALING_DIAGONAL::NO_SCALING)
 This method returns the scale norm considering for scaling the diagonal. More...
 
static double GetDiagonalNorm (const MatrixType &rA)
 This method returns the diagonal norm considering for scaling the diagonal. More...
 
static double GetAveragevalueDiagonal (const MatrixType &rA)
 This method returns the diagonal max value. More...
 
static double GetMaxDiagonal (const MatrixType &rA)
 This method returns the diagonal max value. More...
 
static double GetMinDiagonal (const MatrixType &rA)
 This method returns the diagonal min value. More...
 

Type Definitions

using DataType = TDataType
 The data type considered. More...
 
using MatrixType = TMatrixType
 The matrix type considered. More...
 
using VectorType = TVectorType
 The vector type considered. More...
 
using IndexType = std::size_t
 The index type considered. More...
 
using SizeType = std::size_t
 The size type considered. More...
 
using MatrixPointerType = typename Kratos::shared_ptr< TMatrixType >
 The pointer to the matrix type. More...
 
using VectorPointerType = typename Kratos::shared_ptr< TVectorType >
 The pointer to the vector type. More...
 
using DofUpdaterType = DofUpdater< UblasSpace< TDataType, TMatrixType, TVectorType > >
 The DoF updater type. More...
 
using DofUpdaterPointerType = typename DofUpdaterType::UniquePointer
 The pointer to the DoF updater type. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (UblasSpace)
 Pointer definition of UblasSpace. More...
 

Input and output

virtual std::string Info () const
 Turn back information as a string. More...
 
virtual void PrintInfo (std::ostream &rOStream) const
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream) const
 Print object's data. More...
 
static constexpr bool IsDistributed ()
 
static TDataType GetValue (const VectorType &x, std::size_t I)
 
static void GatherValues (const VectorType &x, const std::vector< std::size_t > &IndexArray, TDataType *pValues)
 
template<class TOtherMatrixType >
static bool WriteMatrixMarketMatrix (const char *pFileName, TOtherMatrixType &rM, const bool Symmetric)
 
template<class VectorType >
static bool WriteMatrixMarketVector (const char *pFileName, const VectorType &rV)
 
static DofUpdaterPointerType CreateDofUpdater ()
 
static constexpr bool IsDistributedSpace ()
 Check if the UblasSpace is distributed. More...
 

Detailed Description

template<class TDataType, class TMatrixType, class TVectorType>
class Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >

A class template for handling data types, matrices, and vectors in a Ublas space.

This class template is designed to work with different data types, matrix types, and vector types within a Ublas space. It provides typedefs and utilities for managing these types effectively.

Template Parameters
TDataTypeThe data type used in the Ublas space.
TMatrixTypeThe matrix type used in the Ublas space.
TVectorTypeThe vector type used in the Ublas space.
Author
Riccardo Rossi

Member Typedef Documentation

◆ DataType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::DataType = TDataType

The data type considered.

◆ DofUpdaterPointerType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::DofUpdaterPointerType = typename DofUpdaterType::UniquePointer

The pointer to the DoF updater type.

◆ DofUpdaterType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::DofUpdaterType = DofUpdater<UblasSpace<TDataType, TMatrixType, TVectorType> >

The DoF updater type.

◆ IndexType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::IndexType = std::size_t

The index type considered.

◆ MatrixPointerType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::MatrixPointerType = typename Kratos::shared_ptr<TMatrixType>

The pointer to the matrix type.

◆ MatrixType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::MatrixType = TMatrixType

The matrix type considered.

◆ SizeType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SizeType = std::size_t

The size type considered.

◆ VectorPointerType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::VectorPointerType = typename Kratos::shared_ptr<TVectorType>

The pointer to the vector type.

◆ VectorType

template<class TDataType , class TMatrixType , class TVectorType >
using Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::VectorType = TVectorType

The vector type considered.

Constructor & Destructor Documentation

◆ UblasSpace()

template<class TDataType , class TMatrixType , class TVectorType >
Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::UblasSpace ( )
inline

Default constructor.

◆ ~UblasSpace()

template<class TDataType , class TMatrixType , class TVectorType >
virtual Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::~UblasSpace ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ AssembleLHS()

template<class TDataType , class TMatrixType , class TVectorType >
template<class TOtherMatrixType , class TEquationIdVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::AssembleLHS ( MatrixType A,
TOtherMatrixType &  LHS_Contribution,
TEquationIdVectorType &  EquationId 
)
inlinestatic

◆ Assign()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Assign ( VectorType rX,
const double  A,
const VectorType rY 
)
inlinestatic

◆ CheckAndCorrectZeroDiagonalValues()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::CheckAndCorrectZeroDiagonalValues ( const ProcessInfo rProcessInfo,
MatrixType rA,
VectorType rb,
const SCALING_DIAGONAL  ScalingDiagonal = SCALING_DIAGONAL::NO_SCALING 
)
inlinestatic

This method checks and corrects the zero diagonal values.

This method returns the scale norm considering for scaling the diagonal

Parameters
rProcessInfoThe problem process info
rAThe LHS matrix
rbThe RHS vector
ScalingDiagonalThe type of caling diagonal considered
Returns
The scale norm

◆ Clear() [1/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Clear ( MatrixPointerType pA)
inlinestatic

◆ Clear() [2/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Clear ( VectorPointerType pX)
inlinestatic

◆ Copy() [1/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Copy ( MatrixType const &  rX,
MatrixType rY 
)
inlinestatic

rY = rX

◆ Copy() [2/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Copy ( VectorType const &  rX,
VectorType rY 
)
inlinestatic

rY = rX

◆ CreateDofUpdater()

template<class TDataType , class TMatrixType , class TVectorType >
static DofUpdaterPointerType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::CreateDofUpdater ( )
inlinestatic

◆ CreateEmptyMatrixPointer()

template<class TDataType , class TMatrixType , class TVectorType >
static MatrixPointerType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::CreateEmptyMatrixPointer ( )
inlinestatic

◆ CreateEmptyVectorPointer()

template<class TDataType , class TMatrixType , class TVectorType >
static VectorPointerType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::CreateEmptyVectorPointer ( )
inlinestatic

◆ Dot()

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Dot ( VectorType const &  rX,
VectorType const &  rY 
)
inlinestatic

rX * rY

◆ GatherValues()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GatherValues ( const VectorType x,
const std::vector< std::size_t > &  IndexArray,
TDataType *  pValues 
)
inlinestatic

◆ GetAveragevalueDiagonal()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetAveragevalueDiagonal ( const MatrixType rA)
inlinestatic

This method returns the diagonal max value.

Parameters
rAThe LHS matrix
Returns
The diagonal max value

◆ GetColumn()

template<class TDataType , class TMatrixType , class TVectorType >
template<typename TColumnType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetColumn ( unsigned int  j,
Matrix rM,
TColumnType &  rX 
)
inlinestatic

rXi = rMij

◆ GetDiagonalNorm()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetDiagonalNorm ( const MatrixType rA)
inlinestatic

This method returns the diagonal norm considering for scaling the diagonal.

Parameters
rAThe LHS matrix
Returns
The diagonal norm

◆ GetMaxDiagonal()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetMaxDiagonal ( const MatrixType rA)
inlinestatic

This method returns the diagonal max value.

Parameters
rAThe LHS matrix
Returns
The diagonal max value

◆ GetMinDiagonal()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetMinDiagonal ( const MatrixType rA)
inlinestatic

This method returns the diagonal min value.

Parameters
rAThe LHS matrix
Returns
The diagonal min value

◆ GetScaleNorm()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetScaleNorm ( const ProcessInfo rProcessInfo,
const MatrixType rA,
const SCALING_DIAGONAL  ScalingDiagonal = SCALING_DIAGONAL::NO_SCALING 
)
inlinestatic

This method returns the scale norm considering for scaling the diagonal.

Parameters
rProcessInfoThe problem process info
rAThe LHS matrix
ScalingDiagonalThe type of caling diagonal considered
Returns
The scale norm

◆ GetValue()

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GetValue ( const VectorType x,
std::size_t  I 
)
inlinestatic

◆ GraphDegree()

template<class TDataType , class TMatrixType , class TVectorType >
static SizeType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GraphDegree ( IndexType  i,
TMatrixType &  A 
)
inlinestatic

◆ GraphNeighbors()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::GraphNeighbors ( IndexType  i,
TMatrixType &  A,
std::vector< IndexType > &  neighbors 
)
inlinestatic

◆ Info()

template<class TDataType , class TMatrixType , class TVectorType >
virtual std::string Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Info ( ) const
inlinevirtual

Turn back information as a string.

◆ InplaceMult()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::InplaceMult ( VectorType rX,
const double  A 
)
inlinestatic

◆ IsDistributed()

template<class TDataType , class TMatrixType , class TVectorType >
static constexpr bool Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::IsDistributed ( )
inlinestaticconstexpr

◆ IsDistributedSpace()

template<class TDataType , class TMatrixType , class TVectorType >
static constexpr bool Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::IsDistributedSpace ( )
inlinestaticconstexpr

Check if the UblasSpace is distributed.

This static member function checks whether the UblasSpace is distributed or not.

Returns
True if the space is distributed, false otherwise.

◆ JacobiNorm() [1/2]

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::JacobiNorm ( const compressed_matrix< TDataType > &  rA)
inlinestatic

◆ JacobiNorm() [2/2]

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::JacobiNorm ( const Matrix rA)
inlinestatic

This method computes the Jacobi norm

Parameters
rAThe matrix to compute the Jacobi norm
Returns
aux_sum: The Jacobi norm

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<class TDataType , class TMatrixType , class TVectorType >
Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::KRATOS_CLASS_POINTER_DEFINITION ( UblasSpace< TDataType, TMatrixType, TVectorType >  )

Pointer definition of UblasSpace.

◆ Mult() [1/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Mult ( const compressed_matrix< TDataType > &  rA,
VectorType rX,
VectorType rY 
)
inlinestatic

◆ Mult() [2/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Mult ( const Matrix rA,
VectorType rX,
VectorType rY 
)
inlinestatic

◆ PrintData()

template<class TDataType , class TMatrixType , class TVectorType >
virtual void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

◆ PrintInfo()

template<class TDataType , class TMatrixType , class TVectorType >
virtual void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.

◆ Resize() [1/4]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Resize ( MatrixPointerType pA,
SizeType  m,
SizeType  n 
)
inlinestatic

◆ Resize() [2/4]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Resize ( MatrixType rA,
SizeType  m,
SizeType  n 
)
inlinestatic

◆ Resize() [3/4]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Resize ( VectorPointerType pX,
SizeType  n 
)
inlinestatic

◆ Resize() [4/4]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Resize ( VectorType rX,
SizeType  n 
)
inlinestatic

◆ ResizeData() [1/3]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::ResizeData ( compressed_matrix< TDataType > &  rA,
SizeType  m 
)
inlinestatic

◆ ResizeData() [2/3]

template<class TDataType , class TMatrixType , class TVectorType >
template<class TOtherMatrixType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::ResizeData ( TOtherMatrixType &  rA,
SizeType  m 
)
inlinestatic

◆ ResizeData() [3/3]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::ResizeData ( VectorType rX,
SizeType  m 
)
inlinestatic

◆ RowDot()

template<class TDataType , class TMatrixType , class TVectorType >
static double Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::RowDot ( unsigned int  i,
MatrixType rA,
VectorType rX 
)
inlinestatic

rA[i] * rX

◆ ScaleAndAdd() [1/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::ScaleAndAdd ( const double  A,
const VectorType rX,
const double  B,
const VectorType rY,
VectorType rZ 
)
inlinestatic

◆ ScaleAndAdd() [2/2]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::ScaleAndAdd ( const double  A,
const VectorType rX,
const double  B,
VectorType rY 
)
inlinestatic

◆ Set()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Set ( VectorType rX,
TDataType  A 
)
inlinestatic

rX = A

◆ SetColumn()

template<class TDataType , class TMatrixType , class TVectorType >
template<typename TColumnType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SetColumn ( unsigned int  j,
Matrix rM,
TColumnType &  rX 
)
inlinestatic

◆ SetToZero() [1/3]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SetToZero ( compressed_matrix< TDataType > &  rA)
inlinestatic

◆ SetToZero() [2/3]

template<class TDataType , class TMatrixType , class TVectorType >
template<class TOtherMatrixType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SetToZero ( TOtherMatrixType &  rA)
inlinestatic

◆ SetToZero() [3/3]

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SetToZero ( VectorType rX)
inlinestatic

◆ SetValue()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::SetValue ( VectorType rX,
IndexType  i,
TDataType  value 
)
inlinestatic

◆ Size()

template<class TDataType , class TMatrixType , class TVectorType >
static IndexType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Size ( VectorType const &  rV)
inlinestatic

return size of vector rV

◆ Size1()

template<class TDataType , class TMatrixType , class TVectorType >
static IndexType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Size1 ( MatrixType const &  rM)
inlinestatic

return number of rows of rM

◆ Size2()

template<class TDataType , class TMatrixType , class TVectorType >
static IndexType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::Size2 ( MatrixType const &  rM)
inlinestatic

return number of columns of rM

◆ TransposeMult()

template<class TDataType , class TMatrixType , class TVectorType >
template<class TOtherMatrixType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::TransposeMult ( TOtherMatrixType &  rA,
VectorType rX,
VectorType rY 
)
inlinestatic

◆ TwoNorm() [1/3]

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::TwoNorm ( const compressed_matrix< TDataType > &  rA)
inlinestatic

◆ TwoNorm() [2/3]

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::TwoNorm ( const Matrix rA)
inlinestatic

◆ TwoNorm() [3/3]

template<class TDataType , class TMatrixType , class TVectorType >
static TDataType Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::TwoNorm ( VectorType const &  rX)
inlinestatic

||rX||2

◆ UnaliasedAdd()

template<class TDataType , class TMatrixType , class TVectorType >
static void Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::UnaliasedAdd ( VectorType rX,
const double  A,
const VectorType rY 
)
inlinestatic

◆ WriteMatrixMarketMatrix()

template<class TDataType , class TMatrixType , class TVectorType >
template<class TOtherMatrixType >
static bool Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::WriteMatrixMarketMatrix ( const char *  pFileName,
TOtherMatrixType &  rM,
const bool  Symmetric 
)
inlinestatic

◆ WriteMatrixMarketVector()

template<class TDataType , class TMatrixType , class TVectorType >
template<class VectorType >
static bool Kratos::UblasSpace< TDataType, TMatrixType, TVectorType >::WriteMatrixMarketVector ( const char *  pFileName,
const VectorType rV 
)
inlinestatic

The documentation for this class was generated from the following file: