23 lines
350 B
C++
23 lines
350 B
C++
#ifndef VECTOR_HPP
|
|
#define VECTOR_HPP
|
|
|
|
#include <vector>
|
|
#include <iostream>
|
|
|
|
|
|
class Vector {
|
|
public:
|
|
Vector(int size);
|
|
int size() const;
|
|
double& operator()(int i);
|
|
double operator()(int i) const;
|
|
void print() const;
|
|
double norm() const;
|
|
|
|
private:
|
|
std::vector<double> data;
|
|
|
|
};
|
|
|
|
#endif
|