GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

class  __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 *std::numeric_limits< double >::epsilon())
 
static double tfloor (double x, double ct)
 

Function Documentation

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)

Definition at line 388 of file Range.cc.

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

Range operator- ( double  x,
const Range r 
)
Range operator- ( const Range r,
double  x 
)
std::ostream& operator<< ( std::ostream &  os,
const Range a 
)

Definition at line 350 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 
)
inlinestatic

Definition at line 511 of file Range.cc.

References tfloor().

static bool teq ( double  u,
double  v,
double  ct = 3.0 * std::numeric_limits<double>::epsilon () 
)
inlinestatic

Definition at line 517 of file Range.cc.

Referenced by Range::nelem_internal().

static double tfloor ( double  x,
double  ct 
)
inlinestatic

Definition at line 481 of file Range.cc.

References floor().

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