Exemple #1
0
        /// <summary>
        /// Returns the inverse of this matrix. The inverse is calculated using LU decomposition.
        /// </summary>
        /// <returns>The inverse of this matrix.</returns>
        public override Matrix <float> Inverse()
        {
            var result = (DenseMatrix)Factors.Clone();

            LinearAlgebraControl.Provider.LUInverseFactored(result.Values, result.RowCount, Pivots);
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Returns the inverse of this matrix. The inverse is calculated using LU decomposition.
        /// </summary>
        /// <returns>The inverse of this matrix.</returns>
        public override Matrix <Complex> Inverse()
        {
            var result = (DenseMatrix)Factors.Clone();

            Control.LinearAlgebraProvider.LUInverseFactored(result.Data, result.RowCount, Pivots);
            return(result);
        }