ARTS  2.3.1285(git:92a29ea9-dirty)
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(), r, and reduce_by_gcd().

Referenced by pow().

◆ 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().

Referenced by pow().