/** * Constructs and returns a new view equal to the receiver. * The view is a shallow clone. Calls <code>clone()</code> and casts the result. * <p> * <b>Note that the view is not a deep copy.</b> * The returned matrix is backed by this matrix, so changes in the returned matrix are reflected in this matrix, and vice-versa. * <p> * Use {@link #copy()} if you want to construct an independent deep copy rather than a new view. * * @return a new view of the receiver. */ protected DoubleMatrix3D view() { return (DoubleMatrix3D) clone(); } /**
/** * Constructs and returns a new view equal to the receiver. * The view is a shallow clone. Calls <code>clone()</code> and casts the result. * <p> * <b>Note that the view is not a deep copy.</b> * The returned matrix is backed by this matrix, so changes in the returned matrix are reflected in this matrix, and vice-versa. * <p> * Use {@link #copy()} if you want to construct an independent deep copy rather than a new view. * * @return a new view of the receiver. */ protected DoubleMatrix3D view() { return (DoubleMatrix3D) clone(); } /**