Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62534945
vector.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, May 13, 20:47
Size
1 KB
Mime Type
text/x-c
Expires
Wed, May 15, 20:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17659820
Attached To
R7571 SP4E-TB-TL-FR
vector.cc
View Options
#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
Log In to Comment