GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Range.cc File Reference
#include <cmath>
#include <iostream>
#include <limits>
#include "Array-util.h"
#include "Range.h"
#include "lo-error.h"
#include "lo-mappers.h"
#include "lo-utils.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 bool teq (double u, double v, double ct=3.0 *std::numeric_limits< double >::epsilon())
 
static double tfloor (double x, double ct)
 

Function Documentation

◆ operator*() [1/2]

Range operator* ( double  x,
const Range r 
)

◆ operator*() [2/2]

Range operator* ( const Range r,
double  x 
)

◆ operator+() [1/2]

Range operator+ ( double  x,
const Range r 
)

◆ operator+() [2/2]

Range operator+ ( const Range r,
double  x 
)

◆ operator-() [1/3]

Range operator- ( const Range r)

Definition at line 419 of file Range.cc.

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

◆ operator-() [2/3]

Range operator- ( double  x,
const Range r 
)

◆ operator-() [3/3]

Range operator- ( const Range r,
double  x 
)

◆ operator<<()

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

Definition at line 379 of file Range.cc.

References a, b, i, and os.

◆ operator>>()

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

Definition at line 400 of file Range.cc.

References a, and is.

◆ teq()

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

Definition at line 541 of file Range.cc.

References u.

Referenced by Range::numel_internal().

◆ tfloor()

static double tfloor ( double  x,
double  ct 
)
inlinestatic

Definition at line 511 of file Range.cc.

References octave::math::floor(), and x.

Referenced by Range::numel_internal().