Rosetta  3.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
util.cc File Reference

small bundle of utilities for dealing with numbers. More...

#include <numeric/types.hh>
#include <utility/vector1.hh>
#include <numeric/MathNTensorBase.hh>
#include <numeric/MathNTensor.hh>
#include <algorithm>

Namespaces

 numeric
 Unit headers.
 

Functions

numeric::Real numeric::median (utility::vector1< numeric::Real > const &values)
 Returns the median from a vector1 of Real values. More...
 
numeric::Real numeric::mean (utility::vector1< numeric::Real > const &values)
 
Real & numeric::access_Real_MathNTensor (MathNTensorBaseOP< Real > tensorbase, utility::vector1< Size > const &position)
 Utility function to access an entry in a MathNTensor of arbitrary dimensionality unknown at compile time, given a MathNTensorBaseOP. More...
 
Real const & numeric::const_access_Real_MathNTensor (MathNTensorBaseCOP< Real > tensorbase, utility::vector1< Size > const &position)
 Utility function to access an entry in a MathNTensor of arbitrary dimensionality unknown at compile time, given a MathNTensorBaseCOP. More...
 
Size numeric::get_Real_MathNTensor_dimension_size (MathNTensorBaseCOP< Real > tensorbase, Size const dimension_index)
 Given a MathNTensorBaseCOP, get the size along one dimension. More...
 

Detailed Description

small bundle of utilities for dealing with numbers.

Author
James Thompson