ISIS Core Library 0.7.2 (api 3.0.0)
Namespaces | Functions

/scr/tee1/isis/lib/Core/DataStorage/numeric_convert.hpp File Reference

#include <limits>
#include <assert.h>
#include <boost/mpl/bool.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
#include "common.hpp"
#include "valuearray.hpp"

Go to the source code of this file.

Namespaces

namespace  isis
namespace  isis::data

Functions

template<typename SRC , typename DST >
API_EXCLUDE_BEGIN _internal
API_EXCLUDE_END std::pair
< double, double > 
isis::data::getNumericScaling (const util::ValueBase &min, const util::ValueBase &max, autoscaleOption scaleopt=autoscale)
 Computes scaling and offset between two scalar value domains.
template<typename SRC , typename DST >
void isis::data::numeric_convert (const SRC *src, DST *dst, size_t size, const double scale, const double offset)
 Converts data from 'src' to the type of 'dst' and stores them there.
template<typename T >
void isis::data::numeric_copy (const T *src, T *dst, size_t size)