ARTS  2.2.66
rational.cc File Reference

Contains some additional functionality of the rational class. More...

#include "rational.h"
#include <stdexcept>
#include "mystring.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Rational &a)
 
std::istream & operator>> (std::istream &is, Rational &a)
 
Rational abs (const Rational &a)
 

Detailed Description

Contains some additional functionality of the rational class.

Author
Richard Larsson
Date
2012-10-31

Definition in file rational.cc.

Function Documentation

◆ abs()

Rational abs ( const Rational a)

Definition at line 107 of file rational.cc.

◆ operator<<()

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

Definition at line 65 of file rational.cc.

References Rational::Denom(), and Rational::Nom().

◆ operator>>()

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

Definition at line 71 of file rational.cc.

References Array< base >::nelem().