Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87461888
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
Sat, Oct 12, 19:42
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Oct 14, 19:42 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21602384
Attached To
R9316 Omid_Ashtari
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
)
{
return
stream
;
}
/* -------------------------------------------------------------------------- */
/// standard input stream operator
std
::
istream
&
operator
>>
(
std
::
istream
&
stream
,
Vector
&
_this
)
{
return
stream
;
}
Event Timeline
Log In to Comment