Search Results for

    Show / Hide Table of Contents

    Class DoubleSquareArrayExtensions

    The double square array extensions.

    Inheritance
    Object
    DoubleSquareArrayExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: System
    Assembly: Acoustics.Shared.dll
    Syntax
    public static class DoubleSquareArrayExtensions

    Methods

    | Improve this Doc View Source

    AddToArray<T>(T[,], T[,], DoubleSquareArrayExtensions.MergingDirection, Int32)

    adding a 2D-array to another 2D-array either by "column" or by "row".

    Declaration
    public static void AddToArray<T>(this T[, ] result, T[, ] array, DoubleSquareArrayExtensions.MergingDirection mergingDirection, int start = 0)
    Parameters
    Type Name Description
    T[,] result
    T[,] array
    DoubleSquareArrayExtensions.MergingDirection mergingDirection
    Int32 start
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Average(Double[,])

    Declaration
    public static double Average(this double[, ] matrix)
    Parameters
    Type Name Description
    Double[,] matrix
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    ColumnLength<T>(T[,])

    Declaration
    public static int ColumnLength<T>(this T[, ] matrix)
    Parameters
    Type Name Description
    T[,] matrix
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    EmptyCopy<T>(T[,])

    returns an empty matrix with the same number of rows and columns of the input matrix.

    Declaration
    public static T[, ] EmptyCopy<T>(this T[, ] matrix)
    Parameters
    Type Name Description
    T[,] matrix
    Returns
    Type Description
    T[,]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Fill<T>(T[,], T)

    Fills a given array with a supplied value.

    Declaration
    public static T[, ] Fill<T>(this T[, ] array, T value)
    Parameters
    Type Name Description
    T[,] array

    The array to manipulate.

    T value

    The Value to insert.

    Returns
    Type Description
    T[,]

    Returns a reference to the manipulated array.

    Type Parameters
    Name Description
    T

    The type of the given Array.

    | Improve this Doc View Source

    Fold<T, U>(T[,], Func<U, T, U>, U)

    Declaration
    public static U Fold<T, U>(this T[, ] array, Func<U, T, U> f, U seed)
    Parameters
    Type Name Description
    T[,] array
    Func<U, T, U> f
    U seed
    Returns
    Type Description
    U
    Type Parameters
    Name Description
    T
    U
    | Improve this Doc View Source

    ForEach<T>(T[,], Func<Int32, Int32, T>)

    Declaration
    public static T[, ] ForEach<T>(this T[, ] array, Func<int, int, T> transform)
    Parameters
    Type Name Description
    T[,] array
    Func<Int32, Int32, T> transform
    Returns
    Type Description
    T[,]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    GetColumn<T>(T[,], Int32)

    retrieving a full column of a matrix columnIndex is the column we want to access.

    Declaration
    public static T[] GetColumn<T>(this T[, ] matrix, int columnIndex)
    Parameters
    Type Name Description
    T[,] matrix
    Int32 columnIndex
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    GetRow<T>(T[,], Int32)

    retrieving a full row of a matrix rowIndex is the row we want to access.

    Declaration
    public static T[] GetRow<T>(this T[, ] matrix, int rowIndex)
    Parameters
    Type Name Description
    T[,] matrix
    Int32 rowIndex
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    LastColumnIndex<T>(T[,])

    Declaration
    public static int LastColumnIndex<T>(this T[, ] matrix)
    Parameters
    Type Name Description
    T[,] matrix
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    LastRowIndex<T>(T[,])

    Declaration
    public static int LastRowIndex<T>(this T[, ] matrix)
    Parameters
    Type Name Description
    T[,] matrix
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Map<T, U>(T[,], Func<T, U>)

    Declaration
    public static U[, ] Map<T, U>(this T[, ] array, Func<T, U> f)
    Parameters
    Type Name Description
    T[,] array
    Func<T, U> f
    Returns
    Type Description
    U[,]
    Type Parameters
    Name Description
    T
    U
    | Improve this Doc View Source

    MinMax(Double[,], out Double, out Double)

    returns the min and max values in a matrix of doubles.

    Declaration
    public static void MinMax(this double[, ] data, out double min, out double max)
    Parameters
    Type Name Description
    Double[,] data

    The audio data.

    Double min

    The min value.

    Double max

    The max value.

    | Improve this Doc View Source

    PointIntersect(Double[,], Point)

    The point intersect.

    Declaration
    public static bool PointIntersect(this double[, ] array, Point point)
    Parameters
    Type Name Description
    Double[,] array

    The array.

    Point point

    The point.

    Returns
    Type Description
    Boolean

    The Boolean.

    | Improve this Doc View Source

    PointIntersect(Double[,], Int32, Int32)

    The point intersect.

    Declaration
    public static bool PointIntersect(this double[, ] array, int x, int y)
    Parameters
    Type Name Description
    Double[,] array

    The array.

    Int32 x

    The x.

    Int32 y

    The y.

    Returns
    Type Description
    Boolean

    The Boolean.

    | Improve this Doc View Source

    RowLength<T>(T[,])

    Declaration
    public static int RowLength<T>(this T[, ] matrix)
    Parameters
    Type Name Description
    T[,] matrix
    Returns
    Type Description
    Int32
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top