Exemplo n.º 1
0
        /// <summary>
        /// Element-wise finity check (not -Inf, Inf or NaN).
        /// </summary>
        /// <param name="source">The NdArray to apply this operation to.</param>
        /// <returns>A new NdArray containing the result of this operation.</returns>
        public static NdArray <bool> IsFinite(NdArray <T> source)
        {
            var(preparedTarget, preparedSource) = NdArray <T> .PrepareElemwise <bool, T>(source);

            preparedTarget.AssertBool();

            FillIsFinite(preparedTarget, preparedSource);

            return(preparedTarget);
        }