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

📄 laindex.cc

📁 lapack++的2.5.2版本
💻 CC
字号:
// Neither the Institutions (University of Tennessee, and Oak Ridge National// Laboratory) nor the Authors make any representations about the suitability // of this software for any purpose.  This software is provided ``as is'' // without express or implied warranty.//// LAPACK++ was funded in part by the U.S. Department of Energy, the// National Science Foundation and the State of Tennessee.#ifdef HAVE_CONFIG_H# include <config.h>#endif#include "laindex.h"#include "laexcp.h"LaIndex::LaIndex(int start, int end)   : start_(start)     , inc_(1)     , end_(end){   if (!(start <= end))      throw LaException("LaIndex(int,int)", "assertion (start <= end) failed");}LaIndex::LaIndex(int start, int end, int increment)   : start_(start)   , inc_(increment)   , end_(end){    if (!(increment != 0))      throw LaException("LaIndex(int,int,int)", "assertion (increment != 0) failed");   if (increment > 0)   {      if (!(start <= end))	 throw LaException("LaIndex(int,int,int)", "assertion (start <= end) failed");   }   else   {      if (!(start >= end))	 throw LaException("LaIndex(int,int,int)", "assertion (start >= end) failed");   }}LaIndex& LaIndex::set(int start, int end, int increment) {   if (!(increment != 0))      throw LaException("LaIndex::set(int,int,int)", "assertion (increment != 0) failed");   if (increment > 0)   {      if (!(start <= end))	 throw LaException("LaIndex::set(int,int,int)", "assertion (start <= end) failed");   }   else   {      if (!(start >= end))	 throw LaException("LaIndex::set(int,int,int)", "assertion (start >= end) failed");   }   start_=start;   inc_=increment;   end_=end;    return *this;}

⌨️ 快捷键说明

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