Exemplo n.º 1
0
        /// <summary>
        /// Creates a new SimpleMatrix with the specified matrix used as its internal matrix.
        /// This means that the reference is saved and calls made to the returned SimpleMatrix
        /// will modify the passed in matrix.
        ///
        /// </summary>
        /// <param name="internalMat">The internal matrix of the returned SimpleMatrix (will be modified).</param>
        public static SimpleMatrix <T> wrap(T internalMat)
        {
            SimpleMatrix <T> ret = new SimpleMatrix <T>();

            ret.setMatrix(internalMat);
            return(ret);
        }