/** * 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; } /**
/** * 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; } /**