diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 6d782a5..aad91f2 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -658,6 +658,10 @@ namespace Aurora { std::cerr<<"setBlockValue only support 1D-3D data!"<1){ aDim = 1; @@ -711,6 +715,70 @@ namespace Aurora { } + } + + bool Matrix::setBlockComplexValue(int aDim,int aBeginIndex, int aEndIndex, std::complex value) { + if(aDim>2 ){ + std::cerr<<"setBlockValue only support 1D-3D data!"<1){ + aDim = 1; + } + if (aBeginIndex>=getDimSize(aDim) || aBeginIndex<0){ + std::cerr<<"setBlockValue BeginIndx error!BeginIndx:"<=getDimSize(aDim) || aEndIndex<0){ + std::cerr<<"setBlockValue EndIndex error!EndIndex:"< value); + bool setBlock(int aDim,int aBeginIndx, int aEndIndex,const Matrix& src);