⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix_base.hxx

📁 Multivac 的Level set包
💻 HXX
字号:
// Copyright (C) 2001-2004 Vivien Mallet//// This file is part of Seldon library.// Seldon library provides matrices and vectors structures for// linear algebra.// // Seldon is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.// // Seldon is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License (file "license") for more details.//// For more information, please see the Seldon home page://     http://spacetown.free.fr/lib/seldon/// To be included by Seldon.hxx#ifndef SELDON_FILE_MATRIX_BASE_HXX#include "../Common/Common.hxx"#include "../Common/Properties.hxx"#include "../Common/Storage.hxx"#include "../Common/Errors.cxx"#include "../Common/Allocator.hxx"namespace Seldon{    //! Base class for all matrices.  /*!    It stores some data and matrix dimensions. It defines basic    methods as well.  */  template <class T, class Allocator = SELDON_DEFAULT_ALLOCATOR<T> >  class Matrix_Base  {    // typdef declarations.  public:    typedef typename Allocator::value_type value_type;    typedef typename Allocator::pointer pointer;    typedef typename Allocator::const_pointer const_pointer;    typedef typename Allocator::reference reference;    typedef typename Allocator::const_reference const_reference;    // Static attributes.  protected:    static Allocator allocator_;    // Attributes.  protected:    // Number of rows.    int m_;    // Number of columns.    int n_;    // Pointer to stored elements.    pointer data_;    // Methods.  public:    // Constructors.    Matrix_Base();    Matrix_Base(int i);    Matrix_Base(int i, int j);      // Destructor.    ~Matrix_Base();    // Basic methods.    int GetM() const;    int GetN() const;    int GetSize() const;    pointer GetData() const;    const_pointer GetDataConst() const;    void* GetDataVoid() const;    const void* GetDataConstVoid() const;  };  // Matrix allocator.  template <class T, class Allocator>  Allocator Matrix_Base<T, Allocator>::allocator_;  template <class T, class Prop, class Storage, class Allocator>  ostream& operator << (ostream& out,			const Matrix<T, Prop, Storage, Allocator>& A);} // namespace Seldon.#define SELDON_FILE_MATRIX_BASE_HXX#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -