Classes | Functions

Range.cc File Reference

#include <cfloat>
#include <iostream>
#include <limits>
#include "Range.h"
#include "lo-error.h"
#include "lo-mappers.h"
#include "lo-math.h"
#include "lo-utils.h"
#include "Array-util.h"
Include dependency graph for Range.cc:

Go to the source code of this file.

Classes

struct  _rangeidx_helper

Functions

Range operator* (double x, const Range &r)
Range operator* (const Range &r, double x)
Range operator+ (double x, const Range &r)
Range operator+ (const Range &r, double x)
Range operator- (const Range &r)
Range operator- (double x, const Range &r)
Range operator- (const Range &r, double x)
std::ostream & operator<< (std::ostream &os, const Range &a)
std::istream & operator>> (std::istream &is, Range &a)
static double tceil (double x, double ct)
static bool teq (double u, double v, double ct=3.0 *DBL_EPSILON)
static double tfloor (double x, double ct)

Function Documentation

Range operator* ( double  x,
const Range r 
)

Definition at line 371 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

Range operator* ( const Range r,
double  x 
)

Definition at line 380 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

Range operator+ ( double  x,
const Range r 
)

Definition at line 335 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

Range operator+ ( const Range r,
double  x 
)

Definition at line 344 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

Range operator- ( const Range r  ) 

Definition at line 330 of file Range.cc.

References Range::base(), Range::inc(), and Range::nelem().

Range operator- ( double  x,
const Range r 
)

Definition at line 353 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

Range operator- ( const Range r,
double  x 
)

Definition at line 362 of file Range.cc.

References Range::base(), Range::inc(), Range::matrix_value(), and Range::nelem().

std::ostream& operator<< ( std::ostream &  os,
const Range a 
)

Definition at line 295 of file Range.cc.

References Range::base(), Range::inc(), Range::max(), Range::min(), and Range::nelem().

std::istream& operator>> ( std::istream &  is,
Range a 
)
static double tceil ( double  x,
double  ct 
) [inline, static]

Definition at line 453 of file Range.cc.

References tfloor().

static bool teq ( double  u,
double  v,
double  ct = 3.0 * DBL_EPSILON 
) [inline, static]

Definition at line 459 of file Range.cc.

Referenced by Range::nelem_internal().

static double tfloor ( double  x,
double  ct 
) [inline, static]

Definition at line 423 of file Range.cc.

References floor().

Referenced by Range::nelem_internal(), and tceil().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines