Class DoubleSquareArrayExtensions
The double square array extensions.
Inheritance
DoubleSquareArrayExtensions
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 Parameters
|
Improve this Doc
View Source
Average(Double[,])
Declaration
public static double Average(this double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
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 Parameters
|
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 Parameters
|
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 Parameters
|
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
Returns
Type Parameters
|
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 Parameters
|
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 Parameters
|
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 Parameters
|
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 Parameters
|
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 Parameters
|
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)
Declaration
public static bool PointIntersect(this double[, ] array, Point point)
Parameters
Type |
Name |
Description |
Double[,] |
array |
The array.
|
Point |
point |
The point.
|
Returns
|
Improve this Doc
View Source
PointIntersect(Double[,], Int32, Int32)
Declaration
public static bool PointIntersect(this double[, ] array, int x, int y)
Parameters
Returns
|
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 Parameters