diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 8043598..aec01ea 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -616,6 +616,69 @@ namespace Aurora { } + } + + bool Matrix::setBlockValue(int aDim,int aBeginIndex, int aEndIndex, double value) { + if(aDim>2 ){ + std::cerr<<"block only support 1D-3D data!"<1){ + aDim = 1; + } + if (aBeginIndex>=getDimSize(aDim) || aBeginIndex<0){ + std::cerr<<"block BeginIndx error!BeginIndx:"<=getDimSize(aDim) || aEndIndex<0){ + std::cerr<<"block EndIndex error!EndIndex:"<