37 template<
typename DataType>
40 template<
typename DataType>
43 ASSERTL2(row < GetRows(), std::string(
"Row ") + boost::lexical_cast<std::string>(row) +
44 std::string(
" requested in a matrix with a maximum of ") + boost::lexical_cast<std::string>(GetRows()) +
45 std::string(
" rows"));
46 ASSERTL2(column < GetColumns(), std::string(
"Column ") + boost::lexical_cast<std::string>(column) +
47 std::string(
" requested in a matrix with a maximum of ") + boost::lexical_cast<std::string>(GetColumns()) +
48 std::string(
" columns"));
49 return v_GetValue(row, column);
52 template<
typename DataType>
55 return v_GetStorageSize();
58 template<
typename DataType>
61 return v_GetStorageType();
64 template<
typename DataType>
67 return GetTransposedRows(GetTransposeFlag());
70 template<
typename DataType>
73 if( transpose ==
'N' )
83 template<
typename DataType>
86 return GetTransposedColumns(GetTransposeFlag());
89 template<
typename DataType>
92 if( transpose ==
'N' )
102 template<
typename DataType>
105 template<
typename DataType>
108 if( m_transpose ==
'N' )
119 template<
typename DataType>
122 return v_GetTransposeFlag();
125 template<
typename DataType>
127 unsigned int row,
unsigned int col,
128 unsigned int numRows,
unsigned int numColumns,
const char transpose,
129 unsigned int numSubDiags,
unsigned int numSuperDiags )
131 if(transpose ==
'T' )
155 row, col, numSubDiags, numSuperDiags);
160 ASSERTL1(numSubDiags==numSuperDiags,
161 std::string(
"Number of sub- and superdiagonals should ") +
162 std::string(
"be equal for a symmetric banded matrix"));
178 return std::numeric_limits<unsigned int>::max();
181 template<
typename DataType>
183 unsigned int columns,
unsigned int subDiags,
unsigned int superDiags)
205 subDiags, superDiags);
211 std::string(
"Number of sub- and superdiagonals should ") +
212 std::string(
"be equal for a symmetric banded matrix"));
231 template<
typename DataType>
240 template<
typename DataType>
243 m_transpose(rhs.m_transpose)
249 template<
typename DataType>
252 m_size[0] = rhs.
m_size[0];
253 m_size[1] = rhs.
m_size[1];
259 template<
typename DataType>
266 template<
typename DataType>
269 m_transpose = newValue;
272 template<
typename DataType>
275 template<
typename DataType>
278 template<
typename DataType>
282 template<
typename DataType>
285 template<
typename DataType>
288 ASSERTL2(row < this->GetRows(), std::string(
"Row ") + boost::lexical_cast<std::string>(row) +
289 std::string(
" requested in a matrix with a maximum of ") + boost::lexical_cast<std::string>(this->GetRows()) +
290 std::string(
" rows"));
291 ASSERTL2(column < this->GetColumns(), std::string(
"Column ") + boost::lexical_cast<std::string>(column) +
292 std::string(
" requested in a matrix with a maximum of ") + boost::lexical_cast<std::string>(this->GetColumns()) +
293 std::string(
" columns"));
294 v_SetValue(row, column, d);
297 template<
typename DataType>
303 template<
typename DataType>
309 template<
typename DataType>
316 template<
typename DataType>