Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

41 lines
1.2 KiB
C++

// cRow.h: interface for the cRow class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CROW_H__D9B145FF_8F28_4C8D_BE26_6C6C5BA1792F__INCLUDED_)
#define AFX_CROW_H__D9B145FF_8F28_4C8D_BE26_6C6C5BA1792F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CROW_EPSILON .0000001
#include <iostream>
#include<vector>
using namespace std;
typedef vector<double> tRow;
class cRow : public tRow
{
public:
void print(ostream& sout = cout) const;
double Sum(void);
cRow Exp(double Exponent) const;
void ScaleSelf(double Scalar);
void AddSelf(const cRow& Other);
cRow operator+(const cRow& Other) const;
cRow cRow::operator *(double Scalar) const;
inline cRow& operator *=(const double Scalar);
double Dot(const cRow& Other) const;
cRow(size_t Size = 0);
cRow(size_t Size, const double val);
cRow(istream& in);
virtual ~cRow(void);
bool operator>=(double Scalar) const;
bool operator<=(double Scalar) const;
bool operator>(double Scalar) const;
bool operator<(double Scalar) const;
bool operator==(double Scalar) const;
bool operator!=(double Scalar) const;
};
#endif // !defined(AFX_CROW_H__D9B145FF_8F28_4C8D_BE26_6C6C5BA1792F__INCLUDED_)