GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Range.cc File Reference
#include <cmath>
#include <istream>
#include <limits>
#include <ostream>
#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* (const Range &r, double x)
 
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)
 
Range operator- (const Range &r, double x)
 
Range operator- (double x, const Range &r)
 
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* ( const Range r,
double  x 
)

Definition at line 477 of file Range.cc.

◆ operator*() [2/2]

Range operator* ( double  x,
const Range r 
)

Definition at line 468 of file Range.cc.

◆ operator+() [1/2]

Range operator+ ( const Range r,
double  x 
)

Definition at line 441 of file Range.cc.

◆ operator+() [2/2]

Range operator+ ( double  x,
const Range r 
)

Definition at line 429 of file Range.cc.

◆ operator-() [1/3]

Range operator- ( const Range r)

Definition at line 424 of file Range.cc.

◆ operator-() [2/3]

Range operator- ( const Range r,
double  x 
)

Definition at line 459 of file Range.cc.

◆ operator-() [3/3]

Range operator- ( double  x,
const Range r 
)

Definition at line 450 of file Range.cc.

◆ operator<<()

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

Definition at line 383 of file Range.cc.

◆ operator>>()

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

Definition at line 405 of file Range.cc.

◆ teq()

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

Definition at line 549 of file Range.cc.

References abs().

Referenced by Range::numel_internal().

◆ tfloor()

static double tfloor ( double  x,
double  ct 
)
inlinestatic

Definition at line 519 of file Range.cc.

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

Referenced by Range::numel_internal().