9 int skipIn) :
LinearOperator(ComputeRows(vecSize,startIndIn,endIndIn,skipIn),
57 Eigen::MatrixXd output(rows(),x.cols());
58 unsigned int outInd = 0;
59 const int multiplier = (
skip<0) ? -1.0 : 1.0;
61 output.row(outInd) = x.row(inInd);
71 Eigen::MatrixXd output = Eigen::MatrixXd::Zero(cols(), x.cols());
72 unsigned int outInd = 0;
73 const int multiplier = (
skip<0) ? -1.0 : 1.0;
75 output.row(inInd) = x.row(outInd);
84 Eigen::MatrixXd output = Eigen::MatrixXd::Zero(rows(), cols());
85 unsigned int outInd = 0;
87 output(outInd,inInd) = 1.0;
Generic linear operator base class.
virtual Eigen::MatrixXd Apply(Eigen::Ref< const Eigen::MatrixXd > const &x) override
virtual Eigen::MatrixXd ApplyTranspose(Eigen::Ref< const Eigen::MatrixXd > const &x) override
SliceOperator(unsigned int vecSize, int startIndIn, int endIndIn, int skipIn=1)
virtual Eigen::MatrixXd GetMatrix() override
static unsigned int ComputeRows(unsigned int vecSize, int startIndIn, int endIndIn, int skipIn)