Fix MatrixSlice scalar mode bug.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MATRIX_H
|
||||
|
||||
#include <memory>
|
||||
#include <complex>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -22,6 +23,8 @@ namespace Aurora {
|
||||
MatrixSlice(int aSize,int aStride, double* aData,ValueType aType = Normal,int SliceMode = 1,int aSize2 = 0, int aStride2 = 0);
|
||||
MatrixSlice& operator=(const MatrixSlice& slice);
|
||||
MatrixSlice& operator=(const Matrix& matrix);
|
||||
MatrixSlice& operator=(double value);
|
||||
MatrixSlice& operator=(std::complex<double> value);
|
||||
Matrix toMatrix() const;
|
||||
private:
|
||||
int mSliceMode = 0;//0 scalar, 1 vector, 2 Matrix
|
||||
|
||||
Reference in New Issue
Block a user