CppNoddy  0.92
Loading...
Searching...
No Matches
Namespaces | Functions
Utility.cpp File Reference

An implementation for a collection of utility functions. More...

#include <string>
#include <ctime>
#include <Types.h>
#include <Exceptions.h>
#include <Utility.h>
#include <FortranData.h>
#include <FortranBLAS.h>

Go to the source code of this file.

Namespaces

namespace  CppNoddy
 A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechanics.
 
namespace  CppNoddy::Utility
 Some utility methods associated with CppNoddy containers.
 

Functions

double CppNoddy::Utility::max_abs_location (OneD_Node_Mesh< double > &mesh, unsigned var)
 
double CppNoddy::Utility::max_abs_location_range (OneD_Node_Mesh< double > &mesh, unsigned var, double left, double right)
 
DenseVector< double > CppNoddy::Utility::uniform_node_vector (const double &lower, const double &upper, const std::size_t &N)
 Return a DENSE vector with the nodal points of a uniform mesh distributed between the upper/lower bounds as specified. More...
 
DenseVector< double > CppNoddy::Utility::power_node_vector (const double &lower, const double &upper, const std::size_t &N, const double &power)
 Return a DENSE vector with the nodal points of a non-uniform mesh distributed between the upper/lower bounds as specified with more nodes clustered near lower or upper depending upon the differencee of the power from unity. More...
 
DenseVector< double > CppNoddy::Utility::two_uniform_node_vector (const double &lower, const double &mid, const double &upper, const std::size_t &N1, const std::size_t &N2)
 Return a dense vector with two uniform distributions in two separate regions. More...
 
DenseVector< double > CppNoddy::Utility::three_uniform_node_vector (const double &lower, const double &mid1, const double &mid2, const double &upper, const std::size_t &N1, const std::size_t &N2, const std::size_t &N3)
 Return a dense vector with two uniform distributions in two separate regions. More...
 
DenseVector< double > CppNoddy::Utility::mid_weighted_node_vector (const double &lower, const double &upper, const std::size_t &N, const double &power)
 Return a dense vector of nodal positions with more nodes concentrated at the mid point of the range. More...
 
DenseVector< double > CppNoddy::Utility::real (const DenseVector< D_complex > &X)
 Return a double DENSE vector containing the real part of a complex DENSE vector. More...
 
DenseVector< double > CppNoddy::Utility::imag (const DenseVector< D_complex > &X)
 Return a double DENSE vector containing the imaginary part of a complex DENSE vector. More...
 
std::string CppNoddy::Utility::stringify (const int &val)
 Return an integer value as a string - useful for file naming. More...
 
std::string CppNoddy::Utility::stringify (const double &val, int p)
 Return a double value as a string - useful for file naming. More...
 
DenseMatrix< double > CppNoddy::Utility::multiply (DenseMatrix< double > &A, DenseMatrix< double > &B)
 BLAS wrapper to do DOUBLE DENSE A_{MxK} * B_{KxN} = C_{MxN} Since this is a Fortran library, it assumes a column_major format, but CppNoddy uses row_major. More...
 

Detailed Description

An implementation for a collection of utility functions.

Definition in file Utility.cpp.

© 2012

R.E. Hewitt