GNU Octave  4.2.1
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 380 of file Range.cc.

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

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 340 of file Range.cc.

References b, Range::base(), Range::inc(), Range::numel(), and Range::rng_limit.

std::istream& operator>> ( std::istream &  is,
Range a 
)

Definition at line 361 of file Range.cc.

References is, Range::rng_base, Range::rng_inc, and Range::set_limit().

static double tceil ( double  x,
double  ct 
)
inlinestatic

Definition at line 502 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 508 of file Range.cc.

Referenced by Range::numel_internal().

static double tfloor ( double  x,
double  ct 
)
inlinestatic

Definition at line 472 of file Range.cc.

References octave::math::floor().

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