Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88602743
LinSys.cpp
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 19, 16:59
Size
893 B
Mime Type
text/x-c
Expires
Mon, Oct 21, 16:59 (2 d)
Engine
blob
Format
Raw Data
Handle
21796610
Attached To
R7934 PCSC_project
LinSys.cpp
View Options
#include <cmath>
#include <iostream>
#include <cassert>
#include <string>
#include "LinSys.hpp"
/**************************************
***************************************
***************************************
************* LINSYS CLASS ************
***************************************
***************************************
**************************************/
// Overridden copy constructor
// Allocates memory for new matrix, and copies
// entries of other matrix into it
Lin_Sys
::
Lin_Sys
(
const
Lin_Sys
&
otherLin_Sys
)
{
/* Copying of Linear system*/
mSize
=
otherLin_Sys
.
mSize
;
mpA
=
otherLin_Sys
.
mpA
;
mpb
=
otherLin_Sys
.
mpb
;
}
Lin_Sys
::
Lin_Sys
(
Matrix
A
,
Vector
b
)
{
mpA
=
A
;
mpb
=
b
;
mSize
=
A
.
NumberOfRows
();
}
Lin_Sys
::
Lin_Sys
(
int
size
)
{
mSize
=
size
;
mpb
=
Vector
(
size
);
mpA
=
Matrix
(
size
);
}
Vector
Lin_Sys
::
Solve
(
std
::
string
method
)
{
}
Event Timeline
Log In to Comment