Page MenuHomec4science

vector.cc
No OneTemporary

File Metadata

Created
Mon, May 13, 20:47

vector.cc

#include "vector.hh"
Real& Vector::operator[](UInt i) {
}
const Real& Vector::operator[](UInt i) const {
}
Real Vector::squaredNorm() const {
}
/* -------------------------------------------------------------------------- */
Vector& Vector::operator+=(const Vector& vec) {
return *this;
}
Vector& Vector::operator-=(const Vector& vec) {
return *this;
}
Vector& Vector::operator*=(Real val) {
return *this;
}
Vector& Vector::operator/=(Real val) {
return *this;
}
/* -------------------------------------------------------------------------- */
Vector& Vector::operator=(const Vector& vec) {
return *this;
}
Vector& Vector::operator=(Real val) {
return *this;
}
/* -------------------------------------------------------------------------- */
Vector operator+(const Vector& a, const Vector& b) {
}
Vector operator-(const Vector& a, const Vector& b) {
}
Vector operator*(const Vector& a, Real val) {
}
Vector operator*(Real val, const Vector& a) {
return a * val;
}
Vector operator/(const Vector& a, Real val) {
}
/* -------------------------------------------------------------------------- */
/// standard output stream operator
std::ostream& operator<<(std::ostream& stream, const Vector& _this) {
for (UInt i = 0; i < _this.dim-1; ++i) {
stream << _this.values[i] << " ";
}
stream << _this.values[_this.dim-1];
return stream;
}
/* -------------------------------------------------------------------------- */
/// standard input stream operator
std::istream& operator>>(std::istream& stream, Vector& _this) {
for (UInt i = 0; i < _this.dim; ++i) {
stream >> _this.values[i];
}
return stream;
}

Event Timeline