Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61663102
grid.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
Wed, May 8, 04:23
Size
748 B
Mime Type
text/x-c
Expires
Fri, May 10, 04:23 (2 d)
Engine
blob
Format
Raw Data
Handle
17506496
Attached To
R11201 phpc-2021
grid.cc
View Options
/* -------------------------------------------------------------------------- */
#include "grid.hh"
/* -------------------------------------------------------------------------- */
#include <algorithm>
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Grid
::
Grid
(
int
m
,
int
n
)
:
m_m
(
m
),
m_n
(
n
),
m_storage
(
m
*
n
)
{
clear
();
}
/* -------------------------------------------------------------------------- */
void
Grid
::
clear
()
{
std
::
fill
(
m_storage
.
begin
(),
m_storage
.
end
(),
0.
);
}
/* -------------------------------------------------------------------------- */
int
Grid
::
m
()
const
{
return
m_m
;
}
int
Grid
::
n
()
const
{
return
m_n
;
}
Event Timeline
Log In to Comment