/** * Construct and returns a new selection view. * * @param offsets the offsets of the visible elements. * @return a new view. */ protected DoubleMatrix1D viewSelectionLike(int[] offsets) { return new SelectedDenseDoubleMatrix1D(this.elements,offsets); } /**
/** * Constructs a matrix view with the given parameters. * @param size the number of cells the matrix shall have. * @param elements the cells. * @param zero the index of the first element. * @param stride the number of indexes between any two elements, i.e. <tt>index(i+1)-index(i)</tt>. * @param offsets the offsets of the cells that shall be visible. * @param offset */ protected SelectedDenseDoubleMatrix1D(int size, double[] elements, int zero, int stride, int[] offsets, int offset) { setUp(size,zero,stride); this.elements = elements; this.offsets = offsets; this.offset = offset; this.isNoView = false; } /**
/** * Construct and returns a new selection view. * * @param offsets the offsets of the visible elements. * @return a new view. */ protected DoubleMatrix1D viewSelectionLike(int[] offsets) { return new SelectedDenseDoubleMatrix1D(this.elements,offsets); } }
/** * Constructs a matrix view with the given parameters. * @param size the number of cells the matrix shall have. * @param elements the cells. * @param zero the index of the first element. * @param stride the number of indexes between any two elements, i.e. <tt>index(i+1)-index(i)</tt>. * @param offsets the offsets of the cells that shall be visible. * @param offset */ protected SelectedDenseDoubleMatrix1D(int size, double[] elements, int zero, int stride, int[] offsets, int offset) { setUp(size,zero,stride); this.elements = elements; this.offsets = offsets; this.offset = offset; this.isNoView = false; } /**
/** * Construct and returns a new selection view. * * @param offsets the offsets of the visible elements. * @return a new view. */ protected DoubleMatrix1D viewSelectionLike(int[] offsets) { return new SelectedDenseDoubleMatrix1D(this.elements,offsets); } }
/** * Construct and returns a new selection view. * * @param offsets the offsets of the visible elements. * @return a new view. */ protected DoubleMatrix1D viewSelectionLike(int[] offsets) { return new SelectedDenseDoubleMatrix1D(this.elements,offsets); } /**
int[] viewOffsets = this.rowOffsets; int viewOffset = this.offset + _columnOffset(_columnRank(column)); return new SelectedDenseDoubleMatrix1D(viewSize,this.elements,viewZero,viewStride,viewOffsets,viewOffset);
int[] viewOffsets = this.columnOffsets; int viewOffset = this.offset + _rowOffset(_rowRank(row)); return new SelectedDenseDoubleMatrix1D(viewSize,this.elements,viewZero,viewStride,viewOffsets,viewOffset);
int[] viewOffsets = this.columnOffsets; int viewOffset = this.offset + _rowOffset(_rowRank(row)); return new SelectedDenseDoubleMatrix1D(viewSize,this.elements,viewZero,viewStride,viewOffsets,viewOffset);
int[] viewOffsets = this.rowOffsets; int viewOffset = this.offset + _columnOffset(_columnRank(column)); return new SelectedDenseDoubleMatrix1D(viewSize,this.elements,viewZero,viewStride,viewOffsets,viewOffset);