// FullMatrix.cpp
//
// Template class for normal matrices.
// A size_t is used for indexing. Indexing starts at 1.
//
// 2002-4-8 DD Another possibility FArray; Use or redundant values nr, nc
//
// (C) Datasim Component Technology 1999
#ifndef DSFullMatrix_cpp
#define DSFullMatrix_cpp
#include "FullMatrix.hpp"
// Constructors & destructor
template
FullMatrix::FullMatrix(): MatrixStructure()
{ // Default constructor
m_structure=FullArray();
nr = nc = 1;
}
template
FullMatrix::FullMatrix(size_t rows, size_t columns): MatrixStructure()
{ // Constructor with size
// Create the rows
m_structure=FullArray(rows);
// Add the colums to the rows
for (size_t i=1; i