|
STK++ 1.0
|
00001 /*--------------------------------------------------------------------*/ 00002 /* Copyright (C) 2004-2007 Serge Iovleff 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as 00006 published by the Free Software Foundation; either version 2 of the 00007 License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public 00015 License along with this program; if not, write to the 00016 Free Software Foundation, Inc., 00017 59 Temple Place, 00018 Suite 330, 00019 Boston, MA 02111-1307 00020 USA 00021 00022 Contact : Serge.Iovleff@stkpp.org 00023 */ 00024 00025 /* 00026 * Project: Algebra 00027 * Purpose: Define the MatrixSquare class. 00028 * Author: Serge Iovleff, serge.iovleff@stkpp.org 00029 * 00030 **/ 00031 00036 #include "../include/STK_MatrixSquare.h" 00037 00038 namespace STK 00039 { 00040 /* Default constructor with rangeHo_=(1:0) and rangeVe_=(1:0). 00041 * @param I range of the Rows and Cols 00042 **/ 00043 MatrixSquare::MatrixSquare( Range const& I) 00044 : Matrix(I, I) 00045 { ;} 00046 00047 /* constructor with rangeHo_and rangeVe_ givens, 00048 * initialization with a constant. 00049 * @param I range of the Rows and Cols 00050 * @param v initial value of the container 00051 **/ 00052 MatrixSquare::MatrixSquare( Range const& I, Real const& v) 00053 : Matrix(I, I, v) 00054 { ;} 00055 00056 /* Copy constructor 00057 * @param T the container to copy 00058 * @param ref true if T is wrapped 00059 **/ 00060 MatrixSquare::MatrixSquare( const MatrixSquare &T, bool ref) 00061 : Matrix(T, ref) 00062 { ;} 00063 00064 /* constructor by reference, ref_=1. */ 00065 MatrixSquare::MatrixSquare( const Matrix& T, Range const& I) 00066 : Matrix(T, I, I) 00067 { ;} 00068 00069 00070 /* destructor. */ 00071 MatrixSquare::~MatrixSquare() { ;} 00072 00073 } // namespace STK