ql/math/array.hpp File Reference

### A free/open-source library for quantitative finance

Classes | Functions
ql/math/array.hpp File Reference

1-D array used in linear algebra. More...

`#include <ql/types.hpp>`
`#include <ql/errors.hpp>`
`#include <ql/utilities/disposable.hpp>`
`#include <ql/utilities/null.hpp>`
`#include <boost/iterator/reverse_iterator.hpp>`
`#include <boost/scoped_array.hpp>`
`#include <boost/type_traits.hpp>`
`#include <functional>`
`#include <numeric>`
`#include <vector>`
`#include <iomanip>`
Include dependency graph for array.hpp:

## Classes
class | Array
| 1-D array used in linear algebra. More...
class | Null< Array >
| specialization of null template for this class More...
## Functions
template<class I >
void | _fill_array_ (Array &a, boost::scoped_array< Real > &data_, Size &n_, I begin, I end, const boost::true_type &)
template<class I >
void | _fill_array_ (Array &a, boost::scoped_array< Real > &data_, Size &n_, I begin, I end, const boost::false_type &)
Real | DotProduct (const Array &v1, const Array &v2)
const Disposable< Array > | operator+ (const Array &v)
const Disposable< Array > | operator- (const Array &v)
const Disposable< Array > | operator+ (const Array &v1, const Array &v2)
const Disposable< Array > | operator+ (const Array &v1, Real a)
const Disposable< Array > | operator+ (Real a, const Array &v2)
const Disposable< Array > | operator- (const Array &v1, const Array &v2)
const Disposable< Array > | operator- (const Array &v1, Real a)
const Disposable< Array > | operator- (Real a, const Array &v2)
const Disposable< Array > | operator* (const Array &v1, const Array &v2)
const Disposable< Array > | operator* (const Array &v1, Real a)
const Disposable< Array > | operator* (Real a, const Array &v2)
const Disposable< Array > | operator/ (const Array &v1, const Array &v2)
const Disposable< Array > | operator/ (const Array &v1, Real a)
const Disposable< Array > | operator/ (Real a, const Array &v2)
const Disposable< Array > | Abs (const Array &v)
const Disposable< Array > | Sqrt (const Array &v)
const Disposable< Array > | Log (const Array &v)
const Disposable< Array > | Exp (const Array &v)
void | swap (Array &v, Array &w)
std::ostream & | operator<< (std::ostream &out, const Array &a)

## Detailed Description

1-D array used in linear algebra.