47 Vector( std::size_t N, T* pV );
58 void Resize( std::size_t N );
83 T
Norm( std::size_t Ln )
const;
86 bool write( FILE* fp )
const;
87 bool write(
const char* fileName )
const;
88 bool read( FILE* fp );
89 bool read(
const char* fileName );
97 template<
class T,
int Dim>
104 NVector( std::size_t N, T* pV );
115 void Resize( std::size_t N );
140 T
Norm( std::size_t Ln )
const;
153 #include "vector.hpp"
NVector operator*(const T &A) const
static void Add(const NVector &V1, const T &scale1, const NVector &V2, const T &scale2, NVector &Out)
NVector & operator-=(const NVector &V)
const T * operator[](std::size_t i) const
NVector & AddScaled(const NVector &V, const T &scale)
NVector & operator/=(const T &A)
NVector operator-() const
void Resize(std::size_t N)
T Dot(const NVector &V) const
const T * operator()(std::size_t i) const
std::size_t Dimensions() const
NVector operator+(const NVector &V) const
T Norm(std::size_t Ln) const
NVector & SubtractScaled(const NVector &V, const T &scale)
NVector & operator+=(const NVector &V)
NVector operator/(const T &A) const
NVector & operator=(const NVector &V)
NVector & operator*=(const T &A)
const T & operator()(std::size_t i) const
Vector operator+(const Vector &V) const
Vector & SubtractScaled(const Vector &V, const T &scale)
Vector & AddScaled(const Vector &V, const T &scale)
T Norm(std::size_t Ln) const
Vector & operator/=(const T &A)
Vector & operator+=(const Vector &V)
Vector operator*(const T &A) const
static void Add(const Vector &V1, const T &scale1, const Vector &V2, const T &scale2, Vector &Out)
std::size_t Dimensions() const
void Resize(std::size_t N)
const T & operator[](std::size_t i) const
Vector & operator=(const Vector &V)
bool write(FILE *fp) const
Vector & operator-=(const Vector &V)
Vector operator/(const T &A) const
Vector & operator*=(const T &A)
T Dot(const Vector &V) const