GNU Octave  3.8.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 
)

Definition at line 429 of file Range.cc.

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

Range operator* ( const Range r,
double  x 
)

Definition at line 438 of file Range.cc.

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

Range operator+ ( double  x,
const Range r 
)

Definition at line 393 of file Range.cc.

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

Range operator+ ( const Range r,
double  x 
)

Definition at line 402 of file Range.cc.

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

Range operator- ( const Range r)

Definition at line 388 of file Range.cc.

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

Range operator- ( double  x,
const Range r 
)

Definition at line 411 of file Range.cc.

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

Range operator- ( const Range r,
double  x 
)

Definition at line 420 of file Range.cc.

References Range::base(), Range::cache, Range::inc(), Range::matrix_value(), Range::nelem(), and 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().