19 #ifndef __SNgaussian_H__174236 20 #define __SNgaussian_H__174236 26 #include "../exceptions/SNexceptions.cpp" 27 #include "../Utilities.h" 31 template <
class T,
unsigned int tp_size>
60 template <
class T,
unsigned int tp_size>
65 std::array<T,tp_size>
data;
88 template <
class U,
unsigned int s>
119 template <
class U,
unsigned int s>
133 template <
class T,
unsigned int tp_size>
143 template <
class T,
unsigned int tp_size>
151 template <
class T,
unsigned int tp_size>
152 template <
class U,
unsigned int s>
161 T m = A.
get(column,column);
162 for (
m_num i=column+1;i<tp_size;i++)
164 this->
at(i,column)=-A.
get(i,column)/m;
170 template <
class T,
unsigned int tp_size>
171 template<
class U,
unsigned int s>
180 template <
class T,
unsigned int tp_size>
188 template <
class T,
unsigned int tp_size>
195 template <
class T,
unsigned int tp_size>
215 template <
class T,
unsigned int tp_size>
226 template <
class T,
unsigned int tp_size>
244 throw NotInitializedMemberException(
"You are trying to populate a 'SNgaussian' before to initialize the member 'data_column'. Use setColumn().");
258 template <
class T,
unsigned int tp_size>
261 std::array<T,tp_size> new_data(
data);
262 for (
unsigned int k=0;k<tp_size-
getColumn()-1;++k)
264 new_data.at(k)=-new_data.at(k);
bool special
Definition: SNgeneric.h:130
virtual T & at(const m_num, const m_num) final
Definition: SNgeneric.h:218
Definition: SNgaussian.h:61
When trying to perform operation with matrices with incompatible sizes.
Definition: SNexceptions.cpp:43
This is the base class for the other matrices types.
Definition: MathUtilities.h:32
SpecialValue< T > checkForSpecialElements(const m_num &i, const m_num &j) const
Definition: SNgaussian.h:196
SNgaussian()
Definition: SNgaussian.h:189
std::array< T, tp_size > data
Definition: SNgaussian.h:65
virtual T get(const m_num, const m_num) const final
Definition: SNgeneric.h:211
Definition: SNgaussian.h:38
void populate_from(const SNgeneric< U, s > &)
Definition: SNgaussian.h:153
m_num getColumn() const
Definition: SNgaussian.h:144
T value
Definition: SNgeneric.h:129
SNgaussian< T, tp_size > inverse() const
Definition: SNgaussian.h:259
Definition: SNexceptions.cpp:119
Definition: SNexceptions.cpp:104
T & _at(m_num, m_num) override
Definition: SNgaussian.h:227
void setColumn(const m_num &col)
Definition: SNgaussian.h:134
T _get(m_num, m_num) const override
Definition: SNgaussian.h:216
m_num data_column
Definition: SNgaussian.h:66
Definition: SNexceptions.cpp:81