ARTS  2.4.0(git:4fb77825)
rational.cc File Reference

Contains the rational class implmentations. More...

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

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Rational &a)
 Output operator. More...
 
std::istream & operator>> (std::istream &is, Rational &a)
 Input operator. More...
 

Detailed Description

Contains the rational class implmentations.

Author
Richard Larsson
Date
2012-10-31

Definition in file rational.cc.

Function Documentation

◆ operator<<()

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

Output operator.

Definition at line 33 of file rational.cc.

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

◆ operator>>()

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

Input operator.

Definition at line 44 of file rational.cc.

References Array< base >::nelem(), and Absorption::nelem().