Class Matrix
Static class Matrix. Defines a set of extension methods
that operates mainly on multidimensional arrays and vectors.
Inheritance
System.Object
Matrix
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public static class Matrix : object
Examples
Introduction
Declaring and using matrices in the ISynergy.Framework.Mathematics.NET Framework does
not requires much. In fact, it does not require anything else
that is not already present at the .NET Framework. If you have
already existing and working code using other libraries, you
don't have to convert your matrices to any special format used
by ISynergy.Framework.Mathematics.NET. This is because ISynergy.Framework.Mathematics.NET is built to interoperate
with other libraries and existing solutions, relying solely on
default .NET structures to work.
To begin, please add the following using
directive on
top of your .cs (or equivalent) source code file:
using ISynergy.Framework.Mathematics;
This is all you need to start using the ISynergy.Framework.Mathematics.NET matrix library.
Creating matrices
Let's start by declaring a matrix, or otherwise specifying matrices
from other sources. The most straightforward way to declare a matrix
in ISynergy.Framework.Mathematics.NET is simply using:
double[,] matrix =
{
{ 1, 2 },
{ 3, 4 },
{ 5, 6 },
};
Yep, that is right. You don't need to create any fancy custom Matrix
classes or vectors to make ISynergy.Framework.Mathematics.NET work, which is a plus if you
have already existent code using other libraries. You are also free
to use both the multidimensional matrix syntax above or the jagged
matrix syntax below:
double[][] matrix =
{
new double[] { 1, 2 },
new double[] { 3, 4 },
new double[] { 5, 6 },
};
Special purpose matrices can also be created through specialized methods.
Those include
// Creates a vector of indices
int[] idx = Matrix.Indices(0, 10); // { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
// Creates a step vector within a given interval
double[] interval = Matrix.Interval(from: -2, to: 4); // { -2, -1, 0, 1, 2, 3, 4 };
// Special matrices
double[,] I = Matrix.Identity(3); // creates a 3x3 identity matrix
double[,] magic = Matrix.Magic(5); // creates a magic square matrix of size 5
double[] v = Matrix.Vector(5, 1.0); // generates { 1, 1, 1, 1, 1 }
double[,] diagonal = Matrix.Diagonal(v); // matrix with v on its diagonal
Another way to declare matrices is by parsing the contents of a string:
string str = @"1 2
3 4";
double[,] matrix = Matrix.Parse(str);
You can even read directly from matrices formatted in C# syntax:
string str = @"double[,] matrix =
{
{ 1, 2 },
{ 3, 4 },
{ 5, 6 },
}";
double[,] multid = Matrix.Parse(str, CSharpMatrixFormatProvider.InvariantCulture);
double[,] jagged = Matrix.ParseJagged(str, CSharpMatrixFormatProvider.InvariantCulture);
And even from Octave-compatible syntax!
string str = "[1 2; 3 4]";
double[,] matrix = Matrix.Parse(str, OctaveMatrixFormatProvider.InvariantCulture);
There are also other methods, such as specialization for arrays and other formats.
For more details, please take a look on CSharpMatrixFormatProvider,
CSharpArrayFormatProvider, DefaultArrayFormatProvider,
DefaultMatrixFormatProvider and Parse(String).
Matrix operations
Albeit being simple double[] matrices, the framework leverages
.NET extension methods to support all basic matrix operations. For instance,
consider the elementwise operations (also known as dot operations in Octave):
double[] vector = { 0, 2, 4 };
double[] a = vector.ElementwiseMultiply(2); // vector .* 2, generates { 0, 4, 8 }
double[] b = vector.ElementwiseDivide(2); // vector ./ 2, generates { 0, 1, 2 }
double[] c = vector.ElementwisePower(2); // vector .^ 2, generates { 0, 4, 16 }
Operations between vectors, matrices, and both are also completely supported:
// Declare two vectors
double[] u = { 1, 6, 3 };
double[] v = { 9, 4, 2 };
// Products between vectors
double inner = u.InnerProduct(v); // 39.0
double[,] outer = u.OuterProduct(v); // see below
double[] kronecker = u.KroneckerProduct(v); // { 9, 4, 2, 54, 24, 12, 27, 12, 6 }
double[][] cartesian = u.CartesianProduct(v); // all possible pair-wise combinations
/* outer =
{
{ 9, 4, 2 },
{ 54, 24, 12 },
{ 27, 12, 6 },
}; */
// Addition
double[] addv = u.Add(v); // { 10, 10, 5 }
double[] add5 = u.Add(5); // { 6, 11, 8 }
// Elementwise operations
double[] abs = u.Abs(); // { 1, 6, 3 }
double[] log = u.Log(); // { 0, 1.79, 1.09 }
// Apply any function to all elements in a vector
double[] cos = u.Apply(Math.Cos); // { 0.54, 0.96, -0.989 }
u.ApplyInPlace(Math.Cos); // can also do optionally in-place
// Declare a matrix
double[,] M =
{
{ 0, 5, 2 },
{ 2, 1, 5 }
};
// Extract a subvector from v:
double[] vcut = v.Submatrix(0, 1); // { 9, 4 }
// Some operations between vectors and matrices
double[] Mv = m.Multiply(v); // { 24, 32 }
double[] vM = vcut.Multiply(m); // { 8, 49, 38 }
// Some operations between matrices
double[,] Md = m.MultiplyByDiagonal(v); // { { 0, 20, 4 }, { 18, 4, 10 } }
double[,] MMt = m.MultiplyByTranspose(m); // { { 29, 15 }, { 15, 30 } }
Please note this is by no means an extensive list; please take a look on
all members available on this class or (preferably) use IntelliSense to
navigate through all possible options when trying to perform an operation.
Methods
View Source
Abs(Double[])
Elementwise absolute value.
Declaration
public static double[] Abs(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Abs(Double[], Double[])
Elementwise absolute value.
Declaration
public static double[] Abs(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Abs(Double[][])
Elementwise absolute value.
Declaration
public static double[][] Abs(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Abs(Double[][], Double[][])
Elementwise absolute value.
Declaration
public static double[][] Abs(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Abs(Double[,])
Elementwise absolute value.
Declaration
public static double[, ] Abs(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Abs(Double[,], Double[,])
Elementwise absolute value.
Declaration
public static double[, ] Abs(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Apply<TInput, TResult>(TInput[], Func<TInput, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TInput, TResult>(this TInput[] vector, Func<TInput, TResult> func)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
|
Func<TInput, TResult> |
func |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[], Func<TInput, TResult>, TResult[])
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TInput, TResult>(this TInput[] vector, Func<TInput, TResult> func, TResult[] result)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
|
Func<TInput, TResult> |
func |
|
TResult[] |
result |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[], Func<TInput, Int32, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TInput, TResult>(this TInput[] vector, Func<TInput, int, TResult> func)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
|
Func<TInput, System.Int32, TResult> |
func |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[], Func<TInput, Int32, TResult>, TResult[])
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TInput, TResult>(this TInput[] vector, Func<TInput, int, TResult> func, TResult[] result)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
|
Func<TInput, System.Int32, TResult> |
func |
|
TResult[] |
result |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[][], Func<TInput, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[][] Apply<TInput, TResult>(TInput[][] matrix, Func<TInput, TResult> func)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
|
Func<TInput, TResult> |
func |
|
Returns
Type |
Description |
TResult[][] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[][], Func<TInput, TResult>, TResult[][])
Applies a function to every element of the array.
Declaration
public static TResult[][] Apply<TInput, TResult>(this TInput[][] matrix, Func<TInput, TResult> func, TResult[][] result)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
|
Func<TInput, TResult> |
func |
|
TResult[][] |
result |
|
Returns
Type |
Description |
TResult[][] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[][], Func<TInput, Int32, Int32, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[][] Apply<TInput, TResult>(this TInput[][] matrix, Func<TInput, int, int, TResult> func)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
|
Func<TInput, System.Int32, System.Int32, TResult> |
func |
|
Returns
Type |
Description |
TResult[][] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[][], Func<TInput, Int32, Int32, TResult>, TResult[][])
Applies a function to every element of the array.
Declaration
public static TResult[][] Apply<TInput, TResult>(this TInput[][] matrix, Func<TInput, int, int, TResult> func, TResult[][] result)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
|
Func<TInput, System.Int32, System.Int32, TResult> |
func |
|
TResult[][] |
result |
|
Returns
Type |
Description |
TResult[][] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[,], Func<TInput, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[, ] Apply<TInput, TResult>(this TInput[, ] matrix, Func<TInput, TResult> func)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
|
Func<TInput, TResult> |
func |
|
Returns
Type |
Description |
TResult[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[,], Func<TInput, TResult>, TResult[,])
Applies a function to every element of the array.
Declaration
public static TResult[, ] Apply<TInput, TResult>(this TInput[, ] matrix, Func<TInput, TResult> func, TResult[, ] result)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
|
Func<TInput, TResult> |
func |
|
TResult[,] |
result |
|
Returns
Type |
Description |
TResult[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[,], Func<TInput, Int32, Int32, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[, ] Apply<TInput, TResult>(this TInput[, ] matrix, Func<TInput, int, int, TResult> func)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
|
Func<TInput, System.Int32, System.Int32, TResult> |
func |
|
Returns
Type |
Description |
TResult[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TInput, TResult>(TInput[,], Func<TInput, Int32, Int32, TResult>, TResult[,])
Applies a function to every element of the array.
Declaration
public static TResult[, ] Apply<TInput, TResult>(this TInput[, ] matrix, Func<TInput, int, int, TResult> func, TResult[, ] result)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
|
Func<TInput, System.Int32, System.Int32, TResult> |
func |
|
TResult[,] |
result |
|
Returns
Type |
Description |
TResult[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TResult |
|
View Source
Apply<TData, TResult>(IList<TData>, Func<TData, TResult>)
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TData, TResult>(this IList<TData> vector, Func<TData, TResult> func)
Parameters
Type |
Name |
Description |
IList<TData> |
vector |
|
Func<TData, TResult> |
func |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TData |
|
TResult |
|
View Source
Apply<TData, TResult>(IList<TData>, Func<TData, TResult>, TResult[])
Applies a function to every element of the array.
Declaration
public static TResult[] Apply<TData, TResult>(this IList<TData> vector, Func<TData, TResult> func, TResult[] result)
Parameters
Type |
Name |
Description |
IList<TData> |
vector |
|
Func<TData, TResult> |
func |
|
TResult[] |
result |
|
Returns
Type |
Description |
TResult[] |
|
Type Parameters
Name |
Description |
TData |
|
TResult |
|
View Source
ArgMax<T>(T[])
Gets the maximum element in a vector.
Declaration
public static int ArgMax<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
ArgMax<T>(T[], out T)
Gets the maximum element in a vector.
Declaration
public static int ArgMax<T>(this T[] values, out T max)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
T |
max |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
ArgMax<T>(T[][])
Gets the index of the maximum element in a matrix.
Declaration
public static Tuple<int, int> ArgMax<T>(this T[][] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
Tuple<System.Int32, System.Int32> |
|
Type Parameters
View Source
ArgMax<T>(T[][], Int32)
Gets the index of the maximum element in a matrix across a given dimension.
Declaration
public static int[] ArgMax<T>(this T[][] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMax<T>(T[][], Int32, Int32[])
Gets the index of the maximum element in a matrix across a given dimension.
Declaration
public static int[] ArgMax<T>(this T[][] matrix, int dimension, int[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMax<T>(T[,])
Gets the index of the maximum element in a matrix.
Declaration
public static Tuple<int, int> ArgMax<T>(this T[, ] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
Tuple<System.Int32, System.Int32> |
|
Type Parameters
View Source
ArgMax<T>(T[,], Int32)
Gets the index of the maximum element in a matrix across a given dimension.
Declaration
public static int[] ArgMax<T>(this T[, ] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMax<T>(T[,], Int32, Int32[])
Gets the index of the maximum element in a matrix across a given dimension.
Declaration
public static int[] ArgMax<T>(this T[, ] matrix, int dimension, int[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMin<T>(T[])
Gets the minimum element in a vector.
Declaration
public static int ArgMin<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
ArgMin<T>(T[], out T)
Gets the minimum element in a vector.
Declaration
public static int ArgMin<T>(this T[] values, out T min)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
T |
min |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
ArgMin<T>(T[][])
Gets the index of the minimum element in a matrix.
Declaration
public static Tuple<int, int> ArgMin<T>(this T[][] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
Tuple<System.Int32, System.Int32> |
|
Type Parameters
View Source
ArgMin<T>(T[][], Int32)
Gets the index of the minimum element in a matrix across a given dimension.
Declaration
public static int[] ArgMin<T>(this T[][] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMin<T>(T[][], Int32, Int32[])
Gets the index of the minimum element in a matrix across a given dimension.
Declaration
public static int[] ArgMin<T>(this T[][] matrix, int dimension, int[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMin<T>(T[,])
Gets the index of the minimum element in a matrix.
Declaration
public static Tuple<int, int> ArgMin<T>(this T[, ] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
Tuple<System.Int32, System.Int32> |
|
Type Parameters
View Source
ArgMin<T>(T[,], Int32)
Gets the index of the minimum element in a matrix across a given dimension.
Declaration
public static int[] ArgMin<T>(this T[, ] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgMin<T>(T[,], Int32, Int32[])
Gets the index of the minimum element in a matrix across a given dimension.
Declaration
public static int[] ArgMin<T>(this T[, ] matrix, int dimension, int[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ArgSort<T>(T[])
Gets the indices that sort a vector.
Declaration
public static int[] ArgSort<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
Bottom<T>(T[], Int32, Boolean)
Retrieves the bottom count
values of an array.
Declaration
public static int[] Bottom<T>(this T[] values, int count, bool inPlace = false)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
count |
|
System.Boolean |
inPlace |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
Cartesian<T>(T[], T[])
Computes the Cartesian product of two sets.
Declaration
public static T[][] Cartesian<T>(this T[] sequence1, T[] sequence2)
Parameters
Type |
Name |
Description |
T[] |
sequence1 |
|
T[] |
sequence2 |
|
Returns
Type Parameters
View Source
Cartesian<T>(T[][])
Computes the Cartesian product of many sets.
Declaration
public static T[][] Cartesian<T>(params T[][] sequences)
Parameters
Type |
Name |
Description |
T[][] |
sequences |
|
Returns
Type Parameters
View Source
Cartesian<T>(IEnumerable<IEnumerable<T>>)
Computes the Cartesian product of many sets.
Declaration
public static IEnumerable<IEnumerable<T>> Cartesian<T>(this IEnumerable<IEnumerable<T>> sequences)
Parameters
Type |
Name |
Description |
IEnumerable<IEnumerable<T>> |
sequences |
|
Returns
Type |
Description |
IEnumerable<IEnumerable<T>> |
|
Type Parameters
View Source
Ceiling(Double[])
Declaration
public static double[] Ceiling(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Ceiling(Double[], Double[])
Declaration
public static double[] Ceiling(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Ceiling(Double[][])
Declaration
public static double[][] Ceiling(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Ceiling(Double[][], Double[][])
Declaration
public static double[][] Ceiling(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Ceiling(Double[,])
Declaration
public static double[, ] Ceiling(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Ceiling(Double[,], Double[,])
Declaration
public static double[, ] Ceiling(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Centering(Int32)
Creates a centering matrix of size N x N
in the
form (I - 1N)
where 1N
is a matrix with
all elements equal to 1 / N
.
Declaration
public static double[, ] Centering(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Clear(Array)
Sets all elements in an array to zero.
Declaration
public static void Clear(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
View Source
Clear<T>(T[][])
Sets all elements in an array to zero.
Declaration
public static void Clear<T>(this T[][] array)
Parameters
Type |
Name |
Description |
T[][] |
array |
|
Type Parameters
View Source
Columns<T>(T[][])
Gets the number of columns in a jagged matrix.
Declaration
public static int Columns<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix whose number of columns must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Columns<T>(T[][], Boolean)
Gets the number of columns in a jagged matrix.
Declaration
public static int Columns<T>(this T[][] matrix, bool max = false)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix whose number of columns must be computed.
|
System.Boolean |
max |
Whether to compute the maximum length across all rows (because
rows can have different lengths in jagged matrices). Default is false.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Columns<T>(T[,,])
Gets the number of columns in a multidimensional matrix.
Declaration
public static int Columns<T>(this T[,, ] matrix)
Parameters
Type |
Name |
Description |
T[,,] |
matrix |
The matrix whose number of columns must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Columns<T>(T[,])
Gets the number of columns in a multidimensional matrix.
Declaration
public static int Columns<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose number of columns must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Columns<T>(IEnumerable<T[]>)
Gets the number of columns in a jagged matrix.
Declaration
public static int Columns<T>(this IEnumerable<T[]> matrix)
Parameters
Type |
Name |
Description |
IEnumerable<T[]> |
matrix |
The matrix whose number of columns must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Columns<T>(IList<IList<T>>)
Gets the number of columns in a jagged matrix.
Declaration
public static int Columns<T>(this IList<IList<T>> values)
Parameters
Type |
Name |
Description |
IList<IList<T>> |
values |
The matrix whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
ColumnVector<T>(T[])
Creates a Nx1 matrix with a single column vector of size N.
Declaration
public static T[, ] ColumnVector<T>(params T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[], T)
Combines a vector and a element horizontally.
Declaration
public static T[] Concatenate<T>(this T[] vector, T element)
Parameters
Type |
Name |
Description |
T[] |
vector |
|
T |
element |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[], T[])
Combines two vectors horizontally.
Declaration
public static T[] Concatenate<T>(this T[] a, params T[] b)
Parameters
Type |
Name |
Description |
T[] |
a |
|
T[] |
b |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[][])
Combine vectors horizontally.
Declaration
public static T[] Concatenate<T>(this T[][] vectors)
Parameters
Type |
Name |
Description |
T[][] |
vectors |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[][], T[][])
Combines two matrices horizontally.
Declaration
public static T[][] Concatenate<T>(this T[][] a, T[][] b)
Parameters
Type |
Name |
Description |
T[][] |
a |
|
T[][] |
b |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[][][])
Combines a matrix and a vector horizontally.
Declaration
public static T[][] Concatenate<T>(params T[][][] matrices)
Parameters
Type |
Name |
Description |
T[][][] |
matrices |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[,], T[])
Combines a matrix and a vector horizontally.
Declaration
public static T[, ] Concatenate<T>(this T[, ] matrix, T[] vector)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
T[] |
vector |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[,], T[,])
Combines two matrices horizontally.
Declaration
public static T[, ] Concatenate<T>(this T[, ] a, T[, ] b)
Parameters
Type |
Name |
Description |
T[,] |
a |
|
T[,] |
b |
|
Returns
Type Parameters
View Source
Concatenate<T>(T[,][])
Combines a matrix and a vector horizontally.
Declaration
public static T[, ] Concatenate<T>(params T[, ][] matrices)
Parameters
Type |
Name |
Description |
T[,][] |
matrices |
|
Returns
Type Parameters
View Source
Convert(Array, Type)
Converts the values of a tensor.
Declaration
public static Array Convert(this Array array, Type type)
Parameters
Type |
Name |
Description |
Array |
array |
The tensor to be converted.
|
Type |
type |
The type of the output.
|
Returns
View Source
Convert<TOutput>(Array)
Converts the values of a tensor.
Declaration
public static Array Convert<TOutput>(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
The tensor to be converted.
|
Returns
Type Parameters
Name |
Description |
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[])
Converts the values of a vector using the given converter expression.
Declaration
public static TOutput[] Convert<TInput, TOutput>(this TInput[] vector)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
The vector to be converted.
|
Returns
Type |
Description |
TOutput[] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[], Converter<TInput, TOutput>)
Converts the values of a vector using the given converter expression.
Declaration
public static TOutput[] Convert<TInput, TOutput>(this TInput[] vector, Converter<TInput, TOutput> converter)
Parameters
Type |
Name |
Description |
TInput[] |
vector |
The vector to be converted.
|
Converter<TInput, TOutput> |
converter |
The converter function.
|
Returns
Type |
Description |
TOutput[] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[][])
Converts the values of a matrix using the default converter.
Declaration
public static TOutput[, ] Convert<TInput, TOutput>(TInput[][] matrix)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
The matrix to be converted.
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[][], Converter<TInput, TOutput>)
Converts the values of a matrix using the given converter expression.
Declaration
public static TOutput[, ] Convert<TInput, TOutput>(this TInput[][] matrix, Converter<TInput, TOutput> converter)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
The matrix to be converted.
|
Converter<TInput, TOutput> |
converter |
The converter function.
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[,])
Converts the values of a matrix using the default converter.
Declaration
public static TOutput[, ] Convert<TInput, TOutput>(this TInput[, ] matrix)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
The matrix to be converted.
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convert<TInput, TOutput>(TInput[,], Converter<TInput, TOutput>)
Converts the values of a matrix using the given converter expression.
Declaration
public static TOutput[, ] Convert<TInput, TOutput>(this TInput[, ] matrix, Converter<TInput, TOutput> converter)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
The vector to be converted.
|
Converter<TInput, TOutput> |
converter |
The converter function.
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
The type of the input.
|
TOutput |
The type of the output.
|
View Source
Convolve(Double[], Double[])
Convolves an array with the given kernel.
Declaration
public static double[] Convolve(this double[] a, double[] kernel)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
A floating number array.
|
System.Double[] |
kernel |
A convolution kernel.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Convolve(Double[], Double[], Boolean)
Convolves an array with the given kernel.
Declaration
public static double[] Convolve(this double[] a, double[] kernel, bool trim)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
A floating number array.
|
System.Double[] |
kernel |
A convolution kernel.
|
System.Boolean |
trim |
If true the resulting array will be trimmed to
have the same length as the input array. Default is false.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Copy(Array, Array)
Copies elements from an array to another array even if one
is a jagged array and the other a multidimensional array.
Declaration
public static void Copy(this Array source, Array destination)
Parameters
Type |
Name |
Description |
Array |
source |
The array whose elements should be copied from.
|
Array |
destination |
The array where elements will be written to.
|
View Source
Copy<T>(T[][])
Creates a member-wise copy of a jagged matrix. Matrix elements
themselves are copied only in a shallowed manner (i.e. not cloned).
Declaration
public static T[][] Copy<T>(this T[][] a)
Parameters
Type |
Name |
Description |
T[][] |
a |
|
Returns
Type Parameters
View Source
Copy<T>(T[,])
Creates a memberwise copy of a matrix. Matrix elements
themselves are copied only in a shallow manner (i.e. not cloned).
Declaration
public static T[, ] Copy<T>(this T[, ] a)
Parameters
Type |
Name |
Description |
T[,] |
a |
|
Returns
Type Parameters
View Source
CopyTo<T>(T[], T[])
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[] vector, T[] destination)
Parameters
Type |
Name |
Description |
T[] |
vector |
The source vector to be copied.
|
T[] |
destination |
The matrix where the elements should be copied to.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
CopyTo<T>(T[][], T[][], Boolean)
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[][] matrix, T[][] destination, bool transpose = false)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The source matrix to be copied.
|
T[][] |
destination |
The matrix where the elements should be copied to.
|
System.Boolean |
transpose |
Whether to transpose the matrix when copying or not. Default is false.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
CopyTo<T>(T[][], T[,])
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[][] matrix, T[, ] destination)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The source matrix to be copied.
|
T[,] |
destination |
The matrix where the elements should be copied to.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
CopyTo<T>(T[,], T[][])
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[, ] matrix, T[][] destination)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The source matrix to be copied.
|
T[][] |
destination |
The matrix where the elements should be copied to.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
CopyTo<T>(T[,], T[][], Boolean)
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[, ] matrix, T[][] destination, bool transpose = false)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The source matrix to be copied.
|
T[][] |
destination |
The matrix where the elements should be copied to.
|
System.Boolean |
transpose |
Whether to transpose the matrix when copying or not. Default is false.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
CopyTo<T>(T[,], T[,], Boolean)
Copies the content of an array to another array.
Declaration
public static void CopyTo<T>(this T[, ] matrix, T[, ] destination, bool transpose = false)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The source matrix to be copied.
|
T[,] |
destination |
The matrix where the elements should be copied to.
|
System.Boolean |
transpose |
Whether to transpose the matrix when copying or not. Default is false.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
Count<T>(T[], Func<T, Boolean>)
Gets the number of elements matching a certain criteria.
Declaration
public static int Count<T>(this T[] data, Func<T, bool> func)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
Create(Type, Int32[], Object)
Creates a tensor with all values set to a given value.
Declaration
public static Array Create(Type elementType, int[] shape, object value)
Parameters
Type |
Name |
Description |
Type |
elementType |
The type of the elements to be contained in the matrix.
|
System.Int32[] |
shape |
The number of dimensions that the matrix should have.
|
System.Object |
value |
The initial values for the vector.
|
Returns
Type |
Description |
Array |
A matrix of the specified size.
|
View Source
Create<T>(T[][])
Creates a matrix with the given rows.
Declaration
public static T[, ] Create<T>(params T[][] rows)
Parameters
Type |
Name |
Description |
T[][] |
rows |
The row vectors in the matrix.
|
Returns
Type Parameters
View Source
Create<T>(T[,])
Creates a matrix with the given values.
Declaration
public static T[, ] Create<T>(T[, ] values)
Parameters
Type |
Name |
Description |
T[,] |
values |
The values in the matrix.
|
Returns
Type Parameters
View Source
Create<T>(Int32, Int32, T)
Creates a matrix with all values set to a given value.
Declaration
public static T[, ] Create<T>(int rows, int columns, T value)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
T |
value |
The initial values for the vector.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
See Also
View Source
Create<T>(Int32, Int32, T[])
Creates a matrix with all values set to a given value.
Declaration
public static T[, ] Create<T>(int rows, int columns, params T[] values)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
T[] |
values |
The initial values for the matrix.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
View Source
Create<T>(Int32, Int32, T[,], Boolean)
Creates a matrix with all values set to a given value.
Declaration
public static T[, ] Create<T>(int rows, int columns, T[, ] values, bool transpose = false)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
T[,] |
values |
The initial values for the matrix.
|
System.Boolean |
transpose |
Whether to transpose the matrix when copying or not. Default is false.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
View Source
Create<T>(Int32[], T)
Creates a tensor with all values set to a given value.
Declaration
public static Array Create<T>(int[] shape, T value)
Parameters
Type |
Name |
Description |
System.Int32[] |
shape |
The number of dimensions that the matrix should have.
|
T |
value |
The initial values for the vector.
|
Returns
Type |
Description |
Array |
A matrix of the specified size.
|
Type Parameters
View Source
CreateAs(Array, Type)
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static Array CreateAs(Array matrix, Type type)
Parameters
Type |
Name |
Description |
Array |
matrix |
|
Type |
type |
|
Returns
View Source
CreateAs<T>(T[][])
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static T[, ] CreateAs<T>(T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type Parameters
View Source
CreateAs<T>(T[,])
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static T[, ] CreateAs<T>(T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type Parameters
View Source
CreateAs<TInput, TOutput>(TInput[][])
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static TOutput[, ] CreateAs<TInput, TOutput>(TInput[][] matrix)
Parameters
Type |
Name |
Description |
TInput[][] |
matrix |
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TOutput |
|
View Source
CreateAs<TInput, TOutput>(TInput[,,])
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static TOutput[,, ] CreateAs<TInput, TOutput>(TInput[,, ] matrix)
Parameters
Type |
Name |
Description |
TInput[,,] |
matrix |
|
Returns
Type |
Description |
TOutput[,,] |
|
Type Parameters
Name |
Description |
TInput |
|
TOutput |
|
View Source
CreateAs<TInput, TOutput>(TInput[,])
Creates a new multidimensional matrix with the same shape as another matrix.
Declaration
public static TOutput[, ] CreateAs<TInput, TOutput>(TInput[, ] matrix)
Parameters
Type |
Name |
Description |
TInput[,] |
matrix |
|
Returns
Type |
Description |
TOutput[,] |
|
Type Parameters
Name |
Description |
TInput |
|
TOutput |
|
View Source
Cross(Double[], Double[], Double[])
Declaration
public static double[] Cross(this double[] a, double[] b, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
System.Double[] |
b |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
CumulativeSum(Double[])
Declaration
public static double[] CumulativeSum(this double[] vector)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector whose cumulative sum will be calculated.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
CumulativeSum(Double[], Double[])
Declaration
public static double[] CumulativeSum(this double[] vector, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector whose cumulative sum will be calculated.
|
System.Double[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
CumulativeSum(Double[][], Int32)
Declaration
public static double[][] CumulativeSum(this double[][] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose cumulative sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the cumulative will be
calculated.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
CumulativeSum(Double[][], Int32, Double[][])
Declaration
public static double[][] CumulativeSum(this double[][] matrix, int dimension, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose cumulative sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the cumulative will be
calculated.
|
System.Double[][] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
CumulativeSum(Double[,], Int32)
Declaration
public static double[, ] CumulativeSum(this double[, ] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose cumulative sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the cumulative will be
calculated.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
CumulativeSum(Double[,], Int32, Double[,])
Declaration
public static double[, ] CumulativeSum(this double[, ] matrix, int dimension, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose cumulative sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the cumulative will be
calculated.
|
System.Double[,] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Decompose(Double[][], Boolean)
Creates a matrix decomposition that be used to compute the solution matrix if the
matrix is square or the least squares solution otherwise.
Declaration
public static ISolverArrayDecomposition<Double> Decompose(this Double[][] matrix, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
|
System.Boolean |
leastSquares |
|
Returns
View Source
Decompose(Double[,], Boolean)
Creates a matrix decomposition that be used to compute the solution matrix if the
matrix is square or the least squares solution otherwise.
Declaration
public static ISolverMatrixDecomposition<Double> Decompose(this Double[, ] matrix, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
System.Boolean |
leastSquares |
|
Returns
View Source
DeepFlatten(Array)
Transforms a jagged array matrix into a single vector.
Declaration
public static Array DeepFlatten(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
A jagged array.
|
Returns
View Source
DeepToMatrix(Array)
Converts a jagged-array into a multidimensional array.
Declaration
public static Array DeepToMatrix(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
View Source
Depth<T>(T[][][], Boolean)
Gets the number of channels (planes) in a jagged matrix.
Declaration
public static int Depth<T>(this T[][][] matrix, bool max = false)
Parameters
Type |
Name |
Description |
T[][][] |
matrix |
The matrix whose number of channels must be computed.
|
System.Boolean |
max |
Whether to compute the maximum length across all columns (because
columns can have different lengths in jagged matrices). Default is false.
|
Returns
Type |
Description |
System.Int32 |
The number of channels (planes) in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Depth<T>(T[,,])
Gets the number of columns in a multidimensional matrix.
Declaration
public static int Depth<T>(this T[,, ] matrix)
Parameters
Type |
Name |
Description |
T[,,] |
matrix |
The matrix whose number of columns must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of columns in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Determinant(Double[,])
Gets the determinant of a matrix.
Declaration
public static double Determinant(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
Determinant(Double[,], Boolean)
Gets the determinant of a matrix.
Declaration
public static double Determinant(this double[, ] matrix, bool symmetric)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
System.Boolean |
symmetric |
|
Returns
Type |
Description |
System.Double |
|
View Source
Diagonal<T>(T[])
Return a square matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Diagonal<T>(T[], T[,])
Return a square matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(T[] values, T[, ] result)
Parameters
Type |
Name |
Description |
T[] |
values |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
Diagonal<T>(T[][])
Gets the diagonal vector from a matrix.
Declaration
public static T[] Diagonal<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
A matrix.
|
Returns
Type |
Description |
T[] |
The diagonal vector from the given matrix.
|
Type Parameters
View Source
Diagonal<T>(T[,])
Gets the diagonal vector from a matrix.
Declaration
public static T[] Diagonal<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
Returns
Type |
Description |
T[] |
The diagonal vector from the given matrix.
|
Type Parameters
View Source
Diagonal<T>(T[,][])
Returns a block-diagonal matrix with the given matrices on its diagonal.
Declaration
public static T[, ] Diagonal<T>(T[, ][] blocks)
Parameters
Type |
Name |
Description |
T[,][] |
blocks |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, T)
Returns a square diagonal matrix of the given size.
Declaration
public static T[, ] Diagonal<T>(int size, T value)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
T |
value |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, T, T[,])
Returns a square diagonal matrix of the given size.
Declaration
public static T[, ] Diagonal<T>(int size, T value, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
T |
value |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, T[])
Return a square matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int size, T[] values)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
T[] |
values |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, T[], T[,])
Return a square matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int size, T[] values, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
T[] |
values |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, Int32, T)
Returns a matrix of the given size with value on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int rows, int cols, T value)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
cols |
|
T |
value |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, Int32, T, T[,])
Returns a matrix of the given size with value on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int rows, int cols, T value, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
cols |
|
T |
value |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, Int32, T[])
Returns a matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int rows, int cols, T[] values)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
cols |
|
T[] |
values |
|
Returns
Type Parameters
View Source
Diagonal<T>(Int32, Int32, T[], T[,])
Returns a matrix with a vector of values on its diagonal.
Declaration
public static T[, ] Diagonal<T>(int rows, int cols, T[] values, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
cols |
|
T[] |
values |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
DimensionEquals(Array, Array)
Checks whether two arrays have the same dimensions.
Declaration
public static bool DimensionEquals(this Array a, Array b)
Parameters
Type |
Name |
Description |
Array |
a |
|
Array |
b |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Distinct<T>(T[])
Retrieves only distinct values contained in an array.
Declaration
public static T[] Distinct<T>(this T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
The array.
|
Returns
Type |
Description |
T[] |
An array containing only the distinct values in values .
|
Type Parameters
View Source
Distinct<T>(T[], Boolean)
Retrieves only distinct values contained in an array.
Declaration
public static T[] Distinct<T>(this T[] values, bool allowNulls)
where T : class
Parameters
Type |
Name |
Description |
T[] |
values |
The array.
|
System.Boolean |
allowNulls |
Whether to allow null values in
the method's output. Default is true.
|
Returns
Type |
Description |
T[] |
An array containing only the distinct values in values .
|
Type Parameters
View Source
Distinct<T>(T[][])
Retrieves a list of the distinct values for each matrix column.
Declaration
public static T[][] Distinct<T>(this T[][] values)
Parameters
Type |
Name |
Description |
T[][] |
values |
The matrix.
|
Returns
Type |
Description |
T[][] |
An array containing arrays of distinct values for
each column in the values .
|
Type Parameters
View Source
Distinct<T>(T[,])
Retrieves a list of the distinct values for each matrix column.
Declaration
public static T[][] Distinct<T>(this T[, ] values)
Parameters
Type |
Name |
Description |
T[,] |
values |
The matrix.
|
Returns
Type |
Description |
T[][] |
An array containing arrays of distinct values for
each column in the values .
|
Type Parameters
View Source
Distinct<T, TProperty>(T[], Func<T, TProperty>)
Retrieves only distinct values contained in an array.
Declaration
public static T[] Distinct<T, TProperty>(this T[] values, Func<T, TProperty> property)
where TProperty : IComparable<TProperty>
Parameters
Type |
Name |
Description |
T[] |
values |
The array.
|
Func<T, TProperty> |
property |
The property of the object used to determine distinct instances.
|
Returns
Type |
Description |
T[] |
An array containing only the distinct values in values .
|
Type Parameters
Name |
Description |
T |
|
TProperty |
|
View Source
DistinctCount<T>(T[])
Gets the number of distinct values
present in each column of a matrix.
Declaration
public static int DistinctCount<T>(this T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
DistinctCount<T>(T[][])
Gets the number of distinct values
present in each column of a matrix.
Declaration
public static int[] DistinctCount<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
DistinctCount<T>(T[,])
Gets the number of distinct values
present in each column of a matrix.
Declaration
public static int[] DistinctCount<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
Divide(Double[][], Double[][], Boolean)
Divides two matrices by multiplying A by the inverse of B.
Declaration
public static Double[][] Divide(this Double[][] a, Double[][] b, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[][] |
a |
The first matrix.
|
Double[][] |
b |
The second matrix (which will be inverted).
|
System.Boolean |
leastSquares |
True to produce a solution even if the
b is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[][] |
The result from the division AB^-1 of the given matrices.
|
View Source
Divide(Double[,], Double[,], Boolean)
Divides two matrices by multiplying A by the inverse of B.
Declaration
public static Double[, ] Divide(this Double[, ] a, Double[, ] b, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[,] |
a |
The first matrix.
|
Double[,] |
b |
The second matrix (which will be inverted).
|
System.Boolean |
leastSquares |
True to produce a solution even if the
b is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[,] |
The result from the division AB^-1 of the given matrices.
|
View Source
DivideByDiagonal(Double[][], Double[])
Computes the product A*inv(B) of matrix A
and diagonal matrix B
.
Declaration
public static double[][] DivideByDiagonal(this double[][] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of inverse right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B of the given matrices A and B .
|
View Source
DivideByDiagonal(Double[][], Double[], Double[][])
Computes the product A*inv(B) of matrix A
and diagonal matrix B
.
Declaration
public static double[][] DivideByDiagonal(this double[][] a, double[] diagonal, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of inverse right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DivideByDiagonal(Double[,], Double[])
Computes the product A*inv(B) of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] DivideByDiagonal(this double[, ] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of inverse right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
The product A*B of the given matrices A and B .
|
View Source
DivideByDiagonal(Double[,], Double[], Double[,])
Computes the product A*inv(B) of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] DivideByDiagonal(this double[, ] a, double[] diagonal, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of inverse right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Dot(Double[], Double[])
Gets the inner product (scalar product) between two vectors (a'*b).
Declaration
public static double Dot(this double[] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
A vector.
|
System.Double[] |
b |
A vector.
|
Returns
Type |
Description |
System.Double |
The inner product of the multiplication of the vectors.
|
View Source
Dot(Double[], Double[][])
Computes the product a*B
of a row vector a
and a matrix B
.
Declaration
public static double[] Dot(this double[] rowVector, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left vector a .
|
System.Double[][] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[] |
The product a*B of the given vector a and B .
|
View Source
Dot(Double[], Double[][], Double[])
Computes the product R = A*B
of two matrices A
and B
, storing the result in matrix R
.
Declaration
public static double[] Dot(this double[] rowVector, double[][] matrix, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left matrix A .
|
System.Double[][] |
matrix |
The right matrix B .
|
System.Double[] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Dot(Double[], Double[,])
Computes the product a*B
of a row vector a
and a matrix B
.
Declaration
public static double[] Dot(this double[] rowVector, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left vector a .
|
System.Double[,] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[] |
The product a*B of the given vector a and B .
|
View Source
Dot(Double[], Double[,], Double[])
Multiplies a row vector v
and a matrix A
,
giving the product v'*A
.
Declaration
public static double[] Dot(this double[] rowVector, double[, ] matrix, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The row vector v .
|
System.Double[,] |
matrix |
The matrix A .
|
System.Double[] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Dot(Double[][], Double[])
Computes the product A*b
of a matrix A
and a column vector b
.
Declaration
public static double[] Dot(this double[][] a, double[] columnVector)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
columnVector |
The right vector b .
|
Returns
Type |
Description |
System.Double[] |
The product A*b of the given matrix A and vector b .
|
View Source
Dot(Double[][], Double[], Double[])
Multiplies a matrix A
and a column vector v
,
giving the product A*v
Declaration
public static double[] Dot(this double[][] matrix, double[] columnVector, double[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
The matrix A .
|
System.Double[] |
columnVector |
The column vector v .
|
System.Double[] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Dot(Double[][], Double[][])
Computes the product A*B
of two matrices A
and B
.
Declaration
public static double[][] Dot(this double[][] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B of the given matrices A and B .
|
View Source
Dot(Double[][], Double[][], Double[][])
Computes the product R = A*B
of two matrices A
and B
, storing the result in matrix R
.
Declaration
public static double[][] Dot(this double[][] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Dot(Double[][], Double[,])
Computes the product A*B
of two matrices A
and B
.
Declaration
public static double[][] Dot(this double[][] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B of the given matrices A and B .
|
View Source
Dot(Double[][], Double[,], Double[][])
Computes the product R = A*B
of two matrices A
and B
, storing the result in matrix R
.
Declaration
public static double[][] Dot(this double[][] a, double[, ] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Dot(Double[,], Double[])
Computes the product A*b
of a matrix A
and a column vector b
.
Declaration
public static double[] Dot(this double[, ] a, double[] columnVector)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
columnVector |
The right vector b .
|
Returns
Type |
Description |
System.Double[] |
The product A*b of the given matrix A and vector b .
|
View Source
Dot(Double[,], Double[], Double[])
Multiplies a matrix A
and a column vector v
,
giving the product A*v
Declaration
public static double[] Dot(this double[, ] matrix, double[] columnVector, double[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
The matrix A .
|
System.Double[] |
columnVector |
The column vector v .
|
System.Double[] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Dot(Double[,], Double[][])
Computes the product A*B
of two matrices A
and B
.
Declaration
public static double[][] Dot(this double[, ] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B of the given matrices A and B .
|
View Source
Dot(Double[,], Double[][], Double[][])
Computes the product R = A*B
of two matrices A
and B
, storing the result in matrix R
.
Declaration
public static double[][] Dot(this double[, ] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Dot(Double[,], Double[,])
Computes the product A*B
of two matrices A
and B
.
Declaration
public static double[, ] Dot(this double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
The product A*B of the given matrices A and B .
|
View Source
Dot(Double[,], Double[,], Double[,])
Computes the product R = A*B
of two matrices A
and B
, storing the result in matrix R
.
Declaration
public static double[, ] Dot(this double[, ] a, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
DotAndDot(Double[], Double[][], Double[])
Computes the product aBc
of a row vector a
,
a square matrix B
and a column vector c
.
Declaration
public static double DotAndDot(this double[] rowVector, double[][] matrix, double[] columnVector)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left vector a .
|
System.Double[][] |
matrix |
The square matrix B .
|
System.Double[] |
columnVector |
The column vector c .
|
Returns
Type |
Description |
System.Double |
The product aBc of the given vector a ,
matrix B and vector c .
|
View Source
DotAndDot(Double[], Double[,], Double[])
Computes the product aBc
of a row vector a
,
a square matrix B
and a column vector c
.
Declaration
public static double DotAndDot(this double[] rowVector, double[, ] matrix, double[] columnVector)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left vector a .
|
System.Double[,] |
matrix |
The square matrix B .
|
System.Double[] |
columnVector |
The column vector c .
|
Returns
Type |
Description |
System.Double |
The product aBc of the given vector a ,
matrix B and vector c .
|
View Source
DotWithDiagonal(Double[][], Double[])
Computes the product A*B of matrix A
and diagonal matrix B
.
Declaration
public static double[][] DotWithDiagonal(this double[][] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B of the given matrices A and B .
|
View Source
DotWithDiagonal(Double[][], Double[], Double[][])
Computes the product A*B of matrix A
and diagonal matrix B
.
Declaration
public static double[][] DotWithDiagonal(this double[][] a, double[] diagonal, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DotWithDiagonal(Double[,], Double[])
Computes the product A*B of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] DotWithDiagonal(this double[, ] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
The product A*B of the given matrices A and B .
|
View Source
DotWithDiagonal(Double[,], Double[], Double[,])
Computes the product A*B of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] DotWithDiagonal(this double[, ] a, double[] diagonal, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
DotWithTransposed(Double[], Double[][], Double[])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, double[][] b, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left matrix A .
|
System.Double[][] |
b |
The transposed right matrix B .
|
System.Double[] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[] |
|
View Source
DotWithTransposed(Double[], Double[,], Double[])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, double[, ] b, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The left matrix A .
|
System.Double[,] |
b |
The transposed right matrix B .
|
System.Double[] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[] |
|
View Source
DotWithTransposed(Double[][], Double[], Double[][])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[][] DotWithTransposed(this double[][] a, double[] columnVector, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
columnVector |
The transposed right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DotWithTransposed(Double[][], Double[][])
Computes the product A*B'
of matrix A
and transpose of B
.
Declaration
public static double[][] DotWithTransposed(this double[][] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[][] |
b |
The transposed right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B' of the given matrices A and B .
|
View Source
DotWithTransposed(Double[][], Double[][], Double[][])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[][] DotWithTransposed(this double[][] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[][] |
b |
The transposed right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DotWithTransposed(Double[][], Double[,])
Computes the product A*B'
of matrix A
and transpose of B
.
Declaration
public static double[][] DotWithTransposed(this double[][] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[,] |
b |
The transposed right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B' of the given matrices A and B .
|
View Source
DotWithTransposed(Double[][], Double[,], Double[][])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[][] DotWithTransposed(this double[][] a, double[, ] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[,] |
b |
The transposed right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DotWithTransposed(Double[,], Double[], Double[,])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[, ] DotWithTransposed(this double[, ] a, double[] columnVector, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
columnVector |
The transposed right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
DotWithTransposed(Double[,], Double[][])
Computes the product A*B'
of matrix A
and transpose of B
.
Declaration
public static double[][] DotWithTransposed(this double[, ] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[][] |
b |
The transposed right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A*B' of the given matrices A and B .
|
View Source
DotWithTransposed(Double[,], Double[][], Double[][])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[][] DotWithTransposed(this double[, ] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[][] |
b |
The transposed right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
DotWithTransposed(Double[,], Double[,])
Computes the product A*B'
of matrix A
and transpose of B
.
Declaration
public static double[, ] DotWithTransposed(this double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[,] |
b |
The transposed right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
The product A*B' of the given matrices A and B .
|
View Source
DotWithTransposed(Double[,], Double[,], Double[,])
Computes the product A*B'
of matrix A
and
transpose of B
, storing the result in matrix R
.
Declaration
public static double[, ] DotWithTransposed(this double[, ] a, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[,] |
b |
The transposed right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B'
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ElementwiseDivide(Double[,], Double[,])
Elementwise divide operation.
Declaration
public static double[, ] ElementwiseDivide(this double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
System.Double[,] |
b |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ElementwiseMultiply(Double[,], Double[,])
Elementwise multiply operation.
Declaration
public static double[, ] ElementwiseMultiply(double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
System.Double[,] |
b |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Equals(Object)
This method should not be called. Use Matrix.IsEqual instead.
Declaration
public static bool Equals(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Exp(Double[])
Declaration
public static double[] Exp(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Exp(Double[], Double[])
Declaration
public static double[] Exp(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Exp(Double[][])
Declaration
public static double[][] Exp(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Exp(Double[][], Double[][])
Declaration
public static double[][] Exp(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Exp(Double[,])
Declaration
public static double[, ] Exp(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Exp(Double[,], Double[,])
Declaration
public static double[, ] Exp(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Expand<T>(T[], Int32[])
Expands a data vector given in summary form.
Declaration
public static T[] Expand<T>(T[] vector, int[] count)
Parameters
Type |
Name |
Description |
T[] |
vector |
A base vector.
|
System.Int32[] |
count |
An array containing by how much each line should be replicated.
|
Returns
Type Parameters
View Source
Expand<T>(T[,], Int32[])
Expands a data matrix given in summary form.
Declaration
public static T[, ] Expand<T>(T[, ] matrix, int[] count)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A base matrix.
|
System.Int32[] |
count |
An array containing by how much each line should be replicated.
|
Returns
Type Parameters
View Source
ExpandDimensions(Array, Int32)
Adds a new dimension to an array with length 1.
Declaration
public static Array ExpandDimensions(this Array array, int dimension)
Parameters
Type |
Name |
Description |
Array |
array |
The array.
|
System.Int32 |
dimension |
The index where the dimension should be added.
|
Returns
View Source
Find<T>(T[], Func<T, Boolean>)
Gets the indices of all elements matching a certain criteria.
Declaration
public static int[] Find<T>(this T[] data, Func<T, bool> func)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
Find<T>(T[], Func<T, Boolean>, Boolean)
Gets the indices of all elements matching a certain criteria.
Declaration
public static int[] Find<T>(this T[] data, Func<T, bool> func, bool firstOnly)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
System.Boolean |
firstOnly |
Set to true to stop when the first element is
found, set to false to get all elements.
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
Find<T>(T[,], Func<T, Boolean>)
Gets the indices of all elements matching a certain criteria.
Declaration
public static int[][] Find<T>(this T[, ] data, Func<T, bool> func)
Parameters
Type |
Name |
Description |
T[,] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
Returns
Type |
Description |
System.Int32[][] |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
Find<T>(T[,], Func<T, Boolean>, Boolean)
Gets the indices of all elements matching a certain criteria.
Declaration
public static int[][] Find<T>(this T[, ] data, Func<T, bool> func, bool firstOnly)
Parameters
Type |
Name |
Description |
T[,] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
System.Boolean |
firstOnly |
Set to true to stop when the first element is
found, set to false to get all elements.
|
Returns
Type |
Description |
System.Int32[][] |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
First<T>(T[], Func<T, Boolean>)
Gets the indices of the first element matching a certain criteria.
Declaration
public static int First<T>(this T[] data, Func<T, bool> func)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
First<T>(T[], Int32)
Returns a copy of an array in reversed order.
Declaration
public static T[] First<T>(this T[] values, int count)
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
count |
|
Returns
Type Parameters
View Source
FirstOrNull<T>(T[], Func<T, Boolean>)
Gets the indices of the first element matching a certain criteria, or null if the element could not be found.
Declaration
public static int? FirstOrNull<T>(this T[] data, Func<T, bool> func)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search inside.
|
Func<T, System.Boolean> |
func |
The search criteria.
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
Flatten(Array, MatrixOrder)
Transforms a tensor into a single vector.
Declaration
public static Array Flatten(this Array array, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
Array |
array |
An array.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
View Source
Flatten<T>(T[][], T[], MatrixOrder)
Transforms a jagged array matrix into a single vector.
Declaration
public static T[] Flatten<T>(this T[][] array, T[] result, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[][] |
array |
A jagged array.
|
T[] |
result |
The vector where to store the copy.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Flatten<T>(T[][], MatrixOrder)
Transforms a jagged array matrix into a single vector.
Declaration
public static T[] Flatten<T>(this T[][] array, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[][] |
array |
A jagged array.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Flatten<T>(T[,], T[], MatrixOrder)
Transforms a matrix into a single vector.
Declaration
public static T[] Flatten<T>(this T[, ] matrix, T[] result, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
T[] |
result |
The vector where to store the copy.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Flatten<T>(T[,], MatrixOrder)
Transforms a matrix into a single vector.
Declaration
public static T[] Flatten<T>(this T[, ] matrix, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Floor(Double[])
Declaration
public static double[] Floor(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Floor(Double[], Double[])
Declaration
public static double[] Floor(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Floor(Double[][])
Declaration
public static double[][] Floor(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Floor(Double[][], Double[][])
Declaration
public static double[][] Floor(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Floor(Double[,])
Declaration
public static double[, ] Floor(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Floor(Double[,], Double[,])
Declaration
public static double[, ] Floor(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Get(Array, Int32, Int32)
Returns a subtensor extracted from the current tensor.
Declaration
public static Array Get(this Array source, int dimension, int index)
Parameters
Type |
Name |
Description |
Array |
source |
The tensor to return the subvector from.
|
System.Int32 |
dimension |
The dimension from which the indices should be extracted.
|
System.Int32 |
index |
The index.
|
Returns
View Source
Get(Array, Int32, Int32, Int32)
Returns a subtensor extracted from the current tensor.
Declaration
public static Array Get(this Array source, int dimension, int start, int end)
Parameters
Type |
Name |
Description |
Array |
source |
The tensor to return the subvector from.
|
System.Int32 |
dimension |
The dimension from which the indices should be extracted.
|
System.Int32 |
start |
The start index.
|
System.Int32 |
end |
The end index.
|
Returns
View Source
Get(Array, Int32, Int32[])
Returns a subtensor extracted from the current tensor.
Declaration
public static Array Get(this Array source, int dimension, int[] indices)
Parameters
Type |
Name |
Description |
Array |
source |
The tensor to return the subvector from.
|
System.Int32 |
dimension |
The dimension from which the indices should be extracted.
|
System.Int32[] |
indices |
Array of indices.
|
Returns
View Source
Get<T>(T[], IList<Int32>)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Get<T>(this T[] source, IList<int> indexes)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
IList<System.Int32> |
indexes |
Array of indices.
|
Returns
Type Parameters
View Source
Get<T>(T[], Int32)
Returns a value extracted from the current vector.
Declaration
public static T Get<T>(this T[] source, int index)
Parameters
Type |
Name |
Description |
T[] |
source |
|
System.Int32 |
index |
|
Returns
Type Parameters
View Source
Get<T>(T[], Int32, Int32)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Get<T>(this T[] source, int startRow, int endRow)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
System.Int32 |
startRow |
Starting index.
|
System.Int32 |
endRow |
End index.
|
Returns
Type Parameters
View Source
Get<T>(T[], Int32[], Boolean)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Get<T>(this T[] source, int[] indexes, bool inPlace = false)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
System.Int32[] |
indexes |
Array of indices.
|
System.Boolean |
inPlace |
True to return the results in place, changing the
original source vector; false otherwise.
|
Returns
Type Parameters
View Source
Get<T>(T[][], Boolean[], Boolean[], Boolean, T[][])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, bool[] rowMask, bool[] columnMask, bool reuseMemory = false, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Boolean[] |
rowMask |
Array of row indicators. Pass null to select all indices.
|
System.Boolean[] |
columnMask |
Array of column indicators. Pass null to select all indices.
|
System.Boolean |
reuseMemory |
Set to true to avoid memory allocations
when possible. This might result on the shallow copies of some
elements. Default is false (default is to always provide a true,
deep copy of every element in the matrices, using more memory).
|
T[][] |
result |
An optional matrix where the results should be stored.
|
Returns
Type Parameters
View Source
Get<T>(T[][], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Get<T>(T[][], Int32, Int32, Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, int startRow, int endRow, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndexes |
Array of column indices
|
Returns
Type Parameters
View Source
Get<T>(T[][], Int32[], Boolean)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, int[] indexes, bool transpose = false)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
indexes |
Array of indices.
|
System.Boolean |
transpose |
True to return a transposed matrix; false otherwise.
|
Returns
Type Parameters
View Source
Get<T>(T[][], Int32[], Int32, Int32, Boolean)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, int[] rowIndexes, int startColumn, int endColumn, bool reuseMemory = false)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
System.Boolean |
reuseMemory |
Set to true to avoid memory allocations
when possible. This might result on the shallow copies of some
elements. Default is false (default is to always provide a true,
deep copy of every element in the matrices, using more memory).
|
Returns
Type Parameters
View Source
Get<T>(T[][], Int32[], Int32[], Boolean, T[][])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Get<T>(this T[][] source, int[] rowIndexes, int[] columnIndexes, bool reuseMemory = false, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
System.Boolean |
reuseMemory |
Set to true to avoid memory allocations
when possible. This might result on the shallow copies of some
elements. Default is false (default is to always provide a true,
deep copy of every element in the matrices, using more memory).
|
T[][] |
result |
An optional matrix where the results should be stored.
|
Returns
Type Parameters
View Source
Get<T>(T[,], T[,], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, T[, ] destination, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
T[,] |
destination |
The matrix where results should be stored.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Get<T>(T[,], T[,], Int32[], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, T[, ] destination, int[] rowIndexes, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
T[,] |
destination |
The matrix where results should be stored.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
Returns
Type Parameters
View Source
Get<T>(T[,], Boolean[], Boolean[], T[,])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, bool[] rowMask, bool[] columnMask, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Boolean[] |
rowMask |
Array of row indicators. Pass null to select all indices.
|
System.Boolean[] |
columnMask |
Array of column indicators. Pass null to select all indices.
|
T[,] |
result |
An optional matrix where the results should be stored.
|
Returns
Type Parameters
View Source
Get<T>(T[,], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Get<T>(T[,], Int32, Int32, Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, int startRow, int endRow, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndexes |
Array of column indices
|
Returns
Type Parameters
View Source
Get<T>(T[,], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, int[] rowIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
Returns
Type Parameters
View Source
Get<T>(T[,], Int32[], Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, int[] rowIndexes, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Get<T>(T[,], Int32[], Int32[], T[,])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Get<T>(this T[, ] source, int[] rowIndexes, int[] columnIndexes, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
T[,] |
result |
An optional matrix where the results should be stored.
|
Returns
Type Parameters
View Source
Get<T>(List<T>, Int32[])
Returns a subvector extracted from the current vector.
Declaration
public static List<T> Get<T>(this List<T> source, int[] indexes)
Parameters
Type |
Name |
Description |
List<T> |
source |
The vector to return the subvector from.
|
System.Int32[] |
indexes |
Array of indices.
|
Returns
Type Parameters
View Source
GetArrayRank(Type, Boolean)
Gets the rank of an array type.
Declaration
public static int GetArrayRank(this Type type, bool deep = true)
Parameters
Type |
Name |
Description |
Type |
type |
The type of the array.
|
System.Boolean |
deep |
Pass true to retrieve all dimensions of the array,
even if it contains nested arrays (as in jagged matrices)
|
Returns
Type |
Description |
System.Int32 |
|
View Source
GetColumn<T>(T[][], Int32, T[])
Gets a column vector from a matrix.
Declaration
public static T[] GetColumn<T>(this T[][] m, int index, T[] result = null)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T[] |
result |
|
Returns
Type Parameters
View Source
GetColumn<T>(T[,], Int32, T[])
Gets a column vector from a matrix.
Declaration
public static T[] GetColumn<T>(this T[, ] m, int index, T[] result = null)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32 |
index |
|
T[] |
result |
|
Returns
Type Parameters
View Source
GetColumns<T>(T[][], Int32[])
Gets a column vector from a matrix.
Declaration
public static T[][] GetColumns<T>(this T[][] m, params int[] index)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32[] |
index |
|
Returns
Type Parameters
View Source
GetColumns<T>(T[][], Int32[], T[][])
Gets a column vector from a matrix.
Declaration
public static T[][] GetColumns<T>(this T[][] m, int[] index, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32[] |
index |
|
T[][] |
result |
|
Returns
Type Parameters
View Source
GetColumns<T>(T[,], Int32[])
Gets a column vector from a matrix.
Declaration
public static T[, ] GetColumns<T>(this T[, ] m, params int[] index)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32[] |
index |
|
Returns
Type Parameters
View Source
GetColumns<T>(T[,], Int32[], T[,])
Gets a column vector from a matrix.
Declaration
public static T[, ] GetColumns<T>(this T[, ] m, int[] index, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32[] |
index |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
GetIndices(Array, Boolean, Boolean, MatrixOrder)
Creates a vector containing every index that can be used to
address a given array
, in order.
Declaration
public static IEnumerable<int[]> GetIndices(this Array array, bool deep = false, bool max = false, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
Array |
array |
The array whose indices will be returned.
|
System.Boolean |
deep |
Pass true to retrieve all dimensions of the array,
even if it contains nested arrays (as in jagged matrices).
|
System.Boolean |
max |
Bases computations on the maximum length possible for
each dimension (in case the jagged matrices has different lengths).
|
MatrixOrder |
order |
The direction to access the matrix. Pass 1 to read the
matrix in row-major order. Pass 0 to read in column-major order. Default is
1 (row-major, c-style order).
|
Returns
Type |
Description |
IEnumerable<System.Int32[]> |
An enumerable object that can be used to iterate over all
positions of the given array .
|
Examples
double[,] a =
{
{ 5.3, 2.3 },
{ 4.2, 9.2 }
};
foreach (int[] idx in a.GetIndices())
{
// Get the current element
double e = (double)a.GetValue(idx);
}
See Also
View Source
GetInnerMostType(Array)
Gets the type of the element in a jagged or multi-dimensional matrix.
Declaration
public static Type GetInnerMostType(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
The array whose element type should be computed.
|
Returns
View Source
GetLength(Array, Boolean, Boolean)
Gets the length of each dimension of an array.
Declaration
public static int[] GetLength(this Array array, bool deep = true, bool max = false)
Parameters
Type |
Name |
Description |
Array |
array |
The array.
|
System.Boolean |
deep |
Pass true to retrieve all dimensions of the array,
even if it contains nested arrays (as in jagged matrices)
|
System.Boolean |
max |
Gets the maximum length possible for each dimension (in case
the jagged matrices has different lengths).
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
GetLowerTriangle<T>(T[][], Boolean)
Gets the lower triangular part of a matrix.
Declaration
public static T[][] GetLowerTriangle<T>(this T[][] matrix, bool includeDiagonal = true)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Boolean |
includeDiagonal |
|
Returns
Type Parameters
View Source
GetLowerTriangle<T>(T[,], Boolean)
Gets the lower triangular part of a matrix.
Declaration
public static T[, ] GetLowerTriangle<T>(this T[, ] matrix, bool includeDiagonal = true)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Boolean |
includeDiagonal |
|
Returns
Type Parameters
View Source
GetNumberOfBytes(Array)
Gets the number of bytes contained in an array.
Declaration
public static int GetNumberOfBytes(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
GetNumberOfElements<T>(T[])
Gets the total number of elements in the vector.
Declaration
public static int GetNumberOfElements<T>(this T[] value)
Parameters
Type |
Name |
Description |
T[] |
value |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetNumberOfElements<T>(T[][])
Gets the total number of elements in the matrix.
Declaration
public static int GetNumberOfElements<T>(this T[][] value)
Parameters
Type |
Name |
Description |
T[][] |
value |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetNumberOfElements<T>(T[,])
Gets the total number of elements in the matrix.
Declaration
public static int GetNumberOfElements<T>(this T[, ] elements)
Parameters
Type |
Name |
Description |
T[,] |
elements |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetPlane<T>(T[,,], Int32, T[,])
Gets a column vector from a matrix.
Declaration
public static T[, ] GetPlane<T>(this T[,, ] m, int index, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,,] |
m |
|
System.Int32 |
index |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
GetRange(Double[])
Gets the maximum and minimum values in a vector.
Declaration
public static NumericRange GetRange(this double[] values)
Parameters
Type |
Name |
Description |
System.Double[] |
values |
The vector whose min and max should be computed.
|
Returns
View Source
GetRange(Double[][], Int32)
Gets the range of the values across the columns of a matrix.
Declaration
public static NumericRange[] GetRange(this double[][] value, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
The matrix whose ranges should be computed.
|
System.Int32 |
dimension |
Pass 0 if the range should be computed for each of the columns. Pass 1
if the range should be computed for each row. Default is 0.
|
Returns
View Source
GetRange(Double[,])
Gets the maximum and minimum values in a vector.
Declaration
public static NumericRange GetRange(this double[, ] values)
Parameters
Type |
Name |
Description |
System.Double[,] |
values |
The vector whose min and max should be computed.
|
Returns
View Source
GetRange(Double[,], Int32)
Gets the range of the values across the columns of a matrix.
Declaration
public static NumericRange[] GetRange(this double[, ] value, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
The matrix whose ranges should be computed.
|
System.Int32 |
dimension |
Pass 0 if the range should be computed for each of the columns. Pass 1
if the range should be computed for each row. Default is 0.
|
Returns
View Source
GetRange(Int32[])
Gets the maximum and minimum values in a vector.
Declaration
public static NumericRange GetRange(this int[] values)
Parameters
Type |
Name |
Description |
System.Int32[] |
values |
The vector whose min and max should be computed.
|
Returns
View Source
GetRange(Int32[,])
Gets the maximum and minimum values in a vector.
Declaration
public static NumericRange GetRange(this int[, ] values)
Parameters
Type |
Name |
Description |
System.Int32[,] |
values |
The vector whose min and max should be computed.
|
Returns
View Source
GetRange<T>(T[], out T, out T)
Gets the maximum and minimum values in a vector.
Declaration
public static void GetRange<T>(this T[] values, out T min, out T max)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
The vector whose min and max should be computed.
|
T |
min |
The minimum value in the vector.
|
T |
max |
The maximum value in the vector.
|
Type Parameters
View Source
GetRange<T>(T[][], out T, out T)
Gets the maximum and minimum values in a matrix.
Declaration
public static void GetRange<T>(this T[][] values, out T min, out T max)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
values |
The vector whose min and max should be computed.
|
T |
min |
The minimum value in the vector.
|
T |
max |
The maximum value in the vector.
|
Type Parameters
View Source
GetRange<T>(T[,], out T, out T)
Gets the maximum and minimum values in a matrix.
Declaration
public static void GetRange<T>(this T[, ] values, out T min, out T max)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
values |
The vector whose min and max should be computed.
|
T |
min |
The minimum value in the vector.
|
T |
max |
The maximum value in the vector.
|
Type Parameters
View Source
GetRank(Array, Boolean)
Gets the rank of an array.
Declaration
public static int GetRank(this Array array, bool deep = true)
Parameters
Type |
Name |
Description |
Array |
array |
The array.
|
System.Boolean |
deep |
Pass true to retrieve all dimensions of the array,
even if it contains nested arrays (as in jagged matrices)
|
Returns
Type |
Description |
System.Int32 |
|
View Source
GetRow<T>(T[][], Int32, T[])
Gets a row vector from a matrix.
Declaration
public static T[] GetRow<T>(this T[][] m, int index, T[] result = null)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T[] |
result |
|
Returns
Type Parameters
View Source
GetRow<T>(T[,], Int32, T[])
Gets a row vector from a matrix.
Declaration
public static T[] GetRow<T>(this T[, ] m, int index, T[] result = null)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32 |
index |
|
T[] |
result |
|
Returns
Type Parameters
View Source
GetRows<T>(T[][], Int32[])
Gets a row vector from a matrix.
Declaration
public static T[][] GetRows<T>(this T[][] m, params int[] index)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32[] |
index |
|
Returns
Type Parameters
View Source
GetRows<T>(T[][], Int32[], T[][])
Gets a row vector from a matrix.
Declaration
public static T[][] GetRows<T>(this T[][] m, int[] index, T[][] result)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32[] |
index |
|
T[][] |
result |
|
Returns
Type Parameters
View Source
GetSizeInBytes<T>(T[])
Gets the size of a vector, in bytes.
Declaration
public static int GetSizeInBytes<T>(this T[] elements)
Parameters
Type |
Name |
Description |
T[] |
elements |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetSizeInBytes<T>(T[][])
Gets the size of a matrix, in bytes.
Declaration
public static int GetSizeInBytes<T>(this T[][] elements)
Parameters
Type |
Name |
Description |
T[][] |
elements |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetSizeInBytes<T>(T[,])
Gets the size of a matrix, in bytes.
Declaration
public static int GetSizeInBytes<T>(this T[, ] elements)
Parameters
Type |
Name |
Description |
T[,] |
elements |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
View Source
GetSymmetric<T>(T[][], MatrixType, T[][])
Transforms a triangular matrix in a symmetric matrix by copying
its elements to the other, unfilled part of the matrix.
Declaration
public static T[][] GetSymmetric<T>(this T[][] matrix, MatrixType type, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
MatrixType |
type |
|
T[][] |
result |
|
Returns
Type Parameters
View Source
GetSymmetric<T>(T[,], MatrixType, T[,])
Transforms a triangular matrix in a symmetric matrix by copying
its elements to the other, unfilled part of the matrix.
Declaration
public static T[, ] GetSymmetric<T>(this T[, ] matrix, MatrixType type, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
MatrixType |
type |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
GetTotalLength(Array, Boolean, Boolean)
Gets the total length over all dimensions of an array.
Declaration
public static int GetTotalLength(this Array array, bool deep = true, bool rectangular = true)
Parameters
Type |
Name |
Description |
Array |
array |
|
System.Boolean |
deep |
|
System.Boolean |
rectangular |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
GetUpperTriangle<T>(T[][], Boolean)
Gets the upper triangular part of a matrix.
Declaration
public static T[][] GetUpperTriangle<T>(this T[][] matrix, bool includeDiagonal = false)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Boolean |
includeDiagonal |
|
Returns
Type Parameters
View Source
GetUpperTriangle<T>(T[,], Boolean)
Gets the upper triangular part of a matrix.
Declaration
public static T[, ] GetUpperTriangle<T>(this T[, ] matrix, bool includeDiagonal = false)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Boolean |
includeDiagonal |
|
Returns
Type Parameters
View Source
GetValue(Array, Boolean, Int32[])
Gets the value at the specified position in the multidimensional System.Array.
The indexes are specified as an array of 32-bit integers.
Declaration
public static object GetValue(this Array array, bool deep, int[] indices)
Parameters
Type |
Name |
Description |
Array |
array |
A jagged or multidimensional array.
|
System.Boolean |
deep |
If set to true, internal arrays in jagged arrays will be followed.
|
System.Int32[] |
indices |
A one-dimensional array of 32-bit integers that represent the
indexes specifying the position of the System.Array element to get.
|
Returns
Type |
Description |
System.Object |
|
View Source
Has(Double[,], Double, Double)
Returns a value indicating whether the specified
matrix contains a value within a given tolerance.
Declaration
public static bool Has(this double[, ] matrix, double value, double tolerance = 0)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A double-precision multidimensional matrix.
|
System.Double |
value |
The value to search for in the matrix.
|
System.Double |
tolerance |
The relative tolerance that a value must be in
order to be considered equal to the value being searched.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains the value, false otherwise.
|
View Source
Has(Single[,], Single, Double)
Returns a value indicating whether the specified
matrix contains a value within a given tolerance.
Declaration
public static bool Has(this float[, ] matrix, float value, double tolerance = 0)
Parameters
Type |
Name |
Description |
System.Single[,] |
matrix |
A single-precision multidimensional matrix.
|
System.Single |
value |
The value to search for in the matrix.
|
System.Double |
tolerance |
The relative tolerance that a value must be in
order to be considered equal to the value being searched.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains the value, false otherwise.
|
View Source
HasInfinity(Double[])
Returns a value indicating whether the specified
matrix contains a infinity value.
Declaration
public static bool HasInfinity(this double[] matrix)
Parameters
Type |
Name |
Description |
System.Double[] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains a infinity value, false otherwise.
|
View Source
HasInfinity(Double[][])
Returns a value indicating whether the specified
matrix contains a infinity value.
Declaration
public static bool HasInfinity(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains a infinity value, false otherwise.
|
View Source
HasInfinity(Double[,])
Returns a value indicating whether the specified
matrix contains a infinity value.
Declaration
public static bool HasInfinity(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains infinity values, false otherwise.
|
View Source
HasNaN(Double[])
Returns a value indicating whether the specified
matrix contains a value that is not a number (NaN).
Declaration
public static bool HasNaN(this double[] matrix)
Parameters
Type |
Name |
Description |
System.Double[] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains a value that is not a number, false otherwise.
|
View Source
HasNaN(Double[][])
Returns a value indicating whether the specified
matrix contains a value that is not a number (NaN).
Declaration
public static bool HasNaN(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains a value that is not a number, false otherwise.
|
View Source
HasNaN(Double[,])
Returns a value indicating whether the specified
matrix contains a value that is not a number (NaN).
Declaration
public static bool HasNaN(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A double-precision multidimensional matrix.
|
Returns
Type |
Description |
System.Boolean |
True if the matrix contains a value that is not a number, false otherwise.
|
View Source
Identity(Int32)
Creates a square matrix with ones across its diagonal.
Declaration
public static double[, ] Identity(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Identity<T>(Int32)
Creates a square matrix with ones across its diagonal.
Declaration
public static T[, ] Identity<T>(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type Parameters
View Source
IndexOf<T>(T[], T)
Searches for the specified value and returns the index of the first occurrence within the array.
Declaration
public static int IndexOf<T>(this T[] data, T value)
Parameters
Type |
Name |
Description |
T[] |
data |
The array to search.
|
T |
value |
The value to be searched.
|
Returns
Type |
Description |
System.Int32 |
The index of the searched value within the array, or -1 if not found.
|
Type Parameters
Name |
Description |
T |
The type of the array.
|
View Source
InsertColumn<T>(T[][])
Returns a new matrix with a new column vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertColumn<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type Parameters
View Source
InsertColumn<T>(T[,])
Returns a new matrix with a new column vector inserted at the end of the original matrix.
Declaration
public static T[, ] InsertColumn<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type Parameters
View Source
InsertColumn<T, TSource>(T[][], TSource)
Returns a new matrix with a given column vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertColumn<T, TSource>(this T[][] matrix, TSource value)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource |
value |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[][], TSource, Int32)
Returns a new matrix with a given column vector inserted at a given index.
Declaration
public static T[][] InsertColumn<T, TSource>(this T[][] matrix, TSource value, int index)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource |
value |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[][], TSource[])
Returns a new matrix with a given column vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertColumn<T, TSource>(this T[][] matrix, TSource[] column)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource[] |
column |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[][], TSource[], Int32)
Returns a new matrix with a given column vector inserted at a given index.
Declaration
public static T[][] InsertColumn<T, TSource>(this T[][] matrix, TSource[] column, int index)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource[] |
column |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[,], TSource)
Returns a new matrix with a given column vector inserted at the end of the original matrix.
Declaration
public static T[, ] InsertColumn<T, TSource>(this T[, ] matrix, TSource value)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource |
value |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[,], TSource, Int32)
Returns a new matrix with a given column vector inserted at a given index.
Declaration
public static T[, ] InsertColumn<T, TSource>(this T[, ] matrix, TSource value, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource |
value |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[,], TSource[])
Returns a new matrix with a given column vector inserted at the end of the original matrix.
Declaration
public static T[, ] InsertColumn<T, TSource>(this T[, ] matrix, TSource[] column)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource[] |
column |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertColumn<T, TSource>(T[,], TSource[], Int32)
Returns a new matrix with a given column vector inserted at a given index.
Declaration
public static T[, ] InsertColumn<T, TSource>(this T[, ] matrix, TSource[] column, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource[] |
column |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T>(T[][])
Returns a new matrix with a new row vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertRow<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type Parameters
View Source
InsertRow<T>(T[,])
Returns a new matrix with a new row vector inserted at the end of the original matrix.
Declaration
public static T[, ] InsertRow<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type Parameters
View Source
InsertRow<T, TSource>(T[][], TSource)
Returns a new matrix with a given column vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertRow<T, TSource>(this T[][] matrix, TSource value)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource |
value |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[][], TSource, Int32)
Returns a new matrix with a given column vector inserted at a given index.
Declaration
public static T[][] InsertRow<T, TSource>(this T[][] matrix, TSource value, int index)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource |
value |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[][], TSource[])
Returns a new matrix with a given row vector inserted at the end of the original matrix.
Declaration
public static T[][] InsertRow<T, TSource>(this T[][] matrix, TSource[] row)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource[] |
row |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[][], TSource[], Int32)
Returns a new matrix with a given row vector inserted at a given index.
Declaration
public static T[][] InsertRow<T, TSource>(this T[][] matrix, TSource[] row, int index)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
TSource[] |
row |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[,], TSource, Int32)
Returns a new matrix with a given row vector inserted at a given index.
Declaration
public static T[, ] InsertRow<T, TSource>(this T[, ] matrix, TSource value, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource |
value |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[,], TSource[])
Returns a new matrix with a given row vector inserted at the end of the original matrix.
Declaration
public static T[, ] InsertRow<T, TSource>(this T[, ] matrix, TSource[] row)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource[] |
row |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
InsertRow<T, TSource>(T[,], TSource[], Int32)
Returns a new matrix with a given row vector inserted at a given index.
Declaration
public static T[, ] InsertRow<T, TSource>(this T[, ] matrix, TSource[] row, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
TSource[] |
row |
|
System.Int32 |
index |
|
Returns
Type Parameters
Name |
Description |
T |
|
TSource |
|
View Source
Inverse(Double[][])
Computes the inverse of a matrix.
Declaration
public static Double[][] Inverse(this Double[][] matrix)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
|
Returns
Type |
Description |
Double[][] |
|
View Source
Inverse(Double[][], Boolean)
Computes the inverse of a matrix.
Declaration
public static Double[][] Inverse(this Double[][] matrix, bool inPlace)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
|
System.Boolean |
inPlace |
|
Returns
Type |
Description |
Double[][] |
|
View Source
Inverse(Double[,])
Computes the inverse of a matrix.
Declaration
public static Double[, ] Inverse(this Double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
Type |
Description |
Double[,] |
|
View Source
Inverse(Double[,], Boolean)
Computes the inverse of a matrix.
Declaration
public static Double[, ] Inverse(this Double[, ] matrix, bool inPlace)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
System.Boolean |
inPlace |
|
Returns
Type |
Description |
Double[,] |
|
View Source
IsDiagonal<T>(T[][])
Returns true if a matrix is diagonal.
Declaration
public static bool IsDiagonal<T>(this T[][] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsDiagonal<T>(T[,])
Returns true if a matrix is diagonal
Declaration
public static bool IsDiagonal<T>(this T[, ] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsEqual(Array, Array, Double, Double)
Compares two matrices for equality.
Declaration
public static bool IsEqual(this Array objA, Array objB, double atol = null, double rtol = null)
Parameters
Type |
Name |
Description |
Array |
objA |
|
Array |
objB |
|
System.Double |
atol |
|
System.Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double, Double, Double, Double)
Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this Double a, Double b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double |
a |
|
Double |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double, Double[], Double, Double)
Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this Double a, Double[] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double |
a |
|
Double[] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double, Double[][], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double a, Double[][] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double |
a |
|
Double[][] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double, Double[,], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double a, Double[, ] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double |
a |
|
Double[,] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[], Double, Double, Double)
Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this Double[] a, Double b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[] |
a |
|
Double |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[], Double[], Double, Double)
Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this Double[] a, Double[] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[] |
a |
|
Double[] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[][], Double, Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[][] a, Double b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[][] |
a |
|
Double |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[][], Double[][], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[][] a, Double[][] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[][] |
a |
|
Double[][] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[][], Double[,], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[][] a, Double[, ] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[][] |
a |
|
Double[,] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[,], Double, Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[, ] a, Double b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[,] |
a |
|
Double |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[,], Double[][], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[, ] a, Double[][] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[,] |
a |
|
Double[][] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Double[,], Double[,], Double, Double)
Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this Double[, ] a, Double[, ] b, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[,] |
a |
|
Double[,] |
b |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Int32[], Int32[], Int32, Double)
Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this Int32[] a, Int32[] b, Int32 atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Int32[] |
a |
|
Int32[] |
b |
|
Int32 |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsEqual(Object, Object, Decimal, Decimal)
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
Declaration
public static bool IsEqual(this object objA, object objB, decimal atol = null, decimal rtol = null)
Parameters
Type |
Name |
Description |
System.Object |
objA |
|
System.Object |
objB |
|
System.Decimal |
atol |
|
System.Decimal |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsInteger(Double, Double)
Determines whether a number is an integer, given a tolerance threshold.
Declaration
public static bool IsInteger(this double x, double threshold = null)
Parameters
Type |
Name |
Description |
System.Double |
x |
The value to be compared.
|
System.Double |
threshold |
The maximum that the number can deviate from its closest integer number.
|
Returns
Type |
Description |
System.Boolean |
True if the number if an integer, false otherwise.
|
View Source
IsJagged(Array)
Determines whether an array is a jagged array
(containing inner arrays as its elements).
Declaration
public static bool IsJagged(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsJagged(Type)
Determines whether the specified type is a jagged array.
Declaration
public static bool IsJagged(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsLowerTriangular<T>(T[][])
Returns true if a matrix is lower triangular.
Declaration
public static bool IsLowerTriangular<T>(this T[][] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsLowerTriangular<T>(T[,])
Returns true if a matrix is lower triangular.
Declaration
public static bool IsLowerTriangular<T>(this T[, ] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsMatrix(Array)
Determines whether an array is an multidimensional array.
Declaration
public static bool IsMatrix(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsPositiveDefinite(Double[][])
Gets whether a matrix is positive definite.
Declaration
public static bool IsPositiveDefinite(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsPositiveDefinite(Double[,])
Gets whether a matrix is positive definite.
Declaration
public static bool IsPositiveDefinite(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsRectangular<T>(T[][])
Determines whether the specified matrix is rectangular.
Declaration
public static bool IsRectangular<T>(T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.Boolean |
true if the specified matrix is rectangular; otherwise, false .
|
Type Parameters
View Source
IsRectangular<T>(IEnumerable<T[]>)
Determines whether the specified matrix is rectangular.
Declaration
public static bool IsRectangular<T>(this IEnumerable<T[]> matrix)
Parameters
Type |
Name |
Description |
IEnumerable<T[]> |
matrix |
The matrix.
|
Returns
Type |
Description |
System.Boolean |
true if the specified matrix is rectangular; otherwise, false .
|
Type Parameters
View Source
IsSingular(Double[,])
Gets whether a matrix is singular.
Declaration
public static bool IsSingular(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsSorted<T>(T[])
Returns true if a vector of real-valued observations
is ordered in ascending or descending order.
Declaration
public static bool IsSorted<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
An array of values.
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsSorted<T>(T[], ComparerDirection)
Returns true if a vector of real-valued observations
is ordered in ascending or descending order.
Declaration
public static bool IsSorted<T>(this T[] values, ComparerDirection direction)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
An array of values.
|
ComparerDirection |
direction |
The sort order direction.
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsSquare(Array)
Returns true if a tensor is square.
Declaration
public static bool IsSquare(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsSquare<T>(T[][])
Returns true if a matrix is square.
Declaration
public static bool IsSquare<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsSquare<T>(T[,])
Returns true if a matrix is square.
Declaration
public static bool IsSquare<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsSymmetric(Double[][], Double, Double)
Determines a matrix is symmetric.
Declaration
public static bool IsSymmetric(this Double[][] a, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[][] |
a |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsSymmetric(Double[,], Double, Double)
Determines a matrix is symmetric.
Declaration
public static bool IsSymmetric(this Double[, ] a, Double atol = null, Double rtol = null)
Parameters
Type |
Name |
Description |
Double[,] |
a |
|
Double |
atol |
|
Double |
rtol |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsUpperTriangular<T>(T[][])
Returns true if a matrix is upper triangular.
Declaration
public static bool IsUpperTriangular<T>(this T[][] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsUpperTriangular<T>(T[,])
Returns true if a matrix is upper triangular.
Declaration
public static bool IsUpperTriangular<T>(this T[, ] matrix)
where T : IComparable
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
View Source
IsVector(Array)
Determines whether an array is a vector.
Declaration
public static bool IsVector(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
KHot(Int32[][], Double[,])
Creates a matrix of k-hot vectors, where all values at each row are
zero except for the indicated indices
, which are set to one.
Declaration
public static double[, ] KHot(int[][] indices, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
indices |
The rows's dimension which will be marked as one.
|
System.Double[,] |
result |
The matrix where the one-hot should be marked.
|
Returns
Type |
Description |
System.Double[,] |
A matrix containing k-hot vectors where only elements at the indicated
indices are set to one and the others are zero.
|
View Source
KHot(Int32[][], Int32)
Creates a matrix of k-hot vectors, where all values at each row are
zero except for the indicated indices
, which are set to one.
Declaration
public static double[, ] KHot(int[][] indices, int columns)
Parameters
Type |
Name |
Description |
System.Int32[][] |
indices |
The rows's dimension which will be marked as one.
|
System.Int32 |
columns |
The size (length) of the vectors (columns of the matrix).
|
Returns
Type |
Description |
System.Double[,] |
A matrix containing k-hot vectors where only elements at the indicated
indices are set to one and the others are zero.
|
View Source
KHot<T>(Int32[][], T[,])
Creates a matrix of k-hot vectors, where all values at each row are
zero except for the indicated indices
, which are set to one.
Declaration
public static T[, ] KHot<T>(int[][] indices, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
indices |
The rows's dimension which will be marked as one.
|
T[,] |
result |
The matrix where the one-hot should be marked.
|
Returns
Type |
Description |
T[,] |
A matrix containing k-hot vectors where only elements at the indicated
indices are set to one and the others are zero.
|
Type Parameters
Name |
Description |
T |
The data type for the matrix.
|
View Source
KHot<T>(Int32[][], Int32)
Creates a matrix of k-hot vectors, where all values at each row are
zero except for the indicated indices
, which are set to one.
Declaration
public static T[, ] KHot<T>(int[][] indices, int columns)
Parameters
Type |
Name |
Description |
System.Int32[][] |
indices |
The rows's dimension which will be marked as one.
|
System.Int32 |
columns |
The size (length) of the vectors (columns of the matrix).
|
Returns
Type |
Description |
T[,] |
A matrix containing k-hot vectors where only elements at the indicated
indices are set to one and the others are zero.
|
Type Parameters
Name |
Description |
T |
The data type for the matrix.
|
View Source
Kronecker(Double[], Double[])
Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this double[] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
The left vector a.
|
System.Double[] |
b |
The right vector b.
|
Returns
Type |
Description |
System.Double[] |
The Kronecker product of the two vectors.
|
View Source
Kronecker(Double[], Double[], Double[])
Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this double[] a, double[] b, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
The left vector a.
|
System.Double[] |
b |
The right vector b.
|
System.Double[] |
result |
The matrix R to store the
Kronecker product between matrices A and B .
|
Returns
Type |
Description |
System.Double[] |
The Kronecker product of the two vectors.
|
View Source
Kronecker(Double[][], Double[][])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix a.
|
System.Double[][] |
b |
The right matrix b.
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[][], Double[][], Double[][])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix a.
|
System.Double[][] |
b |
The right matrix b.
|
System.Double[][] |
result |
The matrix R to store the
Kronecker product between matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[][], Double[,])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix a.
|
System.Double[,] |
b |
The right matrix b.
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[][], Double[,], Double[][])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, double[, ] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix a.
|
System.Double[,] |
b |
The right matrix b.
|
System.Double[][] |
result |
The matrix R to store the
Kronecker product between matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[,], Double[][])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[, ] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix a.
|
System.Double[][] |
b |
The right matrix b.
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[,], Double[][], Double[][])
Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[, ] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix a.
|
System.Double[][] |
b |
The right matrix b.
|
System.Double[][] |
result |
The matrix R to store the
Kronecker product between matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[,], Double[,])
Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix a.
|
System.Double[,] |
b |
The right matrix b.
|
Returns
Type |
Description |
System.Double[,] |
The Kronecker product of the two matrices.
|
View Source
Kronecker(Double[,], Double[,], Double[,])
Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this double[, ] a, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix a.
|
System.Double[,] |
b |
The right matrix b.
|
System.Double[,] |
result |
The matrix R to store the
Kronecker product between matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
The Kronecker product of the two matrices.
|
View Source
Last<T>(T[], Int32)
Returns the last count
elements of an array.
Declaration
public static T[] Last<T>(this T[] values, int count)
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
count |
|
Returns
Type Parameters
View Source
Log(Double[])
Declaration
public static double[] Log(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Log(Double[], Double[])
Declaration
public static double[] Log(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Log(Double[][])
Declaration
public static double[][] Log(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Log(Double[][], Double[][])
Declaration
public static double[][] Log(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Log(Double[,])
Declaration
public static double[, ] Log(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Log(Double[,], Double[,])
Declaration
public static double[, ] Log(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
LogDeterminant(Double[,])
Gets the log-determinant of a matrix.
Declaration
public static double LogDeterminant(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
LogDeterminant(Double[,], Boolean)
Gets the log-determinant of a matrix.
Declaration
public static double LogDeterminant(this double[, ] matrix, bool symmetric)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
System.Boolean |
symmetric |
|
Returns
Type |
Description |
System.Double |
|
View Source
LogPseudoDeterminant(Double[][])
Gets the log of the pseudo-determinant of a matrix.
Declaration
public static double LogPseudoDeterminant(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
LogPseudoDeterminant(Double[,])
Gets the log of the pseudo-determinant of a matrix.
Declaration
public static double LogPseudoDeterminant(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
Magic(Int32)
Creates a magic square matrix.
Declaration
public static double[, ] Magic(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Max<T>(T[])
Gets the maximum element in a vector.
Declaration
public static T Max<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Max<T>(T[], Int32)
Gets the maximum element in a vector up to a fixed length.
Declaration
public static T Max<T>(this T[] values, int length)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
length |
|
Returns
Type Parameters
View Source
Max<T>(T[], Int32, out Int32)
Gets the maximum element in a vector up to a fixed length.
Declaration
public static T Max<T>(this T[] values, int length, out int imax)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
length |
|
System.Int32 |
imax |
|
Returns
Type Parameters
View Source
Max<T>(T[], out Int32)
Gets the maximum element in a vector.
Declaration
public static T Max<T>(this T[] values, out int imax)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
imax |
|
Returns
Type Parameters
View Source
Max<T>(T[], out Int32, Boolean)
Gets the maximum element in a vector.
Declaration
public static T Max<T>(this T[] values, out int imax, bool alreadySorted)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
imax |
|
System.Boolean |
alreadySorted |
|
Returns
Type Parameters
View Source
Max<T>(T[][])
Gets the maximum value of a matrix.
Declaration
public static T Max<T>(this T[][] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type Parameters
View Source
Max<T>(T[][], Int32)
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[][] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type Parameters
View Source
Max<T>(T[][], Int32, T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[][] matrix, int dimension, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[][], Int32, Int32[], T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[][] matrix, int dimension, int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[][], Int32, out Int32[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[][] matrix, int dimension, out int[] indices)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
Returns
Type Parameters
View Source
Max<T>(T[][], Int32, out Int32[], T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[][] matrix, int dimension, out int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[][], out Tuple<Int32, Int32>)
Gets the maximum value of a matrix.
Declaration
public static T Max<T>(this T[][] matrix, out Tuple<int, int> imax)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Tuple<System.Int32, System.Int32> |
imax |
|
Returns
Type Parameters
View Source
Max<T>(T[,])
Gets the maximum value of a matrix.
Declaration
public static T Max<T>(this T[, ] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type Parameters
View Source
Max<T>(T[,], Int32)
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[, ] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type Parameters
View Source
Max<T>(T[,], Int32, T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[, ] matrix, int dimension, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[,], Int32, Int32[], T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[, ] matrix, int dimension, int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[,], Int32, out Int32[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[, ] matrix, int dimension, out int[] indices)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
Returns
Type Parameters
View Source
Max<T>(T[,], Int32, out Int32[], T[])
Gets the maximum values across one dimension of a matrix.
Declaration
public static T[] Max<T>(this T[, ] matrix, int dimension, out int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Max<T>(T[,], out Tuple<Int32, Int32>)
Gets the maximum value of a matrix.
Declaration
public static T Max<T>(this T[, ] matrix, out Tuple<int, int> imax)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Tuple<System.Int32, System.Int32> |
imax |
|
Returns
Type Parameters
View Source
Max<T>(Nullable<T>[], out Int32)
Gets the maximum non-null element in a vector.
Declaration
public static T? Max<T>(this T? [] values, out int imax)
where T : struct, IComparable<T>
Parameters
Type |
Name |
Description |
System.Nullable<T>[] |
values |
|
System.Int32 |
imax |
|
Returns
Type |
Description |
System.Nullable<T> |
|
Type Parameters
View Source
MemberwiseClone<T>(T[])
Creates a memberwise copy of a vector matrix. Vector elements
themselves are copied only in a shallow manner (i.e. not cloned).
Declaration
public static T[] MemberwiseClone<T>(this T[] a)
Parameters
Type |
Name |
Description |
T[] |
a |
|
Returns
Type Parameters
View Source
MemberwiseClone<T>(T[][])
Creates a member-wise copy of a jagged matrix. Matrix elements
themselves are copied only in a shallowed manner (i.e. not cloned).
Declaration
public static T[][] MemberwiseClone<T>(this T[][] a)
Parameters
Type |
Name |
Description |
T[][] |
a |
|
Returns
Type Parameters
View Source
MemberwiseClone<T>(T[,])
Creates a memberwise copy of a multidimensional matrix. Matrix elements
themselves are copied only in a shallowed manner (i.e. not cloned).
Declaration
public static T[, ] MemberwiseClone<T>(this T[, ] a)
Parameters
Type |
Name |
Description |
T[,] |
a |
|
Returns
Type Parameters
View Source
Merge<T>(T[][])
Merges a series of vectors into a single vector. This
operation can be reverted using Split<T>(T[], Int32).
Declaration
public static T[] Merge<T>(this T[][] vectors)
Parameters
Type |
Name |
Description |
T[][] |
vectors |
The vectors to be merged.
|
Returns
Type |
Description |
T[] |
A single array containing the given vectors.
|
Type Parameters
View Source
Merge<T>(T[][], Int32)
Merges a series of vectors into a single vector. This
operation can be reverted using Split<T>(T[], Int32).
Declaration
public static T[] Merge<T>(this T[][] vectors, int size)
Parameters
Type |
Name |
Description |
T[][] |
vectors |
The vectors to be merged.
|
System.Int32 |
size |
The size of the inner vectors.
|
Returns
Type |
Description |
T[] |
A single array containing the given vectors.
|
Type Parameters
View Source
Mesh(NumericRange, NumericRange, Double, Double)
Obsolete. Please specify the number of steps instead of the step size for the rows and columns.
Declaration
public static double[][] Mesh(NumericRange rowRange, NumericRange colRange, double rowStepSize, double colStepSize)
Parameters
Returns
Type |
Description |
System.Double[][] |
|
View Source
Mesh(NumericRange, Int32, NumericRange, Int32)
Creates a bi-dimensional mesh matrix.
Declaration
public static double[][] Mesh(NumericRange rowRange, int rowSteps, NumericRange colRange, int colSteps)
Parameters
Returns
Type |
Description |
System.Double[][] |
|
Examples
// The Mesh method can be used to generate all
// possible (x,y) pairs between two ranges.
// We can create a grid as
double[][] grid = Matrix.Mesh
(
rowMin: 0, rowMax: 1, rowSteps: 10,
colMin: 0, colMax: 1, colSteps: 5
);
// Now we can plot the points on-screen
ScatterplotBox.Show("Grid (fixed steps)", grid).Hold();
The resulting image is shown below.
View Source
Mesh(Double, Double, Double, Double, Double, Double)
Obsolete. Please specify the number of steps instead of the step size for the rows and columns.
Declaration
public static double[][] Mesh(double rowMin, double rowMax, double rowStepSize, double colMin, double colMax, double colStepSize)
Parameters
Type |
Name |
Description |
System.Double |
rowMin |
|
System.Double |
rowMax |
|
System.Double |
rowStepSize |
|
System.Double |
colMin |
|
System.Double |
colMax |
|
System.Double |
colStepSize |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Mesh(Double, Double, Int32, Double, Double, Int32)
Creates a bi-dimensional mesh matrix.
Declaration
public static double[][] Mesh(double rowMin, double rowMax, int rowSteps, double colMin, double colMax, int colSteps)
Parameters
Type |
Name |
Description |
System.Double |
rowMin |
|
System.Double |
rowMax |
|
System.Int32 |
rowSteps |
|
System.Double |
colMin |
|
System.Double |
colMax |
|
System.Int32 |
colSteps |
|
Returns
Type |
Description |
System.Double[][] |
|
Examples
// The Mesh method can be used to generate all
// possible (x,y) pairs between two ranges.
// We can create a grid as
double[][] grid = Matrix.Mesh
(
rowMin: 0, rowMax: 1, rowSteps: 10,
colMin: 0, colMax: 1, colSteps: 5
);
// Now we can plot the points on-screen
ScatterplotBox.Show("Grid (fixed steps)", grid).Hold();
The resulting image is shown below.
View Source
Mesh(Int32, Int32, Int32, Int32)
Creates a bi-dimensional mesh matrix.
Declaration
public static double[][] Mesh(int rowMin, int rowMax, int colMin, int colMax)
Parameters
Type |
Name |
Description |
System.Int32 |
rowMin |
|
System.Int32 |
rowMax |
|
System.Int32 |
colMin |
|
System.Int32 |
colMax |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Mesh<T>(T[], T[])
Creates a bi-dimensional mesh matrix.
Declaration
public static T[][] Mesh<T>(this T[] x, T[] y)
Parameters
Type |
Name |
Description |
T[] |
x |
The values to be replicated vertically.
|
T[] |
y |
The values to be replicated horizontally.
|
Returns
Type Parameters
Examples
// The Mesh method generates all possible (x,y) pairs
// between two vector of points. For example, let's
// suppose we have the values:
//
double[] a = { 0, 1 };
double[] b = { 0, 1 };
// We can create a grid as
double[][] grid = a.Mesh(b);
// the result will be:
double[][] expected =
{
new double[] { 0, 0 },
new double[] { 0, 1 },
new double[] { 1, 0 },
new double[] { 1, 1 },
};
View Source
MeshGrid<T>(T[], T[])
Generates a 2-D mesh grid from two vectors a
and b
,
generating two matrices len(a)
x len(b)
with all
all possible combinations of values between the two vectors. This
method is analogous to MATLAB/Octave's meshgrid
function.
Declaration
public static Tuple<T[, ], T[, ]> MeshGrid<T>(this T[] x, T[] y)
Parameters
Type |
Name |
Description |
T[] |
x |
|
T[] |
y |
|
Returns
Type |
Description |
Tuple<T[,], T[,]> |
A tuple containing two matrices: the first containing values
for the x-coordinates and the second for the y-coordinates.
|
Type Parameters
Examples
// The MeshGrid method generates two matrices that can be
// used to generate all possible (x,y) pairs between two
// vector of points. For example, let's suppose we have
// the values:
//
double[] a = { 1, 2, 3 };
double[] b = { 4, 5, 6 };
// We can create a grid
var grid = a.MeshGrid(b);
// get the x-axis values // || 1 1 1 |
double[,] x = grid.Item1; // x = || 2 2 2 |
// || 3 3 3 |
// get the y-axis values // || 4 5 6 |
double[,] y = grid.Item2; // y = || 4 5 6 |
// || 4 5 6 |
// we can either use those matrices separately (such as for plotting
// purposes) or we can also generate a grid of all the (x,y) pairs as
//
double[,][] xy = x.ApplyWithIndex((v, i, j) => new[] { x[i, j], y[i, j] });
// The result will be
//
// || (1, 4) (1, 5) (1, 6) |
// xy = || (2, 4) (2, 5) (2, 6) |
// || (3, 4) (3, 5) (3, 6) |
View Source
Min<T>(T[])
Gets the minimum element in a vector.
Declaration
public static T Min<T>(this T[] values)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Min<T>(T[], Int32)
Gets the minimum element in a vector up to a fixed length.
Declaration
public static T Min<T>(this T[] values, int length)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
length |
|
Returns
Type Parameters
View Source
Min<T>(T[], Int32, out Int32)
Gets the minimum element in a vector up to a fixed length.
Declaration
public static T Min<T>(this T[] values, int length, out int imax)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
length |
|
System.Int32 |
imax |
|
Returns
Type Parameters
View Source
Min<T>(T[], out Int32)
Gets the minimum element in a vector.
Declaration
public static T Min<T>(this T[] values, out int imin)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
imin |
|
Returns
Type Parameters
View Source
Min<T>(T[][])
Gets the minimum value of a matrix.
Declaration
public static T Min<T>(this T[][] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Returns
Type Parameters
View Source
Min<T>(T[][], Int32)
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[][] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type Parameters
View Source
Min<T>(T[][], Int32, T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[][] matrix, int dimension, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[][], Int32, Int32[], T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[][] matrix, int dimension, int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[][], Int32, out Int32[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[][] matrix, int dimension, out int[] indices)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
Returns
Type Parameters
View Source
Min<T>(T[][], Int32, out Int32[], T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[][] matrix, int dimension, out int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[][], out Tuple<Int32, Int32>)
Gets the minimum value of a matrix.
Declaration
public static T Min<T>(this T[][] matrix, out Tuple<int, int> imin)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
Tuple<System.Int32, System.Int32> |
imin |
|
Returns
Type Parameters
View Source
Min<T>(T[,])
Gets the minimum value of a matrix.
Declaration
public static T Min<T>(this T[, ] matrix)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Returns
Type Parameters
View Source
Min<T>(T[,], Int32)
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[, ] matrix, int dimension)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
Returns
Type Parameters
View Source
Min<T>(T[,], Int32, T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[, ] matrix, int dimension, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[,], Int32, Int32[], T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[, ] matrix, int dimension, int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[,], Int32, out Int32[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[, ] matrix, int dimension, out int[] indices)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
Returns
Type Parameters
View Source
Min<T>(T[,], Int32, out Int32[], T[])
Gets the minimum values across one dimension of a matrix.
Declaration
public static T[] Min<T>(this T[, ] matrix, int dimension, out int[] indices, T[] result)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
dimension |
|
System.Int32[] |
indices |
|
T[] |
result |
|
Returns
Type Parameters
View Source
Min<T>(T[,], out Tuple<Int32, Int32>)
Gets the minimum value of a matrix.
Declaration
public static T Min<T>(this T[, ] matrix, out Tuple<int, int> imin)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
Tuple<System.Int32, System.Int32> |
imin |
|
Returns
Type Parameters
View Source
Min<T>(Nullable<T>[], out Int32)
Gets the minimum non-null element in a vector.
Declaration
public static T? Min<T>(this T? [] values, out int imin)
where T : struct, IComparable<T>
Parameters
Type |
Name |
Description |
System.Nullable<T>[] |
values |
|
System.Int32 |
imin |
|
Returns
Type |
Description |
System.Nullable<T> |
|
Type Parameters
View Source
Normalize(Double[], Func<Double[], Double>, Boolean)
Normalizes a vector to have unit length.
Declaration
public static double[] Normalize(this double[] vector, Func<double[], double> norm, bool inPlace = false)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector.
|
Func<System.Double[], System.Double> |
norm |
A norm to use. Default is Euclidean(Double[]).
|
System.Boolean |
inPlace |
True to perform the operation in-place,
overwriting the original array; false to return a new array.
|
Returns
Type |
Description |
System.Double[] |
A multiple of vector a where ||a|| = 1 .
|
View Source
Normalize(Double[], Boolean)
Normalizes a vector to have unit length.
Declaration
public static double[] Normalize(this double[] vector, bool inPlace = false)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector.
|
System.Boolean |
inPlace |
True to perform the operation in-place,
overwriting the original array; false to return a new array.
|
Returns
Type |
Description |
System.Double[] |
A multiple of vector a where ||a|| = 1 .
|
View Source
Normalize(Single[], Func<Single[], Single>, Boolean)
Normalizes a vector to have unit length.
Declaration
public static float[] Normalize(this float[] vector, Func<float[], float> norm, bool inPlace = false)
Parameters
Type |
Name |
Description |
System.Single[] |
vector |
A vector.
|
Func<System.Single[], System.Single> |
norm |
A norm to use. Default is Euclidean(Single[]).
|
System.Boolean |
inPlace |
True to perform the operation in-place,
overwriting the original array; false to return a new array.
|
Returns
Type |
Description |
System.Single[] |
A multiple of vector a where ||a|| = 1 .
|
View Source
Normalize(Single[], Boolean)
Normalizes a vector to have unit length.
Declaration
public static float[] Normalize(this float[] vector, bool inPlace = false)
Parameters
Type |
Name |
Description |
System.Single[] |
vector |
A vector.
|
System.Boolean |
inPlace |
True to perform the operation in-place,
overwriting the original array; false to return a new array.
|
Returns
Type |
Description |
System.Single[] |
A multiple of vector a where ||a|| = 1 .
|
View Source
Null(Double[])
Gets the null-space of a column vector.
Declaration
public static Double[][] Null(this Double[] vector)
Parameters
Type |
Name |
Description |
Double[] |
vector |
|
Returns
Type |
Description |
Double[][] |
|
View Source
Null(Double[][])
Gets the null-space of a matrix.
Declaration
public static Double[][] Null(this Double[][] matrix)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
|
Returns
Type |
Description |
Double[][] |
|
View Source
Null(Double[,])
Gets the null-space of a matrix.
Declaration
public static Double[, ] Null(this Double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
Type |
Description |
Double[,] |
|
View Source
OneHot(Int32[])
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static double[, ] OneHot(int[] indices)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
Returns
Type |
Description |
System.Double[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
View Source
OneHot(Int32[], Double[,])
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static double[, ] OneHot(int[] indices, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
System.Double[,] |
result |
The matrix where the one-hot should be marked.
|
Returns
Type |
Description |
System.Double[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
View Source
OneHot(Int32[], Int32)
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static double[, ] OneHot(int[] indices, int columns)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
System.Int32 |
columns |
The size (length) of the vectors (columns of the matrix).
|
Returns
Type |
Description |
System.Double[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
View Source
OneHot<T>(Int32[])
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static T[, ] OneHot<T>(int[] indices)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
Returns
Type |
Description |
T[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
Type Parameters
Name |
Description |
T |
The data type for the matrix.
|
View Source
OneHot<T>(Int32[], T[,])
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static T[, ] OneHot<T>(int[] indices, T[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
T[,] |
result |
The matrix where the one-hot should be marked.
|
Returns
Type |
Description |
T[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
Type Parameters
Name |
Description |
T |
The data type for the matrix.
|
View Source
OneHot<T>(Int32[], Int32)
Creates a matrix of one-hot vectors, where all values at each row are
zero except for the indicated indices
, which is set to one.
Declaration
public static T[, ] OneHot<T>(int[] indices, int columns)
Parameters
Type |
Name |
Description |
System.Int32[] |
indices |
The rows's dimension which will be marked as one.
|
System.Int32 |
columns |
The size (length) of the vectors (columns of the matrix).
|
Returns
Type |
Description |
T[,] |
A matrix containing one-hot vectors where only a single position
is one and the others are zero.
|
Type Parameters
Name |
Description |
T |
The data type for the matrix.
|
View Source
Ones(Int32, Int32)
Creates a zero-valued matrix.
Declaration
public static double[, ] Ones(int rows, int columns)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
Returns
Type |
Description |
System.Double[,] |
A vector of the specified size.
|
View Source
Ones<T>(Int32, Int32)
Creates a zero-valued matrix.
Declaration
public static T[, ] Ones<T>(int rows, int columns)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
Name |
Description |
T |
The type of the matrix to be created.
|
View Source
Outer(Double[], Double[])
Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this double[] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
System.Double[] |
b |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Outer(Double[], Double[], Double[][])
Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[][] Outer(this double[] a, double[] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
System.Double[] |
b |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Outer(Double[], Double[], Double[,])
Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this double[] a, double[] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
System.Double[] |
b |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Pad<T>(T[,], Int32)
Pads a matrix by filling all of its sides with zeros.
Declaration
public static T[, ] Pad<T>(this T[, ] matrix, int all)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose contents will be padded.
|
System.Int32 |
all |
How many rows and columns to add at each side of the matrix.
|
Returns
Type |
Description |
T[,] |
The original matrix with an extra row of zeros at the selected places.
|
Type Parameters
View Source
Pad<T>(T[,], Int32, Int32)
Pads a matrix by filling all of its sides with zeros.
Declaration
public static T[, ] Pad<T>(this T[, ] matrix, int topBottom, int rightLeft)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose contents will be padded.
|
System.Int32 |
topBottom |
How many rows to add at the bottom and top of the matrix.
|
System.Int32 |
rightLeft |
How many columns to add at the sides of the matrix.
|
Returns
Type |
Description |
T[,] |
The original matrix with an extra row of zeros at the selected places.
|
Type Parameters
View Source
Pad<T>(T[,], Int32, Int32, Int32)
Pads a matrix by filling all of its sides with zeros.
Declaration
public static T[, ] Pad<T>(this T[, ] matrix, int top, int sides, int bottom)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose contents will be padded.
|
System.Int32 |
top |
How many rows to add at the top.
|
System.Int32 |
sides |
How many columns to add at the sides.
|
System.Int32 |
bottom |
How many rows to add at the bottom.
|
Returns
Type |
Description |
T[,] |
The original matrix with an extra row of zeros at the selected places.
|
Type Parameters
View Source
Pad<T>(T[,], Int32, Int32, Int32, Int32)
Pads a matrix by filling all of its sides with zeros.
Declaration
public static T[, ] Pad<T>(this T[, ] matrix, int top, int right, int bottom, int left)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose contents will be padded.
|
System.Int32 |
top |
How many rows to add at the top.
|
System.Int32 |
right |
How many columns to add at the right side.
|
System.Int32 |
bottom |
How many rows to add at the bottom.
|
System.Int32 |
left |
How many columns to add at the left side.
|
Returns
Type |
Description |
T[,] |
The original matrix with an extra row of zeros at the selected places.
|
Type Parameters
View Source
Parse(String)
Converts the string representation of a matrix to its
double-precision floating-point number matrix equivalent.
Declaration
public static double[, ] Parse(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
The string representation of the matrix.
|
Returns
Type |
Description |
System.Double[,] |
A double-precision floating-point number matrix parsed
from the given string using the given format provider.
|
View Source
Converts the string representation of a matrix to its
double-precision floating-point number matrix equivalent.
Declaration
public static double[, ] Parse(string str, IMatrixFormatProvider provider)
Parameters
Type |
Name |
Description |
System.String |
str |
The string representation of the matrix.
|
IMatrixFormatProvider |
provider |
The format provider to use in the conversion. Default is to use
CurrentCulture.
|
Returns
Type |
Description |
System.Double[,] |
A double-precision floating-point number matrix parsed
from the given string using the given format provider.
|
View Source
Pow(Double[], Double)
Declaration
public static double[] Pow(this double[] value, double y)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Pow(Double[], Double, Double[])
Declaration
public static double[] Pow(this double[] value, double y, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Pow(Double[][], Double)
Declaration
public static double[][] Pow(this double[][] value, double y)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Pow(Double[][], Double, Double[][])
Declaration
public static double[][] Pow(this double[][] value, double y, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Pow(Double[,], Double)
Declaration
public static double[, ] Pow(this double[, ] value, double y)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Pow(Double[,], Double, Double[,])
Declaration
public static double[, ] Pow(this double[, ] value, double y, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Power(Double[,], Int32)
Multiplies a matrix by itself n
times.
Declaration
public static double[, ] Power(this double[, ] matrix, int n)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
System.Int32 |
n |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Product(Double[])
Declaration
public static double Product(this double[] vector)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector whose product will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Product(Double[][])
Declaration
public static double Product(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sums will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Product(Double[][], Int32)
Declaration
public static double[] Product(this double[][] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Product(Double[][], Int32, Decimal[])
Declaration
public static decimal[] Product(this double[][] matrix, int dimension, decimal[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Decimal[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
Product(Double[][], Int32, Double[])
Declaration
public static double[] Product(this double[][] matrix, int dimension, double[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Double[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Product(Double[][], Int32, Int16[])
Declaration
public static short[] Product(this double[][] matrix, int dimension, short[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int16[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
Product(Double[][], Int32, Int32[])
Declaration
public static int[] Product(this double[][] matrix, int dimension, int[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int32[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Product(Double[][], Int32, Int64[])
Declaration
public static long[] Product(this double[][] matrix, int dimension, long[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int64[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
Product(Double[][], Int32, Single[])
Declaration
public static float[] Product(this double[][] matrix, int dimension, float[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Single[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Single[] |
|
View Source
Product(Double[,])
Declaration
public static double Product(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Product(Double[,], Int32)
Declaration
public static double[] Product(this double[, ] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Product(Double[,], Int32, Decimal[])
Declaration
public static decimal[] Product(this double[, ] matrix, int dimension, decimal[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Decimal[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
Product(Double[,], Int32, Double[])
Declaration
public static double[] Product(this double[, ] matrix, int dimension, double[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Double[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Product(Double[,], Int32, Int16[])
Declaration
public static short[] Product(this double[, ] matrix, int dimension, short[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int16[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
Product(Double[,], Int32, Int32[])
Declaration
public static int[] Product(this double[, ] matrix, int dimension, int[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int32[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Product(Double[,], Int32, Int64[])
Declaration
public static long[] Product(this double[, ] matrix, int dimension, long[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Int64[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
Product(Double[,], Int32, Single[])
Declaration
public static float[] Product(this double[, ] matrix, int dimension, float[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose product will be calculated.
|
System.Int32 |
dimension |
The dimension in which the product will be
calculated.
|
System.Single[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Single[] |
|
View Source
PseudoDeterminant(Double[][])
Gets the pseudo-determinant of a matrix.
Declaration
public static double PseudoDeterminant(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
PseudoDeterminant(Double[,])
Gets the pseudo-determinant of a matrix.
Declaration
public static double PseudoDeterminant(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
PseudoInverse(Double[][])
Computes the pseudo-inverse of a matrix.
Declaration
public static Double[][] PseudoInverse(this Double[][] matrix)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
|
Returns
Type |
Description |
Double[][] |
|
View Source
PseudoInverse(Double[,])
Computes the pseudo-inverse of a matrix.
Declaration
public static Double[, ] PseudoInverse(this Double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
Type |
Description |
Double[,] |
|
View Source
Random(Int32)
Creates a matrix with uniformly distributed random data.
Declaration
public static double[, ] Random(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Random(Int32, Double, Double, Boolean, Double[,])
Creates a matrix with uniformly distributed random data.
Declaration
public static double[, ] Random(int size, double min, double max, bool symmetric = false, double[, ] result = null)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
System.Double |
min |
|
System.Double |
max |
|
System.Boolean |
symmetric |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Random(Int32, Int32)
Creates a matrix with uniformly distributed random data.
Declaration
public static double[, ] Random(int rows, int columns)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
columns |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Random(Int32, Int32, Double, Double, Double[,])
Creates a matrix with uniformly distributed random data.
Declaration
public static double[, ] Random(int rows, int columns, double min, double max, double[, ] result = null)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
|
System.Int32 |
columns |
|
System.Double |
min |
|
System.Double |
max |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Random<T>(Int32, IRandomNumberGenerator<T>, Boolean, T[,])
Creates a square matrix matrix with random data.
Declaration
public static T[, ] Random<T>(int size, IRandomNumberGenerator<T> generator, bool symmetric = false, T[, ] result = null)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
IRandomNumberGenerator<T> |
generator |
|
System.Boolean |
symmetric |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
Random<T>(Int32, Int32, IRandomNumberGenerator<T>, T[,])
Creates a rows-by-cols matrix with random data.
Declaration
public static T[, ] Random<T>(int rows, int cols, IRandomNumberGenerator<T> generator, T[, ] result = null)
Parameters
Returns
Type Parameters
View Source
Rank(Double[,])
Gets the rank of a matrix.
Declaration
public static int Rank(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
Remove<T>(T[,], Int32[], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Remove<T>(this T[, ] data, int[] rowIndexes, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
data |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
Returns
Type Parameters
View Source
RemoveAll<T>(T[], T)
Removes all elements in the array that are equal to the given value
.
Declaration
public static T[] RemoveAll<T>(this T[] values, T value)
Parameters
Type |
Name |
Description |
T[] |
values |
The values.
|
T |
value |
The value to be removed.
|
Returns
Type Parameters
View Source
RemoveAt<T>(T[], Int32)
Removes an element from a vector.
Declaration
public static T[] RemoveAt<T>(this T[] array, int index)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Int32 |
index |
|
Returns
Type Parameters
View Source
RemoveColumn<T>(T[][], Int32)
Returns a new matrix without one of its columns.
Declaration
public static T[][] RemoveColumn<T>(this T[][] matrix, int index)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
System.Int32 |
index |
|
Returns
Type Parameters
View Source
RemoveColumn<T>(T[,], Int32)
Returns a new matrix without one of its columns.
Declaration
public static T[, ] RemoveColumn<T>(this T[, ] matrix, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
index |
|
Returns
Type Parameters
View Source
RemoveRow<T>(T[,], Int32)
Returns a new matrix without one of its rows.
Declaration
public static T[, ] RemoveRow<T>(this T[, ] matrix, int index)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Int32 |
index |
|
Returns
Type Parameters
View Source
Replace<T>(T, Object, Object)
Replaces one value by another in a matrix of any dimensions.
This is not an optimized operation.
Declaration
public static T Replace<T>(this T array, object from, object to)
where T : class
Parameters
Type |
Name |
Description |
T |
array |
The array where elements will be replaced.
|
System.Object |
from |
The values which should be replaced.
|
System.Object |
to |
The value to put in place of from .
|
Returns
Type |
Description |
T |
A new array where all instances of from
have been replaced with to .
|
Type Parameters
View Source
Reshape(Array, Int32[], MatrixOrder)
Changes the length of individual dimensions in an array.
Declaration
public static Array Reshape(this Array array, int[] shape, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
Array |
array |
The array.
|
System.Int32[] |
shape |
The new shape.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
View Source
Reshape<T>(T[], Int32, Int32, T[,], MatrixOrder)
Transforms a vector into a matrix of given dimensions.
Declaration
public static T[, ] Reshape<T>(this T[] array, int rows, int cols, T[, ] result, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Int32 |
rows |
|
System.Int32 |
cols |
|
T[,] |
result |
|
MatrixOrder |
order |
|
Returns
Type Parameters
View Source
Reshape<T>(T[], Int32, Int32, MatrixOrder)
Transforms a vector into a matrix of given dimensions.
Declaration
public static T[, ] Reshape<T>(this T[] array, int rows, int cols, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Int32 |
rows |
|
System.Int32 |
cols |
|
MatrixOrder |
order |
|
Returns
Type Parameters
View Source
Reshape<T>(T[][], T[], MatrixOrder)
Transforms a jagged array matrix into a single vector.
Declaration
public static T[] Reshape<T>(this T[][] array, T[] result, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[][] |
array |
A jagged array.
|
T[] |
result |
The vector where to store the copy.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Reshape<T>(T[][], MatrixOrder)
Transforms a jagged array matrix into a single vector.
Declaration
public static T[] Reshape<T>(this T[][] array, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[][] |
array |
A jagged array.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Reshape<T>(T[,], T[], MatrixOrder)
Transforms a matrix into a single vector.
Declaration
public static T[] Reshape<T>(this T[, ] matrix, T[] result, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
T[] |
result |
The vector where to store the copy.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Reshape<T>(T[,], MatrixOrder)
Transforms a matrix into a single vector.
Declaration
public static T[] Reshape<T>(this T[, ] matrix, MatrixOrder order = default(MatrixOrder))
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
MatrixOrder |
order |
The direction to perform copying. Pass
1 to perform a copy by reading the matrix in row-major order.
Pass 0 to perform a copy in column-major copy. Default is 1
(row-major, c-style order).
|
Returns
Type Parameters
View Source
Reversed<T>(T[])
Returns a copy of an array in reversed order.
Declaration
public static T[] Reversed<T>(this T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Round(Double[])
Declaration
public static double[] Round(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Round(Double[], Double[])
Declaration
public static double[] Round(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Round(Double[], Int32)
Rounds a double-precision floating-point number array to a specified number of fractional digits.
Declaration
public static double[] Round(double[] vector, int decimals = 0)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
|
System.Int32 |
decimals |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Round(Double[][])
Declaration
public static double[][] Round(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Round(Double[][], Double[][])
Declaration
public static double[][] Round(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Round(Double[,])
Declaration
public static double[, ] Round(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Round(Double[,], Double[,])
Declaration
public static double[, ] Round(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Round(Double[,], Int32)
Rounds a double-precision floating-point matrix to a specified number of fractional digits.
Declaration
public static double[, ] Round(this double[, ] matrix, int decimals = 0)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
System.Int32 |
decimals |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Rows<T>(T[])
Gets the number of rows in a vector.
Declaration
public static int Rows<T>(this T[] vector)
Parameters
Type |
Name |
Description |
T[] |
vector |
The vector whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of rows in the column vector.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the column vector.
|
View Source
Rows<T>(T[][])
Gets the number of rows in a jagged matrix.
Declaration
public static int Rows<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of rows in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Rows<T>(T[,,])
Gets the number of rows in a multidimensional matrix.
Declaration
public static int Rows<T>(this T[,, ] matrix)
Parameters
Type |
Name |
Description |
T[,,] |
matrix |
The matrix whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of rows in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Rows<T>(T[,])
Gets the number of rows in a multidimensional matrix.
Declaration
public static int Rows<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of rows in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
Rows<T>(IList<IList<T>>)
Gets the number of rows in a jagged matrix.
Declaration
public static int Rows<T>(this IList<IList<T>> values)
Parameters
Type |
Name |
Description |
IList<IList<T>> |
values |
The matrix whose number of rows must be computed.
|
Returns
Type |
Description |
System.Int32 |
The number of rows in the matrix.
|
Type Parameters
Name |
Description |
T |
The type of the elements in the matrix.
|
View Source
RowVector<T>(T[])
Creates a 1xN matrix with a single row vector of size N.
Declaration
public static T[, ] RowVector<T>(params T[] values)
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type Parameters
View Source
Set(Array, Int32, Int32, Array)
Sets a region of a matrix to the given values.
Declaration
public static void Set(this Array destination, int dimension, int index, Array value)
Parameters
Type |
Name |
Description |
Array |
destination |
The matrix where elements will be set.
|
System.Int32 |
dimension |
The dimension where indices refer to.
|
System.Int32 |
index |
The index.
|
Array |
value |
The matrix of values to which matrix elements will be set.
|
View Source
Set(Array, Int32, Int32, Int32, Array)
Sets a region of a matrix to the given values.
Declaration
public static void Set(this Array destination, int dimension, int start, int end, Array value)
Parameters
Type |
Name |
Description |
Array |
destination |
The matrix where elements will be set.
|
System.Int32 |
dimension |
The dimension where indices refer to.
|
System.Int32 |
start |
The start index.
|
System.Int32 |
end |
The end index.
|
Array |
value |
The matrix of values to which matrix elements will be set.
|
View Source
Set<T>(T[], T, Int32)
Sets a subvector to the given value.
Declaration
public static void Set<T>(this T[] destination, T value, int index)
Parameters
Type |
Name |
Description |
T[] |
destination |
The vector to return the subvector from.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
index |
The index of the element to be set.
|
Type Parameters
View Source
Set<T>(T[], T, Int32, Int32)
Sets a subvector to the given value.
Declaration
public static void Set<T>(this T[] destination, T value, int startRow, int endRow)
Parameters
Type |
Name |
Description |
T[] |
destination |
The vector to return the subvector from.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Starting index.
|
System.Int32 |
endRow |
End index.
|
Type Parameters
View Source
Set<T>(T[], T, Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[] destination, T value, int[] indices)
Parameters
Type |
Name |
Description |
T[] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
indices |
Array of indices.
|
Type Parameters
View Source
Set<T>(T[][], T)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T value)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T |
value |
The value to which matrix elements will be set.
|
Type Parameters
View Source
Set<T>(T[][], T, Int32, Int32, Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T value, int startRow, int endRow, int startCol, int endCol)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startCol |
Starting column index
|
System.Int32 |
endCol |
End column index
|
Type Parameters
View Source
Set<T>(T[][], T, Int32, Int32, Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T value, int startRow, int endRow, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(T[][], T, Int32[], Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T value, int[] rowIndices, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Type Parameters
View Source
Set<T>(T[][], T, Int32[], Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T value, int[] rowIndices, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(T[][], T[][])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T[][] value)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T[][] |
value |
The matrix of values to which matrix elements will be set.
|
Type Parameters
View Source
Set<T>(T[][], T[][], Int32, Int32, Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static void Set<T>(this T[][] destination, T[][] value, int startRow, int endRow, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T[][] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndices |
Array of column indices.
|
Type Parameters
View Source
Set<T>(T[][], T[][], Int32[], Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T[][] value, int[] rowIndices, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T[][] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Type Parameters
View Source
Set<T>(T[][], T[][], Int32[], Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[][] destination, T[][] value, int[] rowIndices, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where elements will be set.
|
T[][] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(T[][], Func<T, Boolean>, T)
Sets elements from a matrix to a given value.
Declaration
public static T[][] Set<T>(this T[][] values, Func<T, bool> match, T value)
Parameters
Type |
Name |
Description |
T[][] |
values |
The matrix of values to be changed.
|
Func<T, System.Boolean> |
match |
The function used to determine whether an
element in the matrix should be changed or not.
|
T |
value |
The values to set the elements to.
|
Returns
Type Parameters
View Source
Set<T>(T[][], Int32, Int32, Int32, Int32, T[][])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Set<T>(this T[][] destination, int startRow, int endRow, int startColumn, int endColumn, T[][] values)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where the values should be stored.
|
System.Int32 |
startRow |
Start row index in the destination matrix.
|
System.Int32 |
endRow |
End row index in the destination matrix.
|
System.Int32 |
startColumn |
Start column index in the destination matrix.
|
System.Int32 |
endColumn |
End column index in the destination matrix.
|
T[][] |
values |
The values to be stored.
|
Returns
Type Parameters
View Source
Set<T>(T[,], T)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T value)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T |
value |
The value to which matrix elements will be set.
|
Type Parameters
View Source
Set<T>(T[,], T, Int32, Int32, Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T value, int startRow, int endRow, int startCol, int endCol)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startCol |
Starting column index
|
System.Int32 |
endCol |
End column index
|
Type Parameters
View Source
Set<T>(T[,], T, Int32, Int32, Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T value, int startRow, int endRow, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(T[,], T, Int32[], Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T value, int[] rowIndices, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Type Parameters
View Source
Set<T>(T[,], T, Int32[], Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T value, int[] rowIndices, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(T[,], T[,])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T[, ] value)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T[,] |
value |
The matrix of values to which matrix elements will be set.
|
Type Parameters
View Source
Set<T>(T[,], T[,], Int32, Int32, Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T[, ] value, int startRow, int endRow, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T[,] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndices |
Array of column indices.
|
Type Parameters
View Source
Set<T>(T[,], T[,], Int32[], Int32, Int32)
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T[, ] value, int[] rowIndices, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T[,] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Type Parameters
View Source
Set<T>(T[,], T[,], Int32[], Int32[])
Sets a region of a matrix to the given values.
Declaration
public static void Set<T>(this T[, ] destination, T[, ] value, int[] rowIndices, int[] columnIndices)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where elements will be set.
|
T[,] |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
rowIndices |
Array of row indices
|
System.Int32[] |
columnIndices |
Array of column indices
|
Type Parameters
View Source
Set<T>(List<T>, T, Int32[])
Sets a subvector to the given value.
Declaration
public static void Set<T>(this List<T> destination, T value, int[] indices)
Parameters
Type |
Name |
Description |
List<T> |
destination |
The vector to return the subvector from.
|
T |
value |
The matrix of values to which matrix elements will be set.
|
System.Int32[] |
indices |
Array of indices.
|
Type Parameters
View Source
SetColumn<T>(T[][], Int32, T)
Stores a column vector into the given column position of the matrix.
Declaration
public static T[][] SetColumn<T>(this T[][] m, int index, T value)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T |
value |
|
Returns
Type Parameters
View Source
SetColumn<T>(T[][], Int32, T[])
Stores a column vector into the given column position of the matrix.
Declaration
public static T[][] SetColumn<T>(this T[][] m, int index, T[] column)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T[] |
column |
|
Returns
Type Parameters
View Source
SetColumn<T>(T[,], Int32, T[])
Stores a column vector into the given column position of the matrix.
Declaration
public static T[, ] SetColumn<T>(this T[, ] m, int index, T[] column)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32 |
index |
|
T[] |
column |
|
Returns
Type Parameters
View Source
SetEquals<T>(IEnumerable<T>, IEnumerable<T>)
Compares two enumerables for set equality. Two
enumerables are set equal if they contain the
same elements, but not necessarily in the same
order.
Declaration
public static bool SetEquals<T>(this IEnumerable<T> list1, IEnumerable<T> list2)
Parameters
Type |
Name |
Description |
IEnumerable<T> |
list1 |
The first set.
|
IEnumerable<T> |
list2 |
The first set.
|
Returns
Type |
Description |
System.Boolean |
True if the two sets contains the same elements, false otherwise.
|
Type Parameters
Name |
Description |
T |
The element type.
|
View Source
SetRow<T>(T[][], Int32, T)
Stores a row vector into the given row position of the matrix.
Declaration
public static T[][] SetRow<T>(this T[][] m, int index, T value)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T |
value |
|
Returns
Type Parameters
View Source
SetRow<T>(T[][], Int32, T[])
Stores a row vector into the given row position of the matrix.
Declaration
public static T[][] SetRow<T>(this T[][] m, int index, T[] row)
Parameters
Type |
Name |
Description |
T[][] |
m |
|
System.Int32 |
index |
|
T[] |
row |
|
Returns
Type Parameters
View Source
SetRow<T>(T[,], Int32, T[])
Stores a row vector into the given row position of the matrix.
Declaration
public static T[, ] SetRow<T>(this T[, ] m, int index, T[] row)
Parameters
Type |
Name |
Description |
T[,] |
m |
|
System.Int32 |
index |
|
T[] |
row |
|
Returns
Type Parameters
View Source
SetTo<T>(T[], T)
Copies the content of an array to another array.
Declaration
public static void SetTo<T>(this T[] destination, T value)
Parameters
Type |
Name |
Description |
T[] |
destination |
The matrix where the elements should be set.
|
T |
value |
The value to which the matrix elements should be set to.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[], T[])
Copies the content of an array to another array.
Declaration
public static void SetTo<T>(this T[] destination, T[] matrix)
Parameters
Type |
Name |
Description |
T[] |
destination |
The matrix where the elements should be copied to.
|
T[] |
matrix |
The source matrix to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[][], T)
Sets all elements of an array to a given value.
Declaration
public static void SetTo<T>(this T[][] destination, T value)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where the elements should be copied to.
|
T |
value |
The value to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[][], T[,])
Copies the content of an array to another array.
Declaration
public static void SetTo<T>(this T[][] destination, T[, ] matrix)
Parameters
Type |
Name |
Description |
T[][] |
destination |
The matrix where the elements should be copied to.
|
T[,] |
matrix |
The source matrix to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[,], T)
Sets all elements of an array to a given value.
Declaration
public static void SetTo<T>(this T[, ] destination, T value)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where the elements should be copied to.
|
T |
value |
The value to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[,], T[][])
Copies the content of an array to another array.
Declaration
public static void SetTo<T>(this T[, ] destination, T[][] matrix)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where the elements should be copied to.
|
T[][] |
matrix |
The source matrix to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetTo<T>(T[,], T[,])
Copies the content of an array to another array.
Declaration
public static void SetTo<T>(this T[, ] destination, T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
destination |
The matrix where the elements should be copied to.
|
T[,] |
matrix |
The source matrix to be copied.
|
Type Parameters
Name |
Description |
T |
The type of the elements to be copied.
|
View Source
SetValue(Array, Object, Boolean, Int32[])
Sets a value to the element at the specified position in the multidimensional
or jagged System.Array. The indexes are specified as an array of 32-bit integers.
Declaration
public static void SetValue(this Array array, object value, bool deep, int[] indices)
Parameters
Type |
Name |
Description |
Array |
array |
A jagged or multidimensional array.
|
System.Object |
value |
The new value for the specified element.
|
System.Boolean |
deep |
If set to true, internal arrays in jagged arrays will be followed.
|
System.Int32[] |
indices |
A one-dimensional array of 32-bit integers that represent
the indexes specifying the position of the element to set.
|
View Source
Sign(Double[])
Declaration
public static double[] Sign(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sign(Double[], Double[])
Declaration
public static double[] Sign(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sign(Double[][])
Declaration
public static double[][] Sign(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Sign(Double[][], Double[][])
Declaration
public static double[][] Sign(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Sign(Double[,])
Declaration
public static double[, ] Sign(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Sign(Double[,], Double[,])
Declaration
public static double[, ] Sign(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
SignedPow(Double[], Double)
Elementwise signed power.
Declaration
public static double[] SignedPow(this double[] value, double y)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
SignedPow(Double[], Double, Double[])
Elementwise signed power.
Declaration
public static double[] SignedPow(this double[] value, double y, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
SignedPow(Double[][], Double)
Elementwise signed power.
Declaration
public static double[][] SignedPow(this double[][] value, double y)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
SignedPow(Double[][], Double, Double[][])
Elementwise signed power.
Declaration
public static double[][] SignedPow(this double[][] value, double y, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
SignedPow(Double[,], Double)
Elementwise signed power.
Declaration
public static double[, ] SignedPow(this double[, ] value, double y)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double |
y |
A power.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
SignedPow(Double[,], Double, Double[,])
Elementwise signed power.
Declaration
public static double[, ] SignedPow(this double[, ] value, double y, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double |
y |
A power.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
SignSqrt(Double[])
Elementwise signed square-root.
Declaration
public static double[] SignSqrt(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
SignSqrt(Double[], Double[])
Elementwise signed square-root.
Declaration
public static double[] SignSqrt(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
SignSqrt(Double[][])
Elementwise signed square-root.
Declaration
public static double[][] SignSqrt(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
SignSqrt(Double[][], Double[][])
Elementwise signed square-root.
Declaration
public static double[][] SignSqrt(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
SignSqrt(Double[,])
Elementwise signed square-root.
Declaration
public static double[, ] SignSqrt(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
SignSqrt(Double[,], Double[,])
Elementwise signed square-root.
Declaration
public static double[, ] SignSqrt(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Solve(Double[][], Double[], Boolean)
Returns the solution matrix if the matrix is square or the least squares solution otherwise.
Declaration
public static Double[] Solve(this Double[][] matrix, Double[] rightSide, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
The matrix for the linear problem.
|
Double[] |
rightSide |
The right side b .
|
System.Boolean |
leastSquares |
True to produce a solution even if the
matrix is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[] |
|
Examples
// Create a matrix. Please note that this matrix
// is singular (i.e. not invertible), so only a
// least squares solution would be feasible here.
Double[,] matrix =
{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
// Define a right side vector b:
Double[] rightSide = { 1, 2, 3 };
// Solve the linear system Ax = b by finding x:
Double[] x = Matrix.Solve(matrix, rightSide, leastSquares: true);
// The answer should be { -1/18, 2/18, 5/18 }.
View Source
Solve(Double[][], Double[][], Boolean)
Returns the solution matrix if the matrix is square or the least squares solution otherwise.
Declaration
public static Double[][] Solve(this Double[][] matrix, Double[][] rightSide, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
The matrix for the linear problem.
|
Double[][] |
rightSide |
The right side b .
|
System.Boolean |
leastSquares |
True to produce a solution even if the
matrix is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[][] |
|
Examples
// Create a matrix. Please note that this matrix
// is singular (i.e. not invertible), so only a
// least squares solution would be feasible here.
Double[,] matrix =
{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
// Define a right side matrix b:
Double[,] rightSide = { {1}, {2}, {3} };
// Solve the linear system Ax = b by finding x:
Double[,] x = Matrix.Solve(matrix, rightSide, leastSquares: true);
// The answer should be { {-1/18}, {2/18}, {5/18} }.
View Source
Solve(Double[,], Double[], Boolean)
Returns the solution matrix if the matrix is square or the least squares solution otherwise.
Declaration
public static Double[] Solve(this Double[, ] matrix, Double[] rightSide, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
The matrix for the linear problem.
|
Double[] |
rightSide |
The right side b .
|
System.Boolean |
leastSquares |
True to produce a solution even if the
matrix is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[] |
|
Examples
// Create a matrix. Please note that this matrix
// is singular (i.e. not invertible), so only a
// least squares solution would be feasible here.
Double[,] matrix =
{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
// Define a right side vector b:
Double[] rightSide = { 1, 2, 3 };
// Solve the linear system Ax = b by finding x:
Double[] x = Matrix.Solve(matrix, rightSide, leastSquares: true);
// The answer should be { -1/18, 2/18, 5/18 }.
View Source
Solve(Double[,], Double[,], Boolean)
Returns the solution matrix if the matrix is square or the least squares solution otherwise.
Declaration
public static Double[, ] Solve(this Double[, ] matrix, Double[, ] rightSide, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
The matrix for the linear problem.
|
Double[,] |
rightSide |
The right side b .
|
System.Boolean |
leastSquares |
True to produce a solution even if the
matrix is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[,] |
|
Examples
// Create a matrix. Please note that this matrix
// is singular (i.e. not invertible), so only a
// least squares solution would be feasible here.
Double[,] matrix =
{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
// Define a right side matrix b:
Double[,] rightSide = { {1}, {2}, {3} };
// Solve the linear system Ax = b by finding x:
Double[,] x = Matrix.Solve(matrix, rightSide, leastSquares: true);
// The answer should be { {-1/18}, {2/18}, {5/18} }.
View Source
SolveForDiagonal(Double[][], Double[], Boolean)
Returns the solution matrix for a linear system involving a diagonal matrix ion the right-hand side.
Declaration
public static Double[][] SolveForDiagonal(this Double[][] matrix, Double[] diagonalRightSide, bool leastSquares = false)
Parameters
Type |
Name |
Description |
Double[][] |
matrix |
The matrix for the linear problem.
|
Double[] |
diagonalRightSide |
The right side b .
|
System.Boolean |
leastSquares |
True to produce a solution even if the
matrix is singular; false otherwise. Default is false.
|
Returns
Type |
Description |
Double[][] |
|
View Source
Sort<TKey, TValue>(TKey[], TValue[][])
Sorts the columns of a matrix by sorting keys.
Declaration
public static TValue[][] Sort<TKey, TValue>(TKey[] keys, TValue[][] values)
Parameters
Type |
Name |
Description |
TKey[] |
keys |
The key value for each column.
|
TValue[][] |
values |
The matrix to be sorted.
|
Returns
Type |
Description |
TValue[][] |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
View Source
Sort<TKey, TValue>(TKey[], TValue[][], IComparer<TKey>)
Sorts the columns of a matrix by sorting keys.
Declaration
public static TValue[][] Sort<TKey, TValue>(TKey[] keys, TValue[][] values, IComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
TKey[] |
keys |
The key value for each column.
|
TValue[][] |
values |
The matrix to be sorted.
|
IComparer<TKey> |
comparer |
The comparer to use.
|
Returns
Type |
Description |
TValue[][] |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
View Source
Sort<TKey, TValue>(TKey[], TValue[,])
Sorts the columns of a matrix by sorting keys.
Declaration
public static TValue[, ] Sort<TKey, TValue>(TKey[] keys, TValue[, ] values)
Parameters
Type |
Name |
Description |
TKey[] |
keys |
The key value for each column.
|
TValue[,] |
values |
The matrix to be sorted.
|
Returns
Type |
Description |
TValue[,] |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
View Source
Sort<TKey, TValue>(TKey[], TValue[,], IComparer<TKey>)
Sorts the columns of a matrix by sorting keys.
Declaration
public static TValue[, ] Sort<TKey, TValue>(TKey[] keys, TValue[, ] values, IComparer<TKey> comparer)
Parameters
Type |
Name |
Description |
TKey[] |
keys |
The key value for each column.
|
TValue[,] |
values |
The matrix to be sorted.
|
IComparer<TKey> |
comparer |
The comparer to use.
|
Returns
Type |
Description |
TValue[,] |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
View Source
Split<T>(T[], Int32)
Splits a given vector into a smaller vectors of the given size.
This operation can be reverted using Merge<T>(T[][], Int32).
Declaration
public static T[][] Split<T>(this T[] vector, int size)
Parameters
Type |
Name |
Description |
T[] |
vector |
The vector to be splitted.
|
System.Int32 |
size |
The size of the resulting vectors.
|
Returns
Type |
Description |
T[][] |
An array of vectors containing the subdivisions of the given vector.
|
Type Parameters
View Source
Sqrt(Double[], Double[])
Declaration
public static double[] Sqrt(this double[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
A matrix.
|
System.Double[] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sqrt(Double[][])
Declaration
public static double[][] Sqrt(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Sqrt(Double[][], Double[][])
Declaration
public static double[][] Sqrt(this double[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
A matrix.
|
System.Double[][] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Sqrt(Double[,])
Declaration
public static double[, ] Sqrt(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Sqrt(Double[,], Double[,])
Declaration
public static double[, ] Sqrt(this double[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
A matrix.
|
System.Double[,] |
result |
The vector where the result should be stored. Pass the same
vector as value to perform the operation in place.
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Square<T>(Int32, T)
Creates a matrix with all values set to a given value.
Declaration
public static T[, ] Square<T>(int size, T value)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
The number of rows and columns in the matrix.
|
T |
value |
The initial values for the matrix.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
See Also
View Source
Squeeze(Array)
Removes dimensions of length 1 from the array.
Declaration
public static Array Squeeze(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
The array.
|
Returns
View Source
Stack<T>(T[])
Combines vectors vertically.
Declaration
public static T[, ] Stack<T>(params T[] elements)
Parameters
Type |
Name |
Description |
T[] |
elements |
|
Returns
Type Parameters
View Source
Stack<T>(T[], T)
Combines vectors vertically.
Declaration
public static T[, ] Stack<T>(this T[] vector, T element)
Parameters
Type |
Name |
Description |
T[] |
vector |
|
T |
element |
|
Returns
Type Parameters
View Source
Stack<T>(T[], T[])
Combines vectors vertically.
Declaration
public static T[, ] Stack<T>(this T[] a, T[] b)
Parameters
Type |
Name |
Description |
T[] |
a |
|
T[] |
b |
|
Returns
Type Parameters
View Source
Stack<T>(T[][])
Combines vectors vertically.
Declaration
public static T[, ] Stack<T>(params T[][] vectors)
Parameters
Type |
Name |
Description |
T[][] |
vectors |
|
Returns
Type Parameters
View Source
Stack<T>(T[][], T[][])
Combines vectors vertically.
Declaration
public static T[][] Stack<T>(this T[][] a, T[][] b)
Parameters
Type |
Name |
Description |
T[][] |
a |
|
T[][] |
b |
|
Returns
Type Parameters
View Source
Stack<T>(T[][][])
Combines matrices vertically.
Declaration
public static T[][] Stack<T>(params T[][][] matrices)
Parameters
Type |
Name |
Description |
T[][][] |
matrices |
|
Returns
Type Parameters
View Source
Stack<T>(T[,], T[])
Combines matrices vertically.
Declaration
public static T[, ] Stack<T>(this T[, ] matrix, T[] vector)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
T[] |
vector |
|
Returns
Type Parameters
View Source
Stack<T>(T[,][])
Combines matrices vertically.
Declaration
public static T[, ] Stack<T>(params T[, ][] matrices)
Parameters
Type |
Name |
Description |
T[,][] |
matrices |
|
Returns
Type Parameters
View Source
Subgroups<T>(T[], Int32[])
Declaration
public static T[][] Subgroups<T>(this T[] values, int[] groups)
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32[] |
groups |
|
Returns
Type Parameters
View Source
Subgroups<T>(T[], Int32[], Int32)
Declaration
public static T[][] Subgroups<T>(this T[] values, int[] groups, int classes)
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32[] |
groups |
|
System.Int32 |
classes |
|
Returns
Type Parameters
View Source
Submatrix<T>(T[], IList<Int32>)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Submatrix<T>(this T[] source, IList<int> indexes)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
IList<System.Int32> |
indexes |
Array of indices.
|
Returns
Type Parameters
View Source
Submatrix<T>(T[], Int32)
Returns a value extracted from the current vector.
Declaration
public static T[] Submatrix<T>(this T[] source, int first)
Parameters
Type |
Name |
Description |
T[] |
source |
|
System.Int32 |
first |
|
Returns
Type Parameters
View Source
Submatrix<T>(T[], Int32, Int32)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Submatrix<T>(this T[] source, int startRow, int endRow)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
System.Int32 |
startRow |
Starting index.
|
System.Int32 |
endRow |
End index.
|
Returns
Type Parameters
View Source
Submatrix<T>(T[], Int32[], Boolean)
Returns a subvector extracted from the current vector.
Declaration
public static T[] Submatrix<T>(this T[] source, int[] indexes, bool inPlace = false)
Parameters
Type |
Name |
Description |
T[] |
source |
The vector to return the subvector from.
|
System.Int32[] |
indexes |
Array of indices.
|
System.Boolean |
inPlace |
True to return the results in place, changing the
original source vector; false otherwise.
|
Returns
Type Parameters
View Source
Submatrix<T>(T[][], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Submatrix<T>(this T[][] source, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Submatrix<T>(T[][], Int32, Int32, Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Submatrix<T>(this T[][] source, int startRow, int endRow, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndexes |
Array of column indices
|
Returns
Type Parameters
View Source
Submatrix<T>(T[][], Int32[], Boolean)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Submatrix<T>(this T[][] source, int[] indexes, bool transpose = false)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
indexes |
Array of indices.
|
System.Boolean |
transpose |
True to return a transposed matrix; false otherwise.
|
Returns
Type Parameters
View Source
Submatrix<T>(T[][], Int32[], Int32, Int32, Boolean)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Submatrix<T>(this T[][] source, int[] rowIndexes, int startColumn, int endColumn, bool reuseMemory = false)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
System.Boolean |
reuseMemory |
Set to true to avoid memory allocations
when possible. This might result on the shallow copies of some
elements. Default is false (default is to always provide a true,
deep copy of every element in the matrices, using more memory).
|
Returns
Type Parameters
View Source
Submatrix<T>(T[][], Int32[], Int32[], Boolean)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[][] Submatrix<T>(this T[][] source, int[] rowIndexes, int[] columnIndexes, bool reuseMemory = false)
Parameters
Type |
Name |
Description |
T[][] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
System.Boolean |
reuseMemory |
Set to true to avoid memory allocations
when possible. This might result on the shallow copies of some
elements. Default is false (default is to always provide a true,
deep copy of every element in the matrices, using more memory).
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], T[,], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, T[, ] destination, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
T[,] |
destination |
The matrix where results should be stored.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], T[,], Int32[], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static void Submatrix<T>(this T[, ] source, T[, ] destination, int[] rowIndexes, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
T[,] |
destination |
The matrix where results should be stored.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
Type Parameters
View Source
Submatrix<T>(T[,], Int32, Int32, Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, int startRow, int endRow, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Start row index
|
System.Int32 |
endRow |
End row index
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], Int32, Int32, Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, int startRow, int endRow, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32 |
startRow |
Starting row index
|
System.Int32 |
endRow |
End row index
|
System.Int32[] |
columnIndexes |
Array of column indices
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, int[] rowIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], Int32[], Int32, Int32)
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, int[] rowIndexes, int startColumn, int endColumn)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices
|
System.Int32 |
startColumn |
Start column index
|
System.Int32 |
endColumn |
End column index
|
Returns
Type Parameters
View Source
Submatrix<T>(T[,], Int32[], Int32[])
Returns a sub matrix extracted from the current matrix.
Declaration
public static T[, ] Submatrix<T>(this T[, ] source, int[] rowIndexes, int[] columnIndexes)
Parameters
Type |
Name |
Description |
T[,] |
source |
The matrix to return the submatrix from.
|
System.Int32[] |
rowIndexes |
Array of row indices. Pass null to select all indices.
|
System.Int32[] |
columnIndexes |
Array of column indices. Pass null to select all indices.
|
Returns
Type Parameters
View Source
Submatrix<T>(List<T>, Int32[])
Returns a subvector extracted from the current vector.
Declaration
public static List<T> Submatrix<T>(this List<T> source, int[] indexes)
Parameters
Type |
Name |
Description |
List<T> |
source |
The vector to return the subvector from.
|
System.Int32[] |
indexes |
Array of indices.
|
Returns
Type Parameters
View Source
Sum(Boolean[][], Int32)
Declaration
public static int[] Sum(this bool[][] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Sum(Boolean[][], Int32, Int32[])
Declaration
public static int[] Sum(this bool[][] matrix, int dimension, int[] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int32[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Sum(Double[])
Declaration
public static double Sum(this double[] vector)
Parameters
Type |
Name |
Description |
System.Double[] |
vector |
A vector whose sum will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Sum(Double[][])
Declaration
public static double Sum(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sums will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Sum(Double[][], Int32)
Declaration
public static double[] Sum(this double[][] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sum(Double[][], Int32, Decimal[])
Declaration
public static decimal[] Sum(this double[][] matrix, int dimension, decimal[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Decimal[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
Sum(Double[][], Int32, Double[])
Declaration
public static double[] Sum(this double[][] matrix, int dimension, double[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Double[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sum(Double[][], Int32, Int16[])
Declaration
public static short[] Sum(this double[][] matrix, int dimension, short[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int16[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
Sum(Double[][], Int32, Int32[])
Declaration
public static int[] Sum(this double[][] matrix, int dimension, int[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int32[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Sum(Double[][], Int32, Int64[])
Declaration
public static long[] Sum(this double[][] matrix, int dimension, long[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int64[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
Sum(Double[][], Int32, Single[])
Declaration
public static float[] Sum(this double[][] matrix, int dimension, float[] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Single[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Single[] |
|
View Source
Sum(Double[,])
Declaration
public static double Sum(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
Returns
Type |
Description |
System.Double |
|
View Source
Sum(Double[,], Int32)
Declaration
public static double[] Sum(this double[, ] matrix, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sum(Double[,], Int32, Decimal[])
Declaration
public static decimal[] Sum(this double[, ] matrix, int dimension, decimal[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Decimal[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
Sum(Double[,], Int32, Double[])
Declaration
public static double[] Sum(this double[, ] matrix, int dimension, double[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Double[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Sum(Double[,], Int32, Int16[])
Declaration
public static short[] Sum(this double[, ] matrix, int dimension, short[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int16[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
Sum(Double[,], Int32, Int32[])
Declaration
public static int[] Sum(this double[, ] matrix, int dimension, int[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int32[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
Sum(Double[,], Int32, Int64[])
Declaration
public static long[] Sum(this double[, ] matrix, int dimension, long[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Int64[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
Sum(Double[,], Int32, Single[])
Declaration
public static float[] Sum(this double[, ] matrix, int dimension, float[] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
A matrix whose sum will be calculated.
|
System.Int32 |
dimension |
The dimension in which the sum will be
calculated.
|
System.Single[] |
result |
A location where the result of this operation will be stored,
avoiding unnecessary memory allocations.
|
Returns
Type |
Description |
System.Single[] |
|
View Source
Sum(Int32[])
Declaration
public static int Sum(this int[] vector)
Parameters
Type |
Name |
Description |
System.Int32[] |
vector |
A vector whose sum will be calculated.
|
Returns
Type |
Description |
System.Int32 |
|
View Source
Swap<T>(ref T, ref T)
Swaps the contents of two object references.
Declaration
public static void Swap<T>(ref T a, ref T b)
Parameters
Type |
Name |
Description |
T |
a |
|
T |
b |
|
Type Parameters
View Source
Swap<T>(T[], Int32, Int32)
Swaps two elements in an array, given their indices.
Declaration
public static void Swap<T>(this T[] array, int a, int b)
Parameters
Type |
Name |
Description |
T[] |
array |
The array whose elements will be swapped.
|
System.Int32 |
a |
The index of the first element to be swapped.
|
System.Int32 |
b |
The index of the second element to be swapped.
|
Type Parameters
View Source
Swap<T>(T[], Int32[])
Performs an in-place re-ordering of elements in
a given array using the given vector of indices.
Declaration
public static void Swap<T>(this T[] values, int[] indices)
Parameters
Type |
Name |
Description |
T[] |
values |
The values to be ordered.
|
System.Int32[] |
indices |
The new index positions.
|
Type Parameters
View Source
To(Array, Type)
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
Declaration
public static object To(this Array array, Type outputType)
Parameters
Type |
Name |
Description |
Array |
array |
The vector or array to be converted.
|
Type |
outputType |
The type of the output.
|
Returns
Type |
Description |
System.Object |
|
View Source
To<TOutput>(Array)
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
Declaration
public static TOutput To<TOutput>(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
The vector or array to be converted.
|
Returns
Type Parameters
Name |
Description |
TOutput |
The type of the output.
|
View Source
ToArray(DataColumn)
Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataColumn column)
Parameters
Type |
Name |
Description |
DataColumn |
column |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataColumn column, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataColumn |
column |
|
IFormatProvider |
provider |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataRow row, IFormatProvider provider, params string[] colNames)
Parameters
Type |
Name |
Description |
DataRow |
row |
|
IFormatProvider |
provider |
|
System.String[] |
colNames |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToArray(DataRow, String[])
Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataRow row, params string[] colNames)
Parameters
Type |
Name |
Description |
DataRow |
row |
|
System.String[] |
colNames |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToArray<T>(DataColumn)
Converts a DataColumn to a double[] array.
Declaration
public static T[] ToArray<T>(this DataColumn column)
Parameters
Type |
Name |
Description |
DataColumn |
column |
|
Returns
Type Parameters
View Source
Converts a DataColumn to a double[] array.
Declaration
public static T[] ToArray<T>(this DataColumn column, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataColumn |
column |
|
IFormatProvider |
provider |
|
Returns
Type Parameters
View Source
Converts a DataColumn to a generic array.
Declaration
public static T[] ToArray<T>(this DataRow row, IFormatProvider provider, params string[] colNames)
Parameters
Type |
Name |
Description |
DataRow |
row |
|
IFormatProvider |
provider |
|
System.String[] |
colNames |
|
Returns
Type Parameters
View Source
ToArray<T>(DataRow, String[])
Converts a DataColumn to a generic array.
Declaration
public static T[] ToArray<T>(this DataRow row, params string[] colNames)
Parameters
Type |
Name |
Description |
DataRow |
row |
|
System.String[] |
colNames |
|
Returns
Type Parameters
View Source
Converts a DataTable to a generic array.
Declaration
public static T[] ToArray<T>(this DataTable table, IFormatProvider provider, string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String |
columnName |
|
Returns
Type Parameters
View Source
ToArray<T>(DataTable, String)
Converts a DataTable to a generic array.
Declaration
public static T[] ToArray<T>(this DataTable table, string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String |
columnName |
|
Returns
Type Parameters
View Source
ToBoolean(Int32[])
Converts a integer to a boolean.
Declaration
public static bool[] ToBoolean(this int[] value)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
Returns
Type |
Description |
System.Boolean[] |
|
View Source
ToBoolean(Int32[], Boolean[])
Converts a integer array to a boolean array.
Declaration
public static bool[] ToBoolean(this int[] value, bool[] result)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
System.Boolean[] |
result |
|
Returns
Type |
Description |
System.Boolean[] |
|
View Source
ToBoolean(String[])
Converts a string to a boolean.
Declaration
public static bool[] ToBoolean(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Boolean[] |
|
View Source
ToBoolean(String[], Boolean[])
Converts a string array to a boolean array.
Declaration
public static bool[] ToBoolean(this string[] value, bool[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Boolean[] |
result |
|
Returns
Type |
Description |
System.Boolean[] |
|
View Source
ToBoolean(String[][])
Converts a string to a boolean.
Declaration
public static bool[][] ToBoolean(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Boolean[][] |
|
View Source
ToBoolean(String[][], Boolean[][])
Converts a jagged string array to a jagged boolean array.
Declaration
public static bool[][] ToBoolean(this string[][] value, bool[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Boolean[][] |
result |
|
Returns
Type |
Description |
System.Boolean[][] |
|
View Source
ToBoolean(String[][], Boolean[,])
Converts a jagged string array to a multidimensional boolean array.
Declaration
public static bool[, ] ToBoolean(this string[][] value, bool[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Boolean[,] |
result |
|
Returns
Type |
Description |
System.Boolean[,] |
|
View Source
ToBoolean(String[][][])
Converts a string to a boolean.
Declaration
public static bool[][][] ToBoolean(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Boolean[][][] |
|
View Source
ToBoolean(String[][][], Boolean[][][])
Converts a jagged string array to a jagged boolean array.
Declaration
public static bool[][][] ToBoolean(this string[][][] value, bool[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Boolean[][][] |
result |
|
Returns
Type |
Description |
System.Boolean[][][] |
|
View Source
ToBoolean(String[,,])
Converts a string to a boolean.
Declaration
public static bool[,, ] ToBoolean(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Boolean[,,] |
|
View Source
ToBoolean(String[,,], Boolean[,,])
Converts a multidimensional string array to a multidimensional boolean array.
Declaration
public static bool[,, ] ToBoolean(this string[,, ] value, bool[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Boolean[,,] |
result |
|
Returns
Type |
Description |
System.Boolean[,,] |
|
View Source
ToBoolean(String[,])
Converts a string to a boolean.
Declaration
public static bool[, ] ToBoolean(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Boolean[,] |
|
View Source
ToBoolean(String[,], Boolean[][])
Converts a multidimensional string array to a jagged boolean array.
Declaration
public static bool[][] ToBoolean(this string[, ] value, bool[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Boolean[][] |
result |
|
Returns
Type |
Description |
System.Boolean[][] |
|
View Source
ToBoolean(String[,], Boolean[,])
Converts a multidimensional string array to a multidimensional boolean array.
Declaration
public static bool[, ] ToBoolean(this string[, ] value, bool[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Boolean[,] |
result |
|
Returns
Type |
Description |
System.Boolean[,] |
|
View Source
ToByte(String[])
Converts a string to a 8-bit byte.
Declaration
public static byte[] ToByte(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Byte[] |
|
View Source
ToByte(String[], Byte[])
Converts a string array to a 8-bit byte array.
Declaration
public static byte[] ToByte(this string[] value, byte[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Byte[] |
result |
|
Returns
Type |
Description |
System.Byte[] |
|
View Source
ToByte(String[][])
Converts a string to a 8-bit byte.
Declaration
public static byte[][] ToByte(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Byte[][] |
|
View Source
ToByte(String[][], Byte[][])
Converts a jagged string array to a jagged 8-bit byte array.
Declaration
public static byte[][] ToByte(this string[][] value, byte[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Byte[][] |
result |
|
Returns
Type |
Description |
System.Byte[][] |
|
View Source
ToByte(String[][], Byte[,])
Converts a jagged string array to a multidimensional 8-bit byte array.
Declaration
public static byte[, ] ToByte(this string[][] value, byte[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Byte[,] |
result |
|
Returns
Type |
Description |
System.Byte[,] |
|
View Source
ToByte(String[][][])
Converts a string to a 8-bit byte.
Declaration
public static byte[][][] ToByte(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Byte[][][] |
|
View Source
ToByte(String[][][], Byte[][][])
Converts a jagged string array to a jagged 8-bit byte array.
Declaration
public static byte[][][] ToByte(this string[][][] value, byte[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Byte[][][] |
result |
|
Returns
Type |
Description |
System.Byte[][][] |
|
View Source
ToByte(String[,,])
Converts a string to a 8-bit byte.
Declaration
public static byte[,, ] ToByte(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Byte[,,] |
|
View Source
ToByte(String[,,], Byte[,,])
Converts a multidimensional string array to a multidimensional 8-bit byte array.
Declaration
public static byte[,, ] ToByte(this string[,, ] value, byte[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Byte[,,] |
result |
|
Returns
Type |
Description |
System.Byte[,,] |
|
View Source
ToByte(String[,])
Converts a string to a 8-bit byte.
Declaration
public static byte[, ] ToByte(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Byte[,] |
|
View Source
ToByte(String[,], Byte[][])
Converts a multidimensional string array to a jagged 8-bit byte array.
Declaration
public static byte[][] ToByte(this string[, ] value, byte[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Byte[][] |
result |
|
Returns
Type |
Description |
System.Byte[][] |
|
View Source
ToByte(String[,], Byte[,])
Converts a multidimensional string array to a multidimensional 8-bit byte array.
Declaration
public static byte[, ] ToByte(this string[, ] value, byte[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Byte[,] |
result |
|
Returns
Type |
Description |
System.Byte[,] |
|
View Source
ToComplex(Boolean[])
Converts a boolean to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this bool[] value)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Boolean[], Complex[])
Converts a boolean array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this bool[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Boolean[][])
Converts a boolean to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this bool[][] value)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Boolean[][], Complex[][])
Converts a jagged boolean array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this bool[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Boolean[][], Complex[,])
Converts a jagged boolean array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this bool[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Boolean[][][])
Converts a boolean to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this bool[][][] value)
Parameters
Type |
Name |
Description |
System.Boolean[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Boolean[][][], Complex[][][])
Converts a jagged boolean array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this bool[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Boolean[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Boolean[,,])
Converts a boolean to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this bool[,, ] value)
Parameters
Type |
Name |
Description |
System.Boolean[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Boolean[,,], Complex[,,])
Converts a multidimensional boolean array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this bool[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Boolean[,])
Converts a boolean to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this bool[, ] value)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Boolean[,], Complex[][])
Converts a multidimensional boolean array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this bool[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Boolean[,], Complex[,])
Converts a multidimensional boolean array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this bool[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Byte[])
Converts a 8-bit byte to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this byte[] value)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Byte[], Complex[])
Converts a 8-bit byte array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this byte[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Byte[][])
Converts a 8-bit byte to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this byte[][] value)
Parameters
Type |
Name |
Description |
System.Byte[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Byte[][], Complex[][])
Converts a jagged 8-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this byte[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Byte[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Byte[][], Complex[,])
Converts a jagged 8-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this byte[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Byte[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Byte[][][])
Converts a 8-bit byte to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this byte[][][] value)
Parameters
Type |
Name |
Description |
System.Byte[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Byte[][][], Complex[][][])
Converts a jagged 8-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this byte[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Byte[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Byte[,,])
Converts a 8-bit byte to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this byte[,, ] value)
Parameters
Type |
Name |
Description |
System.Byte[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Byte[,,], Complex[,,])
Converts a multidimensional 8-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this byte[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Byte[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Byte[,])
Converts a 8-bit byte to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this byte[, ] value)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Byte[,], Complex[][])
Converts a multidimensional 8-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this byte[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Byte[,], Complex[,])
Converts a multidimensional 8-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this byte[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Decimal[])
Converts a decimal fixed-point to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this decimal[] value)
Parameters
Type |
Name |
Description |
System.Decimal[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Decimal[], Complex[])
Converts a decimal fixed-point array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this decimal[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Decimal[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Decimal[][])
Converts a decimal fixed-point to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this decimal[][] value)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Decimal[][], Complex[][])
Converts a jagged decimal fixed-point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this decimal[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Decimal[][], Complex[,])
Converts a jagged decimal fixed-point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this decimal[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Decimal[][][])
Converts a decimal fixed-point to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this decimal[][][] value)
Parameters
Type |
Name |
Description |
System.Decimal[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Decimal[][][], Complex[][][])
Converts a jagged decimal fixed-point array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this decimal[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Decimal[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Decimal[,,])
Converts a decimal fixed-point to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this decimal[,, ] value)
Parameters
Type |
Name |
Description |
System.Decimal[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Decimal[,,], Complex[,,])
Converts a multidimensional decimal fixed-point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this decimal[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Decimal[,])
Converts a decimal fixed-point to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this decimal[, ] value)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Decimal[,], Complex[][])
Converts a multidimensional decimal fixed-point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this decimal[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Decimal[,], Complex[,])
Converts a multidimensional decimal fixed-point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this decimal[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Double[])
Converts a double-precision floating point to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Double[], Complex[])
Converts a double-precision floating point array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this double[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Double[][])
Converts a double-precision floating point to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Double[][], Complex[][])
Converts a jagged double-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this double[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Double[][], Complex[,])
Converts a jagged double-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this double[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Double[][][])
Converts a double-precision floating point to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this double[][][] value)
Parameters
Type |
Name |
Description |
System.Double[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Double[][][], Complex[][][])
Converts a jagged double-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this double[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Double[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Double[,,])
Converts a double-precision floating point to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this double[,, ] value)
Parameters
Type |
Name |
Description |
System.Double[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Double[,,], Complex[,,])
Converts a multidimensional double-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this double[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Double[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Double[,])
Converts a double-precision floating point to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Double[,], Complex[][])
Converts a multidimensional double-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this double[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Double[,], Complex[,])
Converts a multidimensional double-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this double[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int16[])
Converts a short integer to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this short[] value)
Parameters
Type |
Name |
Description |
System.Int16[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int16[], Complex[])
Converts a short integer array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this short[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Int16[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int16[][])
Converts a short integer to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this short[][] value)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int16[][], Complex[][])
Converts a jagged short integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this short[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int16[][], Complex[,])
Converts a jagged short integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this short[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int16[][][])
Converts a short integer to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this short[][][] value)
Parameters
Type |
Name |
Description |
System.Int16[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int16[][][], Complex[][][])
Converts a jagged short integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this short[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Int16[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int16[,,])
Converts a short integer to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this short[,, ] value)
Parameters
Type |
Name |
Description |
System.Int16[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int16[,,], Complex[,,])
Converts a multidimensional short integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this short[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Int16[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int16[,])
Converts a short integer to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this short[, ] value)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int16[,], Complex[][])
Converts a multidimensional short integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this short[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int16[,], Complex[,])
Converts a multidimensional short integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this short[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int32[])
Converts a integer to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this int[] value)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int32[], Complex[])
Converts a integer array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this int[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int32[][])
Converts a integer to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this int[][] value)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int32[][], Complex[][])
Converts a jagged integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this int[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int32[][], Complex[,])
Converts a jagged integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this int[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int32[][][])
Converts a integer to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this int[][][] value)
Parameters
Type |
Name |
Description |
System.Int32[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int32[][][], Complex[][][])
Converts a jagged integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this int[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Int32[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int32[,,])
Converts a integer to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this int[,, ] value)
Parameters
Type |
Name |
Description |
System.Int32[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int32[,,], Complex[,,])
Converts a multidimensional integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this int[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Int32[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int32[,])
Converts a integer to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this int[, ] value)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int32[,], Complex[][])
Converts a multidimensional integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this int[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int32[,], Complex[,])
Converts a multidimensional integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this int[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int64[])
Converts a long integer to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this long[] value)
Parameters
Type |
Name |
Description |
System.Int64[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int64[], Complex[])
Converts a long integer array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this long[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Int64[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Int64[][])
Converts a long integer to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this long[][] value)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int64[][], Complex[][])
Converts a jagged long integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this long[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int64[][], Complex[,])
Converts a jagged long integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this long[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int64[][][])
Converts a long integer to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this long[][][] value)
Parameters
Type |
Name |
Description |
System.Int64[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int64[][][], Complex[][][])
Converts a jagged long integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this long[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Int64[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Int64[,,])
Converts a long integer to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this long[,, ] value)
Parameters
Type |
Name |
Description |
System.Int64[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int64[,,], Complex[,,])
Converts a multidimensional long integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this long[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Int64[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Int64[,])
Converts a long integer to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this long[, ] value)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Int64[,], Complex[][])
Converts a multidimensional long integer array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this long[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Int64[,], Complex[,])
Converts a multidimensional long integer array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this long[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Object[])
Converts a object to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this object[] value)
Parameters
Type |
Name |
Description |
System.Object[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Object[], Complex[])
Converts a object array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this object[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Object[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Object[][])
Converts a object to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this object[][] value)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Object[][], Complex[][])
Converts a jagged object array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this object[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Object[][], Complex[,])
Converts a jagged object array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this object[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Object[][][])
Converts a object to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this object[][][] value)
Parameters
Type |
Name |
Description |
System.Object[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Object[][][], Complex[][][])
Converts a jagged object array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this object[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Object[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Object[,,])
Converts a object to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this object[,, ] value)
Parameters
Type |
Name |
Description |
System.Object[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Object[,,], Complex[,,])
Converts a multidimensional object array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this object[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Object[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Object[,])
Converts a object to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this object[, ] value)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Object[,], Complex[][])
Converts a multidimensional object array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this object[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Object[,], Complex[,])
Converts a multidimensional object array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this object[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(SByte[])
Converts a signed 7-bit byte to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this sbyte[] value)
Parameters
Type |
Name |
Description |
System.SByte[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(SByte[], Complex[])
Converts a signed 7-bit byte array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this sbyte[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.SByte[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(SByte[][])
Converts a signed 7-bit byte to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this sbyte[][] value)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(SByte[][], Complex[][])
Converts a jagged signed 7-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this sbyte[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(SByte[][], Complex[,])
Converts a jagged signed 7-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this sbyte[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(SByte[][][])
Converts a signed 7-bit byte to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this sbyte[][][] value)
Parameters
Type |
Name |
Description |
System.SByte[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(SByte[][][], Complex[][][])
Converts a jagged signed 7-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this sbyte[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.SByte[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(SByte[,,])
Converts a signed 7-bit byte to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this sbyte[,, ] value)
Parameters
Type |
Name |
Description |
System.SByte[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(SByte[,,], Complex[,,])
Converts a multidimensional signed 7-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this sbyte[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.SByte[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(SByte[,])
Converts a signed 7-bit byte to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this sbyte[, ] value)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(SByte[,], Complex[][])
Converts a multidimensional signed 7-bit byte array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this sbyte[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(SByte[,], Complex[,])
Converts a multidimensional signed 7-bit byte array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this sbyte[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Single[])
Converts a single-precision floating point to a 128-bit complex.
Declaration
public static Complex[] ToComplex(this float[] value)
Parameters
Type |
Name |
Description |
System.Single[] |
value |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Single[], Complex[])
Converts a single-precision floating point array to a 128-bit complex array.
Declaration
public static Complex[] ToComplex(this float[] value, Complex[] result)
Parameters
Type |
Name |
Description |
System.Single[] |
value |
|
Complex[] |
result |
|
Returns
Type |
Description |
Complex[] |
|
View Source
ToComplex(Single[][])
Converts a single-precision floating point to a 128-bit complex.
Declaration
public static Complex[][] ToComplex(this float[][] value)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Single[][], Complex[][])
Converts a jagged single-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this float[][] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Single[][], Complex[,])
Converts a jagged single-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this float[][] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Single[][][])
Converts a single-precision floating point to a 128-bit complex.
Declaration
public static Complex[][][] ToComplex(this float[][][] value)
Parameters
Type |
Name |
Description |
System.Single[][][] |
value |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Single[][][], Complex[][][])
Converts a jagged single-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][][] ToComplex(this float[][][] value, Complex[][][] result)
Parameters
Type |
Name |
Description |
System.Single[][][] |
value |
|
Complex[][][] |
result |
|
Returns
Type |
Description |
Complex[][][] |
|
View Source
ToComplex(Single[,,])
Converts a single-precision floating point to a 128-bit complex.
Declaration
public static Complex[,, ] ToComplex(this float[,, ] value)
Parameters
Type |
Name |
Description |
System.Single[,,] |
value |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Single[,,], Complex[,,])
Converts a multidimensional single-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[,, ] ToComplex(this float[,, ] value, Complex[,, ] result)
Parameters
Type |
Name |
Description |
System.Single[,,] |
value |
|
Complex[,,] |
result |
|
Returns
Type |
Description |
Complex[,,] |
|
View Source
ToComplex(Single[,])
Converts a single-precision floating point to a 128-bit complex.
Declaration
public static Complex[, ] ToComplex(this float[, ] value)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToComplex(Single[,], Complex[][])
Converts a multidimensional single-precision floating point array to a jagged 128-bit complex array.
Declaration
public static Complex[][] ToComplex(this float[, ] value, Complex[][] result)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
Complex[][] |
result |
|
Returns
Type |
Description |
Complex[][] |
|
View Source
ToComplex(Single[,], Complex[,])
Converts a multidimensional single-precision floating point array to a multidimensional 128-bit complex array.
Declaration
public static Complex[, ] ToComplex(this float[, ] value, Complex[, ] result)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
Complex[,] |
result |
|
Returns
Type |
Description |
Complex[,] |
|
View Source
ToCSharp<T>(T[])
Returns a representation of a a given array.
Declaration
public static string ToCSharp<T>(this T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
The array.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
ToCSharp<T>(T[][])
Returns a representation of a given matrix.
Declaration
public static string ToCSharp<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToCSharp<T>(T[,])
Returns a representation of a given matrix.
Declaration
public static string ToCSharp<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToDecimal(Double[])
Converts a double-precision floating point to a decimal fixed-point.
Declaration
public static decimal[] ToDecimal(this double[] value)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
ToDecimal(Double[], Decimal[])
Converts a double-precision floating point array to a decimal fixed-point array.
Declaration
public static decimal[] ToDecimal(this double[] value, decimal[] result)
Parameters
Type |
Name |
Description |
System.Double[] |
value |
|
System.Decimal[] |
result |
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
ToDecimal(String[])
Converts a string to a decimal fixed-point.
Declaration
public static decimal[] ToDecimal(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
ToDecimal(String[], Decimal[])
Converts a string array to a decimal fixed-point array.
Declaration
public static decimal[] ToDecimal(this string[] value, decimal[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Decimal[] |
result |
|
Returns
Type |
Description |
System.Decimal[] |
|
View Source
ToDecimal(String[][])
Converts a string to a decimal fixed-point.
Declaration
public static decimal[][] ToDecimal(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Decimal[][] |
|
View Source
ToDecimal(String[][], Decimal[][])
Converts a jagged string array to a jagged decimal fixed-point array.
Declaration
public static decimal[][] ToDecimal(this string[][] value, decimal[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Decimal[][] |
result |
|
Returns
Type |
Description |
System.Decimal[][] |
|
View Source
ToDecimal(String[][], Decimal[,])
Converts a jagged string array to a multidimensional decimal fixed-point array.
Declaration
public static decimal[, ] ToDecimal(this string[][] value, decimal[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Decimal[,] |
result |
|
Returns
Type |
Description |
System.Decimal[,] |
|
View Source
ToDecimal(String[][][])
Converts a string to a decimal fixed-point.
Declaration
public static decimal[][][] ToDecimal(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Decimal[][][] |
|
View Source
ToDecimal(String[][][], Decimal[][][])
Converts a jagged string array to a jagged decimal fixed-point array.
Declaration
public static decimal[][][] ToDecimal(this string[][][] value, decimal[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Decimal[][][] |
result |
|
Returns
Type |
Description |
System.Decimal[][][] |
|
View Source
ToDecimal(String[,,])
Converts a string to a decimal fixed-point.
Declaration
public static decimal[,, ] ToDecimal(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Decimal[,,] |
|
View Source
ToDecimal(String[,,], Decimal[,,])
Converts a multidimensional string array to a multidimensional decimal fixed-point array.
Declaration
public static decimal[,, ] ToDecimal(this string[,, ] value, decimal[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Decimal[,,] |
result |
|
Returns
Type |
Description |
System.Decimal[,,] |
|
View Source
ToDecimal(String[,])
Converts a string to a decimal fixed-point.
Declaration
public static decimal[, ] ToDecimal(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Decimal[,] |
|
View Source
ToDecimal(String[,], Decimal[][])
Converts a multidimensional string array to a jagged decimal fixed-point array.
Declaration
public static decimal[][] ToDecimal(this string[, ] value, decimal[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Decimal[][] |
result |
|
Returns
Type |
Description |
System.Decimal[][] |
|
View Source
ToDecimal(String[,], Decimal[,])
Converts a multidimensional string array to a multidimensional decimal fixed-point array.
Declaration
public static decimal[, ] ToDecimal(this string[, ] value, decimal[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Decimal[,] |
result |
|
Returns
Type |
Description |
System.Decimal[,] |
|
View Source
ToDouble(Complex[])
Converts a 128-bit complex to a double-precision floating point.
Declaration
public static double[] ToDouble(this Complex[] value)
Parameters
Type |
Name |
Description |
Complex[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Complex[], Double[])
Converts a 128-bit complex array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this Complex[] value, double[] result)
Parameters
Type |
Name |
Description |
Complex[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Complex[][])
Converts a 128-bit complex to a double-precision floating point.
Declaration
public static double[][] ToDouble(this Complex[][] value)
Parameters
Type |
Name |
Description |
Complex[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Complex[][], Double[][])
Converts a jagged 128-bit complex array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this Complex[][] value, double[][] result)
Parameters
Type |
Name |
Description |
Complex[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Complex[][], Double[,])
Converts a jagged 128-bit complex array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this Complex[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
Complex[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Complex[][][])
Converts a 128-bit complex to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this Complex[][][] value)
Parameters
Type |
Name |
Description |
Complex[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Complex[][][], Double[][][])
Converts a jagged 128-bit complex array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this Complex[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
Complex[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Complex[,,])
Converts a 128-bit complex to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this Complex[,, ] value)
Parameters
Type |
Name |
Description |
Complex[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Complex[,,], Double[,,])
Converts a multidimensional 128-bit complex array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this Complex[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
Complex[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Complex[,])
Converts a 128-bit complex to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this Complex[, ] value)
Parameters
Type |
Name |
Description |
Complex[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Complex[,], Double[][])
Converts a multidimensional 128-bit complex array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this Complex[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
Complex[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Complex[,], Double[,])
Converts a multidimensional 128-bit complex array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this Complex[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
Complex[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Boolean[])
Converts a boolean to a double-precision floating point.
Declaration
public static double[] ToDouble(this bool[] value)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Boolean[], Double[])
Converts a boolean array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this bool[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Boolean[][])
Converts a boolean to a double-precision floating point.
Declaration
public static double[][] ToDouble(this bool[][] value)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Boolean[][], Double[][])
Converts a jagged boolean array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this bool[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Boolean[][], Double[,])
Converts a jagged boolean array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this bool[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Boolean[][][])
Converts a boolean to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this bool[][][] value)
Parameters
Type |
Name |
Description |
System.Boolean[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Boolean[][][], Double[][][])
Converts a jagged boolean array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this bool[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Boolean[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Boolean[,,])
Converts a boolean to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this bool[,, ] value)
Parameters
Type |
Name |
Description |
System.Boolean[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Boolean[,,], Double[,,])
Converts a multidimensional boolean array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this bool[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Boolean[,])
Converts a boolean to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this bool[, ] value)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Boolean[,], Double[][])
Converts a multidimensional boolean array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this bool[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Boolean[,], Double[,])
Converts a multidimensional boolean array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this bool[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Boolean[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Byte[])
Converts a 8-bit byte to a double-precision floating point.
Declaration
public static double[] ToDouble(this byte[] value)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Byte[], Double[])
Converts a 8-bit byte array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this byte[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Byte[][])
Converts a 8-bit byte to a double-precision floating point.
Declaration
public static double[][] ToDouble(this byte[][] value)
Parameters
Type |
Name |
Description |
System.Byte[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Byte[][], Double[][])
Converts a jagged 8-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this byte[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Byte[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Byte[][][])
Converts a 8-bit byte to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this byte[][][] value)
Parameters
Type |
Name |
Description |
System.Byte[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Byte[][][], Double[][][])
Converts a jagged 8-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this byte[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Byte[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Byte[,,])
Converts a 8-bit byte to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this byte[,, ] value)
Parameters
Type |
Name |
Description |
System.Byte[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Byte[,,], Double[,,])
Converts a multidimensional 8-bit byte array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this byte[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Byte[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Byte[,])
Converts a 8-bit byte to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this byte[, ] value)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Byte[,], Double[][])
Converts a multidimensional 8-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this byte[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Byte[,], Double[,])
Converts a multidimensional 8-bit byte array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this byte[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Byte[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Decimal[])
Converts a decimal fixed-point to a double-precision floating point.
Declaration
public static double[] ToDouble(this decimal[] value)
Parameters
Type |
Name |
Description |
System.Decimal[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Decimal[], Double[])
Converts a decimal fixed-point array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this decimal[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Decimal[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Decimal[][])
Converts a decimal fixed-point to a double-precision floating point.
Declaration
public static double[][] ToDouble(this decimal[][] value)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Decimal[][], Double[][])
Converts a jagged decimal fixed-point array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this decimal[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Decimal[][], Double[,])
Converts a jagged decimal fixed-point array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this decimal[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Decimal[][][])
Converts a decimal fixed-point to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this decimal[][][] value)
Parameters
Type |
Name |
Description |
System.Decimal[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Decimal[][][], Double[][][])
Converts a jagged decimal fixed-point array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this decimal[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Decimal[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Decimal[,,])
Converts a decimal fixed-point to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this decimal[,, ] value)
Parameters
Type |
Name |
Description |
System.Decimal[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Decimal[,,], Double[,,])
Converts a multidimensional decimal fixed-point array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this decimal[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Decimal[,])
Converts a decimal fixed-point to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this decimal[, ] value)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Decimal[,], Double[][])
Converts a multidimensional decimal fixed-point array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this decimal[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Decimal[,], Double[,])
Converts a multidimensional decimal fixed-point array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this decimal[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Decimal[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int16[])
Converts a short integer to a double-precision floating point.
Declaration
public static double[] ToDouble(this short[] value)
Parameters
Type |
Name |
Description |
System.Int16[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int16[], Double[])
Converts a short integer array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this short[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Int16[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int16[][])
Converts a short integer to a double-precision floating point.
Declaration
public static double[][] ToDouble(this short[][] value)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int16[][], Double[][])
Converts a jagged short integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this short[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int16[][], Double[,])
Converts a jagged short integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this short[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int16[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int16[][][])
Converts a short integer to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this short[][][] value)
Parameters
Type |
Name |
Description |
System.Int16[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int16[][][], Double[][][])
Converts a jagged short integer array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this short[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Int16[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int16[,,])
Converts a short integer to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this short[,, ] value)
Parameters
Type |
Name |
Description |
System.Int16[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int16[,,], Double[,,])
Converts a multidimensional short integer array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this short[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Int16[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int16[,])
Converts a short integer to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this short[, ] value)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int16[,], Double[][])
Converts a multidimensional short integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this short[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int16[,], Double[,])
Converts a multidimensional short integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this short[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int16[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int32[])
Converts a integer to a double-precision floating point.
Declaration
public static double[] ToDouble(this int[] value)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int32[], Double[])
Converts a integer array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this int[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Int32[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int32[][])
Converts a integer to a double-precision floating point.
Declaration
public static double[][] ToDouble(this int[][] value)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int32[][], Double[][])
Converts a jagged integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this int[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int32[][], Double[,])
Converts a jagged integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this int[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int32[][][])
Converts a integer to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this int[][][] value)
Parameters
Type |
Name |
Description |
System.Int32[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int32[][][], Double[][][])
Converts a jagged integer array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this int[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Int32[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int32[,,])
Converts a integer to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this int[,, ] value)
Parameters
Type |
Name |
Description |
System.Int32[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int32[,,], Double[,,])
Converts a multidimensional integer array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this int[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Int32[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int32[,])
Converts a integer to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this int[, ] value)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int32[,], Double[][])
Converts a multidimensional integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this int[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int32[,], Double[,])
Converts a multidimensional integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this int[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int64[])
Converts a long integer to a double-precision floating point.
Declaration
public static double[] ToDouble(this long[] value)
Parameters
Type |
Name |
Description |
System.Int64[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int64[], Double[])
Converts a long integer array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this long[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Int64[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Int64[][])
Converts a long integer to a double-precision floating point.
Declaration
public static double[][] ToDouble(this long[][] value)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int64[][], Double[][])
Converts a jagged long integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this long[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int64[][], Double[,])
Converts a jagged long integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this long[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int64[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int64[][][])
Converts a long integer to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this long[][][] value)
Parameters
Type |
Name |
Description |
System.Int64[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int64[][][], Double[][][])
Converts a jagged long integer array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this long[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Int64[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Int64[,,])
Converts a long integer to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this long[,, ] value)
Parameters
Type |
Name |
Description |
System.Int64[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int64[,,], Double[,,])
Converts a multidimensional long integer array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this long[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Int64[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Int64[,])
Converts a long integer to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this long[, ] value)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Int64[,], Double[][])
Converts a multidimensional long integer array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this long[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Int64[,], Double[,])
Converts a multidimensional long integer array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this long[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int64[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Object[])
Converts a object to a double-precision floating point.
Declaration
public static double[] ToDouble(this object[] value)
Parameters
Type |
Name |
Description |
System.Object[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Object[], Double[])
Converts a object array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this object[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Object[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Object[][])
Converts a object to a double-precision floating point.
Declaration
public static double[][] ToDouble(this object[][] value)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Object[][], Double[][])
Converts a jagged object array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this object[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Object[][], Double[,])
Converts a jagged object array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this object[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Object[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Object[][][])
Converts a object to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this object[][][] value)
Parameters
Type |
Name |
Description |
System.Object[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Object[][][], Double[][][])
Converts a jagged object array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this object[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Object[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Object[,,])
Converts a object to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this object[,, ] value)
Parameters
Type |
Name |
Description |
System.Object[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Object[,,], Double[,,])
Converts a multidimensional object array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this object[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Object[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Object[,])
Converts a object to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this object[, ] value)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Object[,], Double[][])
Converts a multidimensional object array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this object[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Object[,], Double[,])
Converts a multidimensional object array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this object[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Object[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(SByte[])
Converts a signed 7-bit byte to a double-precision floating point.
Declaration
public static double[] ToDouble(this sbyte[] value)
Parameters
Type |
Name |
Description |
System.SByte[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(SByte[], Double[])
Converts a signed 7-bit byte array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this sbyte[] value, double[] result)
Parameters
Type |
Name |
Description |
System.SByte[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(SByte[][])
Converts a signed 7-bit byte to a double-precision floating point.
Declaration
public static double[][] ToDouble(this sbyte[][] value)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(SByte[][], Double[][])
Converts a jagged signed 7-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this sbyte[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(SByte[][], Double[,])
Converts a jagged signed 7-bit byte array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this sbyte[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.SByte[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(SByte[][][])
Converts a signed 7-bit byte to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this sbyte[][][] value)
Parameters
Type |
Name |
Description |
System.SByte[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(SByte[][][], Double[][][])
Converts a jagged signed 7-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this sbyte[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.SByte[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(SByte[,,])
Converts a signed 7-bit byte to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this sbyte[,, ] value)
Parameters
Type |
Name |
Description |
System.SByte[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(SByte[,,], Double[,,])
Converts a multidimensional signed 7-bit byte array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this sbyte[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.SByte[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(SByte[,])
Converts a signed 7-bit byte to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this sbyte[, ] value)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(SByte[,], Double[][])
Converts a multidimensional signed 7-bit byte array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this sbyte[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(SByte[,], Double[,])
Converts a multidimensional signed 7-bit byte array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this sbyte[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.SByte[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Single[])
Converts a single-precision floating point to a double-precision floating point.
Declaration
public static double[] ToDouble(this float[] value)
Parameters
Type |
Name |
Description |
System.Single[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Single[], Double[])
Converts a single-precision floating point array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this float[] value, double[] result)
Parameters
Type |
Name |
Description |
System.Single[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(Single[][])
Converts a single-precision floating point to a double-precision floating point.
Declaration
public static double[][] ToDouble(this float[][] value)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Single[][], Double[][])
Converts a jagged single-precision floating point array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this float[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Single[][], Double[,])
Converts a jagged single-precision floating point array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this float[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Single[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Single[][][])
Converts a single-precision floating point to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this float[][][] value)
Parameters
Type |
Name |
Description |
System.Single[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Single[][][], Double[][][])
Converts a jagged single-precision floating point array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this float[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.Single[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(Single[,,])
Converts a single-precision floating point to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this float[,, ] value)
Parameters
Type |
Name |
Description |
System.Single[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Single[,,], Double[,,])
Converts a multidimensional single-precision floating point array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this float[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.Single[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(Single[,])
Converts a single-precision floating point to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this float[, ] value)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(Single[,], Double[][])
Converts a multidimensional single-precision floating point array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this float[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(Single[,], Double[,])
Converts a multidimensional single-precision floating point array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this float[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.Single[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(String[])
Converts a string to a double-precision floating point.
Declaration
public static double[] ToDouble(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(String[], Double[])
Converts a string array to a double-precision floating point array.
Declaration
public static double[] ToDouble(this string[] value, double[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Double[] |
result |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToDouble(String[][])
Converts a string to a double-precision floating point.
Declaration
public static double[][] ToDouble(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(String[][], Double[][])
Converts a jagged string array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this string[][] value, double[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(String[][], Double[,])
Converts a jagged string array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this string[][] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(String[][][])
Converts a string to a double-precision floating point.
Declaration
public static double[][][] ToDouble(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(String[][][], Double[][][])
Converts a jagged string array to a jagged double-precision floating point array.
Declaration
public static double[][][] ToDouble(this string[][][] value, double[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Double[][][] |
result |
|
Returns
Type |
Description |
System.Double[][][] |
|
View Source
ToDouble(String[,,])
Converts a string to a double-precision floating point.
Declaration
public static double[,, ] ToDouble(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(String[,,], Double[,,])
Converts a multidimensional string array to a multidimensional double-precision floating point array.
Declaration
public static double[,, ] ToDouble(this string[,, ] value, double[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Double[,,] |
result |
|
Returns
Type |
Description |
System.Double[,,] |
|
View Source
ToDouble(String[,])
Converts a string to a double-precision floating point.
Declaration
public static double[, ] ToDouble(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToDouble(String[,], Double[][])
Converts a multidimensional string array to a jagged double-precision floating point array.
Declaration
public static double[][] ToDouble(this string[, ] value, double[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Double[][] |
result |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToDouble(String[,], Double[,])
Converts a multidimensional string array to a multidimensional double-precision floating point array.
Declaration
public static double[, ] ToDouble(this string[, ] value, double[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Double[,] |
result |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToInt16(Double[,])
Converts a double-precision floating point to a short integer.
Declaration
public static short[, ] ToInt16(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Int16[,] |
|
View Source
ToInt16(Double[,], Int16[,])
Converts a multidimensional double-precision floating point array to a multidimensional short integer array.
Declaration
public static short[, ] ToInt16(this double[, ] value, short[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
System.Int16[,] |
result |
|
Returns
Type |
Description |
System.Int16[,] |
|
View Source
ToInt16(String[])
Converts a string to a short integer.
Declaration
public static short[] ToInt16(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
ToInt16(String[], Int16[])
Converts a string array to a short integer array.
Declaration
public static short[] ToInt16(this string[] value, short[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Int16[] |
result |
|
Returns
Type |
Description |
System.Int16[] |
|
View Source
ToInt16(String[][])
Converts a string to a short integer.
Declaration
public static short[][] ToInt16(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Int16[][] |
|
View Source
ToInt16(String[][], Int16[][])
Converts a jagged string array to a jagged short integer array.
Declaration
public static short[][] ToInt16(this string[][] value, short[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int16[][] |
result |
|
Returns
Type |
Description |
System.Int16[][] |
|
View Source
ToInt16(String[][], Int16[,])
Converts a jagged string array to a multidimensional short integer array.
Declaration
public static short[, ] ToInt16(this string[][] value, short[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int16[,] |
result |
|
Returns
Type |
Description |
System.Int16[,] |
|
View Source
ToInt16(String[][][])
Converts a string to a short integer.
Declaration
public static short[][][] ToInt16(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Int16[][][] |
|
View Source
ToInt16(String[][][], Int16[][][])
Converts a jagged string array to a jagged short integer array.
Declaration
public static short[][][] ToInt16(this string[][][] value, short[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Int16[][][] |
result |
|
Returns
Type |
Description |
System.Int16[][][] |
|
View Source
ToInt16(String[,,])
Converts a string to a short integer.
Declaration
public static short[,, ] ToInt16(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Int16[,,] |
|
View Source
ToInt16(String[,,], Int16[,,])
Converts a multidimensional string array to a multidimensional short integer array.
Declaration
public static short[,, ] ToInt16(this string[,, ] value, short[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Int16[,,] |
result |
|
Returns
Type |
Description |
System.Int16[,,] |
|
View Source
ToInt16(String[,])
Converts a string to a short integer.
Declaration
public static short[, ] ToInt16(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Int16[,] |
|
View Source
ToInt16(String[,], Int16[][])
Converts a multidimensional string array to a jagged short integer array.
Declaration
public static short[][] ToInt16(this string[, ] value, short[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int16[][] |
result |
|
Returns
Type |
Description |
System.Int16[][] |
|
View Source
ToInt16(String[,], Int16[,])
Converts a multidimensional string array to a multidimensional short integer array.
Declaration
public static short[, ] ToInt16(this string[, ] value, short[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int16[,] |
result |
|
Returns
Type |
Description |
System.Int16[,] |
|
View Source
ToInt32(Boolean[])
Converts a boolean to a integer.
Declaration
public static int[] ToInt32(this bool[] value)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
ToInt32(Boolean[], Int32[])
Converts a boolean array to a integer array.
Declaration
public static int[] ToInt32(this bool[] value, int[] result)
Parameters
Type |
Name |
Description |
System.Boolean[] |
value |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
ToInt32(Boolean[][])
Converts a boolean to a integer.
Declaration
public static int[][] ToInt32(this bool[][] value)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(Boolean[][], Int32[][])
Converts a jagged boolean array to a jagged integer array.
Declaration
public static int[][] ToInt32(this bool[][] value, int[][] result)
Parameters
Type |
Name |
Description |
System.Boolean[][] |
value |
|
System.Int32[][] |
result |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(Double[][])
Converts a double-precision floating point to a integer.
Declaration
public static int[][] ToInt32(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(Double[][], Int32[][])
Converts a jagged double-precision floating point array to a jagged integer array.
Declaration
public static int[][] ToInt32(this double[][] value, int[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
System.Int32[][] |
result |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(Double[,])
Converts a double-precision floating point to a integer.
Declaration
public static int[, ] ToInt32(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Int32[,] |
|
View Source
ToInt32(Double[,], Int32[,])
Converts a multidimensional double-precision floating point array to a multidimensional integer array.
Declaration
public static int[, ] ToInt32(this double[, ] value, int[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
System.Int32[,] |
result |
|
Returns
Type |
Description |
System.Int32[,] |
|
View Source
ToInt32(String[])
Converts a string to a integer.
Declaration
public static int[] ToInt32(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
ToInt32(String[], Int32[])
Converts a string array to a integer array.
Declaration
public static int[] ToInt32(this string[] value, int[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Int32[] |
result |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
ToInt32(String[][])
Converts a string to a integer.
Declaration
public static int[][] ToInt32(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(String[][], Int32[][])
Converts a jagged string array to a jagged integer array.
Declaration
public static int[][] ToInt32(this string[][] value, int[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int32[][] |
result |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(String[][], Int32[,])
Converts a jagged string array to a multidimensional integer array.
Declaration
public static int[, ] ToInt32(this string[][] value, int[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int32[,] |
result |
|
Returns
Type |
Description |
System.Int32[,] |
|
View Source
ToInt32(String[][][])
Converts a string to a integer.
Declaration
public static int[][][] ToInt32(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Int32[][][] |
|
View Source
ToInt32(String[][][], Int32[][][])
Converts a jagged string array to a jagged integer array.
Declaration
public static int[][][] ToInt32(this string[][][] value, int[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Int32[][][] |
result |
|
Returns
Type |
Description |
System.Int32[][][] |
|
View Source
ToInt32(String[,,])
Converts a string to a integer.
Declaration
public static int[,, ] ToInt32(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Int32[,,] |
|
View Source
ToInt32(String[,,], Int32[,,])
Converts a multidimensional string array to a multidimensional integer array.
Declaration
public static int[,, ] ToInt32(this string[,, ] value, int[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Int32[,,] |
result |
|
Returns
Type |
Description |
System.Int32[,,] |
|
View Source
ToInt32(String[,])
Converts a string to a integer.
Declaration
public static int[, ] ToInt32(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Int32[,] |
|
View Source
ToInt32(String[,], Int32[][])
Converts a multidimensional string array to a jagged integer array.
Declaration
public static int[][] ToInt32(this string[, ] value, int[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int32[][] |
result |
|
Returns
Type |
Description |
System.Int32[][] |
|
View Source
ToInt32(String[,], Int32[,])
Converts a multidimensional string array to a multidimensional integer array.
Declaration
public static int[, ] ToInt32(this string[, ] value, int[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int32[,] |
result |
|
Returns
Type |
Description |
System.Int32[,] |
|
View Source
ToInt64(String[])
Converts a string to a long integer.
Declaration
public static long[] ToInt64(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
ToInt64(String[], Int64[])
Converts a string array to a long integer array.
Declaration
public static long[] ToInt64(this string[] value, long[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Int64[] |
result |
|
Returns
Type |
Description |
System.Int64[] |
|
View Source
ToInt64(String[][])
Converts a string to a long integer.
Declaration
public static long[][] ToInt64(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Int64[][] |
|
View Source
ToInt64(String[][], Int64[][])
Converts a jagged string array to a jagged long integer array.
Declaration
public static long[][] ToInt64(this string[][] value, long[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int64[][] |
result |
|
Returns
Type |
Description |
System.Int64[][] |
|
View Source
ToInt64(String[][], Int64[,])
Converts a jagged string array to a multidimensional long integer array.
Declaration
public static long[, ] ToInt64(this string[][] value, long[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Int64[,] |
result |
|
Returns
Type |
Description |
System.Int64[,] |
|
View Source
ToInt64(String[][][])
Converts a string to a long integer.
Declaration
public static long[][][] ToInt64(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Int64[][][] |
|
View Source
ToInt64(String[][][], Int64[][][])
Converts a jagged string array to a jagged long integer array.
Declaration
public static long[][][] ToInt64(this string[][][] value, long[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Int64[][][] |
result |
|
Returns
Type |
Description |
System.Int64[][][] |
|
View Source
ToInt64(String[,,])
Converts a string to a long integer.
Declaration
public static long[,, ] ToInt64(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Int64[,,] |
|
View Source
ToInt64(String[,,], Int64[,,])
Converts a multidimensional string array to a multidimensional long integer array.
Declaration
public static long[,, ] ToInt64(this string[,, ] value, long[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Int64[,,] |
result |
|
Returns
Type |
Description |
System.Int64[,,] |
|
View Source
ToInt64(String[,])
Converts a string to a long integer.
Declaration
public static long[, ] ToInt64(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Int64[,] |
|
View Source
ToInt64(String[,], Int64[][])
Converts a multidimensional string array to a jagged long integer array.
Declaration
public static long[][] ToInt64(this string[, ] value, long[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int64[][] |
result |
|
Returns
Type |
Description |
System.Int64[][] |
|
View Source
ToInt64(String[,], Int64[,])
Converts a multidimensional string array to a multidimensional long integer array.
Declaration
public static long[, ] ToInt64(this string[, ] value, long[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Int64[,] |
result |
|
Returns
Type |
Description |
System.Int64[,] |
|
View Source
ToJagged(DataTable)
Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, IFormatProvider provider, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToJagged(DataTable, String[])
Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, params string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToJagged(DataTable, out String[])
Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
ToJagged<T>(T[], Boolean)
Converts an array into a multidimensional array.
Declaration
public static T[][] ToJagged<T>(this T[] array, bool asColumnVector = true)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Boolean |
asColumnVector |
|
Returns
Type Parameters
View Source
ToJagged<T>(T[,,])
Converts a multidimensional array into a jagged array.
Declaration
public static T[][][] ToJagged<T>(this T[,, ] matrix)
Parameters
Type |
Name |
Description |
T[,,] |
matrix |
|
Returns
Type Parameters
View Source
ToJagged<T>(T[,], Boolean)
Converts a multidimensional array into a jagged array.
Declaration
public static T[][] ToJagged<T>(this T[, ] matrix, bool transpose = false)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
System.Boolean |
transpose |
|
Returns
Type Parameters
View Source
ToJagged<T>(DataTable)
Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type Parameters
View Source
Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type Parameters
View Source
Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table, IFormatProvider provider, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
ToJagged<T>(DataTable, String[])
Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table, params string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
ToJagged<T>(DataTable, out String[])
Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
ToJagged<T>(IList<IList<T>>)
Converts a matrix represented as a nested list of lists into a jagged matrix.
Declaration
public static T[][] ToJagged<T>(this IList<IList<T>> values)
Parameters
Type |
Name |
Description |
IList<IList<T>> |
values |
|
Returns
Type Parameters
View Source
ToLowerTriangular<T>(T[][], MatrixType, T[][])
Converts a matrix to lower triangular form, if possible.
Declaration
public static T[][] ToLowerTriangular<T>(this T[][] matrix, MatrixType from, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
MatrixType |
from |
|
T[][] |
result |
|
Returns
Type Parameters
View Source
ToLowerTriangular<T>(T[,], MatrixType, T[,])
Converts a matrix to lower triangular form, if possible.
Declaration
public static T[, ] ToLowerTriangular<T>(this T[, ] matrix, MatrixType from, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
MatrixType |
from |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
ToMatrix(DataTable)
Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToMatrix(DataTable, String[])
Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table, params string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToMatrix(DataTable, out String[])
Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
ToMatrix<T>(T[], Boolean)
Converts an array into a multidimensional array.
Declaration
public static T[, ] ToMatrix<T>(this T[] array, bool asColumnVector = false)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Boolean |
asColumnVector |
|
Returns
Type Parameters
View Source
ToMatrix<T>(T[][], Boolean)
Converts a jagged-array into a multidimensional array.
Declaration
public static T[, ] ToMatrix<T>(this T[][] array, bool transpose = false)
Parameters
Type |
Name |
Description |
T[][] |
array |
|
System.Boolean |
transpose |
|
Returns
Type Parameters
View Source
ToMatrix<T>(DataTable)
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type Parameters
View Source
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type Parameters
View Source
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, IFormatProvider provider, params string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
ToMatrix<T>(DataTable, String[])
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, params string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
ToMatrix<T>(DataTable, out String[])
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, out string[] columnNames)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
Returns
Type Parameters
View Source
Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, out string[] columnNames, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String[] |
columnNames |
|
IFormatProvider |
provider |
|
Returns
Type Parameters
View Source
ToMatrix<T, U>(IList<IList<T>>)
Converts a matrix represented as a nested list of lists into a multi-dimensional matrix.
Declaration
public static T[, ] ToMatrix<T, U>(this IList<IList<T>> values)
Parameters
Type |
Name |
Description |
IList<IList<T>> |
values |
|
Returns
Type Parameters
View Source
ToOctave<T>(T[])
Returns a representation of a a given array.
Declaration
public static string ToOctave<T>(this T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
The array.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
ToOctave<T>(T[][])
Returns a representation of a given matrix.
Declaration
public static string ToOctave<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToOctave<T>(T[,])
Returns a representation of a given matrix.
Declaration
public static string ToOctave<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Top<T>(T[], Int32, Boolean)
Retrieves the top count
values of an array.
Declaration
public static int[] Top<T>(this T[] values, int count, bool inPlace = false)
where T : IComparable<T>
Parameters
Type |
Name |
Description |
T[] |
values |
|
System.Int32 |
count |
|
System.Boolean |
inPlace |
|
Returns
Type |
Description |
System.Int32[] |
|
Type Parameters
View Source
ToSByte(String[])
Converts a string to a signed 7-bit byte.
Declaration
public static sbyte[] ToSByte(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.SByte[] |
|
View Source
ToSByte(String[], SByte[])
Converts a string array to a signed 7-bit byte array.
Declaration
public static sbyte[] ToSByte(this string[] value, sbyte[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.SByte[] |
result |
|
Returns
Type |
Description |
System.SByte[] |
|
View Source
ToSByte(String[][])
Converts a string to a signed 7-bit byte.
Declaration
public static sbyte[][] ToSByte(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.SByte[][] |
|
View Source
ToSByte(String[][], SByte[][])
Converts a jagged string array to a jagged signed 7-bit byte array.
Declaration
public static sbyte[][] ToSByte(this string[][] value, sbyte[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.SByte[][] |
result |
|
Returns
Type |
Description |
System.SByte[][] |
|
View Source
ToSByte(String[][], SByte[,])
Converts a jagged string array to a multidimensional signed 7-bit byte array.
Declaration
public static sbyte[, ] ToSByte(this string[][] value, sbyte[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.SByte[,] |
result |
|
Returns
Type |
Description |
System.SByte[,] |
|
View Source
ToSByte(String[][][])
Converts a string to a signed 7-bit byte.
Declaration
public static sbyte[][][] ToSByte(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.SByte[][][] |
|
View Source
ToSByte(String[][][], SByte[][][])
Converts a jagged string array to a jagged signed 7-bit byte array.
Declaration
public static sbyte[][][] ToSByte(this string[][][] value, sbyte[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.SByte[][][] |
result |
|
Returns
Type |
Description |
System.SByte[][][] |
|
View Source
ToSByte(String[,,])
Converts a string to a signed 7-bit byte.
Declaration
public static sbyte[,, ] ToSByte(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.SByte[,,] |
|
View Source
ToSByte(String[,,], SByte[,,])
Converts a multidimensional string array to a multidimensional signed 7-bit byte array.
Declaration
public static sbyte[,, ] ToSByte(this string[,, ] value, sbyte[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.SByte[,,] |
result |
|
Returns
Type |
Description |
System.SByte[,,] |
|
View Source
ToSByte(String[,])
Converts a string to a signed 7-bit byte.
Declaration
public static sbyte[, ] ToSByte(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.SByte[,] |
|
View Source
ToSByte(String[,], SByte[][])
Converts a multidimensional string array to a jagged signed 7-bit byte array.
Declaration
public static sbyte[][] ToSByte(this string[, ] value, sbyte[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.SByte[][] |
result |
|
Returns
Type |
Description |
System.SByte[][] |
|
View Source
ToSByte(String[,], SByte[,])
Converts a multidimensional string array to a multidimensional signed 7-bit byte array.
Declaration
public static sbyte[, ] ToSByte(this string[, ] value, sbyte[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.SByte[,] |
result |
|
Returns
Type |
Description |
System.SByte[,] |
|
View Source
ToSingle(Double[][])
Converts a double-precision floating point to a single-precision floating point.
Declaration
public static float[][] ToSingle(this double[][] value)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
Returns
Type |
Description |
System.Single[][] |
|
View Source
ToSingle(Double[][], Single[][])
Converts a jagged double-precision floating point array to a jagged single-precision floating point array.
Declaration
public static float[][] ToSingle(this double[][] value, float[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
value |
|
System.Single[][] |
result |
|
Returns
Type |
Description |
System.Single[][] |
|
View Source
ToSingle(Double[,,])
Converts a double-precision floating point to a single-precision floating point.
Declaration
public static float[,, ] ToSingle(this double[,, ] value)
Parameters
Type |
Name |
Description |
System.Double[,,] |
value |
|
Returns
Type |
Description |
System.Single[,,] |
|
View Source
ToSingle(Double[,,], Single[,,])
Converts a multidimensional double-precision floating point array to a multidimensional single-precision floating point array.
Declaration
public static float[,, ] ToSingle(this double[,, ] value, float[,, ] result)
Parameters
Type |
Name |
Description |
System.Double[,,] |
value |
|
System.Single[,,] |
result |
|
Returns
Type |
Description |
System.Single[,,] |
|
View Source
ToSingle(Double[,])
Converts a double-precision floating point to a single-precision floating point.
Declaration
public static float[, ] ToSingle(this double[, ] value)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
Returns
Type |
Description |
System.Single[,] |
|
View Source
ToSingle(Double[,], Single[,])
Converts a multidimensional double-precision floating point array to a multidimensional single-precision floating point array.
Declaration
public static float[, ] ToSingle(this double[, ] value, float[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
value |
|
System.Single[,] |
result |
|
Returns
Type |
Description |
System.Single[,] |
|
View Source
ToSingle(String[])
Converts a string to a single-precision floating point.
Declaration
public static float[] ToSingle(this string[] value)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
Returns
Type |
Description |
System.Single[] |
|
View Source
ToSingle(String[], Single[])
Converts a string array to a single-precision floating point array.
Declaration
public static float[] ToSingle(this string[] value, float[] result)
Parameters
Type |
Name |
Description |
System.String[] |
value |
|
System.Single[] |
result |
|
Returns
Type |
Description |
System.Single[] |
|
View Source
ToSingle(String[][])
Converts a string to a single-precision floating point.
Declaration
public static float[][] ToSingle(this string[][] value)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
Returns
Type |
Description |
System.Single[][] |
|
View Source
ToSingle(String[][], Single[][])
Converts a jagged string array to a jagged single-precision floating point array.
Declaration
public static float[][] ToSingle(this string[][] value, float[][] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Single[][] |
result |
|
Returns
Type |
Description |
System.Single[][] |
|
View Source
ToSingle(String[][], Single[,])
Converts a jagged string array to a multidimensional single-precision floating point array.
Declaration
public static float[, ] ToSingle(this string[][] value, float[, ] result)
Parameters
Type |
Name |
Description |
System.String[][] |
value |
|
System.Single[,] |
result |
|
Returns
Type |
Description |
System.Single[,] |
|
View Source
ToSingle(String[][][])
Converts a string to a single-precision floating point.
Declaration
public static float[][][] ToSingle(this string[][][] value)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
Returns
Type |
Description |
System.Single[][][] |
|
View Source
ToSingle(String[][][], Single[][][])
Converts a jagged string array to a jagged single-precision floating point array.
Declaration
public static float[][][] ToSingle(this string[][][] value, float[][][] result)
Parameters
Type |
Name |
Description |
System.String[][][] |
value |
|
System.Single[][][] |
result |
|
Returns
Type |
Description |
System.Single[][][] |
|
View Source
ToSingle(String[,,])
Converts a string to a single-precision floating point.
Declaration
public static float[,, ] ToSingle(this string[,, ] value)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
Returns
Type |
Description |
System.Single[,,] |
|
View Source
ToSingle(String[,,], Single[,,])
Converts a multidimensional string array to a multidimensional single-precision floating point array.
Declaration
public static float[,, ] ToSingle(this string[,, ] value, float[,, ] result)
Parameters
Type |
Name |
Description |
System.String[,,] |
value |
|
System.Single[,,] |
result |
|
Returns
Type |
Description |
System.Single[,,] |
|
View Source
ToSingle(String[,])
Converts a string to a single-precision floating point.
Declaration
public static float[, ] ToSingle(this string[, ] value)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
Returns
Type |
Description |
System.Single[,] |
|
View Source
ToSingle(String[,], Single[][])
Converts a multidimensional string array to a jagged single-precision floating point array.
Declaration
public static float[][] ToSingle(this string[, ] value, float[][] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Single[][] |
result |
|
Returns
Type |
Description |
System.Single[][] |
|
View Source
ToSingle(String[,], Single[,])
Converts a multidimensional string array to a multidimensional single-precision floating point array.
Declaration
public static float[, ] ToSingle(this string[, ] value, float[, ] result)
Parameters
Type |
Name |
Description |
System.String[,] |
value |
|
System.Single[,] |
result |
|
Returns
Type |
Description |
System.Single[,] |
|
View Source
ToString<T>(T[])
Returns a representation of a a given array.
Declaration
public static string ToString<T>(this T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
The array.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
Returns a representation of a a given array.
Declaration
public static string ToString<T>(this T[] array, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
ToString<T>(T[], String)
Returns a representation of a a given array.
Declaration
public static string ToString<T>(this T[] array, string format)
Parameters
Type |
Name |
Description |
T[] |
array |
The array.
|
System.String |
format |
The format to use when creating the resulting string.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
Returns a representation of a a given array.
Declaration
public static string ToString<T>(this T[] matrix, string format, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
OctaveArrayFormatProvider or DefaultArrayFormatProvider
for examples and more details.
View Source
ToString<T>(T[][])
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[][] matrix, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToString<T>(T[][], String)
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[][] matrix, string format)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
The matrix.
|
System.String |
format |
The format to use when creating the resulting string.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[][] matrix, string format, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToString<T>(T[,])
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[, ] matrix, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[, ] matrix, bool multiline, IMatrixFormatProvider provider)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix.
|
System.Boolean |
multiline |
If set to true , the matrix will be written using multiple
lines. If set to false , the matrix will be written in a
single line.
|
IMatrixFormatProvider |
provider |
The IMatrixFormatProvider to be used
when creating the resulting string. Default is to use
CurrentCulture.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToString<T>(T[,], String)
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[, ] matrix, string format)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
The matrix.
|
System.String |
format |
The format to use when creating the resulting string.
|
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Examples
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
Returns a representation of a given matrix.
Declaration
public static string ToString<T>(this T[, ] matrix, string format, IMatrixFormatProvider provider)
Parameters
Returns
Type |
Description |
System.String |
A that represents this instance.
|
Type Parameters
Please see CSharpMatrixFormatProvider,
CSharpJaggedMatrixFormatProvider, CSharpArrayFormatProvider,
OctaveMatrixFormatProvider, or OctaveArrayFormatProvider
for more details.
View Source
ToTable(Double[][])
Converts a DataTable to a double[,] array.
Declaration
public static DataTable ToTable(this double[][] matrix)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
|
Returns
Type |
Description |
DataTable |
|
View Source
ToTable(Double[][], String[])
Converts a DataTable to a double[,] array.
Declaration
public static DataTable ToTable(this double[][] matrix, params string[] columnNames)
Parameters
Type |
Name |
Description |
System.Double[][] |
matrix |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
DataTable |
|
View Source
ToTable(Double[,])
Converts a DataTable to a double[,] array.
Declaration
public static DataTable ToTable(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
DataTable |
|
View Source
ToTable(Double[,], String[])
Converts a DataTable to a double[,] array.
Declaration
public static DataTable ToTable(this double[, ] matrix, params string[] columnNames)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
System.String[] |
columnNames |
|
Returns
Type |
Description |
DataTable |
|
View Source
ToTable(Object[,])
Converts an array of values into a ,
attempting to guess column types by inspecting the data.
Declaration
public static DataTable ToTable(this object[, ] values)
Parameters
Type |
Name |
Description |
System.Object[,] |
values |
The values to be converted.
|
Returns
Type |
Description |
DataTable |
A containing the given values.
|
Examples
// Specify some data in a table format
//
object[,] data =
{
{ "Id", "IsSmoker", "Age" },
{ 0, 1, 10 },
{ 1, 1, 15 },
{ 2, 0, 40 },
{ 3, 1, 20 },
{ 4, 0, 70 },
{ 5, 0, 55 },
};
// Create a new table with the data
DataTable dataTable = data.ToTable();
View Source
ToTable(Object[,], String[])
Converts an array of values into a ,
attempting to guess column types by inspecting the data.
Declaration
public static DataTable ToTable(this object[, ] matrix, string[] columnNames)
Parameters
Type |
Name |
Description |
System.Object[,] |
matrix |
The values to be converted.
|
System.String[] |
columnNames |
The column names to use in the data table.
|
Returns
Type |
Description |
DataTable |
A containing the given values.
|
Examples
// Specify some data in a table format
//
object[,] data =
{
{ "Id", "IsSmoker", "Age" },
{ 0, 1, 10 },
{ 1, 1, 15 },
{ 2, 0, 40 },
{ 3, 1, 20 },
{ 4, 0, 70 },
{ 5, 0, 55 },
};
// Create a new table with the data
DataTable dataTable = data.ToTable();
View Source
ToUpperTriangular<T>(T[][], MatrixType, T[][])
Converts a matrix to upper triangular form, if possible.
Declaration
public static T[][] ToUpperTriangular<T>(this T[][] matrix, MatrixType from, T[][] result = null)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
|
MatrixType |
from |
|
T[][] |
result |
|
Returns
Type Parameters
View Source
ToUpperTriangular<T>(T[,], MatrixType, T[,])
Converts a matrix to upper triangular form, if possible.
Declaration
public static T[, ] ToUpperTriangular<T>(this T[, ] matrix, MatrixType from, T[, ] result = null)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
|
MatrixType |
from |
|
T[,] |
result |
|
Returns
Type Parameters
View Source
ToVector(DataTable)
Converts a DataTable to a double[][] array.
Declaration
public static double[] ToVector(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Converts a DataTable to a double[] array.
Declaration
public static double[] ToVector(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
Converts a DataTable to a double[] array.
Declaration
public static double[] ToVector(this DataTable table, IFormatProvider provider, out string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String |
columnName |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToVector(DataTable, String)
Converts a DataTable to a double[] array.
Declaration
public static double[] ToVector(this DataTable table, string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String |
columnName |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToVector(DataTable, out String)
Converts a DataTable to a double[][] array.
Declaration
public static double[] ToVector(this DataTable table, out string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String |
columnName |
|
Returns
Type |
Description |
System.Double[] |
|
View Source
ToVector<T>(DataTable)
Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
Returns
Type Parameters
View Source
Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table, IFormatProvider provider)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
Returns
Type Parameters
View Source
Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table, IFormatProvider provider, out string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
IFormatProvider |
provider |
|
System.String |
columnName |
|
Returns
Type Parameters
View Source
ToVector<T>(DataTable, String)
Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table, string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String |
columnName |
|
Returns
Type Parameters
View Source
ToVector<T>(DataTable, out String)
Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table, out string columnName)
Parameters
Type |
Name |
Description |
DataTable |
table |
|
System.String |
columnName |
|
Returns
Type Parameters
View Source
Trace(Double[,])
Gets the trace of a matrix.
Declaration
public static double Trace(this double[, ] matrix)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrix |
|
Returns
Type |
Description |
System.Double |
|
View Source
Trace(Double[,], Double[,])
Gets the trace of a matrix product.
Declaration
public static double Trace(double[, ] matrixA, double[, ] matrixB)
Parameters
Type |
Name |
Description |
System.Double[,] |
matrixA |
|
System.Double[,] |
matrixB |
|
Returns
Type |
Description |
System.Double |
|
View Source
Trace(Int32[,])
Gets the trace of a matrix.
Declaration
public static int Trace(this int[, ] matrix)
Parameters
Type |
Name |
Description |
System.Int32[,] |
matrix |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
Trace(Single[][])
Gets the trace of a matrix.
Declaration
public static float Trace(this float[][] matrix)
Parameters
Type |
Name |
Description |
System.Single[][] |
matrix |
|
Returns
Type |
Description |
System.Single |
|
View Source
Trace(Single[,])
Gets the trace of a matrix.
Declaration
public static float Trace(this float[, ] matrix)
Parameters
Type |
Name |
Description |
System.Single[,] |
matrix |
|
Returns
Type |
Description |
System.Single |
|
View Source
Transpose(Array)
Gets the generalized transpose of a tensor.
Declaration
public static Array Transpose(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
A tensor.
|
Returns
Type |
Description |
Array |
The transpose of the given tensor.
|
View Source
Transpose(Array, Int32[])
Gets the generalized transpose of a tensor.
Declaration
public static Array Transpose(this Array array, int[] order)
Parameters
Type |
Name |
Description |
Array |
array |
A tensor.
|
System.Int32[] |
order |
The new order for the tensor's dimensions.
|
Returns
Type |
Description |
Array |
The transpose of the given tensor.
|
View Source
Transpose<T>(T, Int32[])
Gets the generalized transpose of a tensor.
Declaration
public static T Transpose<T>(this T array, int[] order)
where T : class, IList
Parameters
Type |
Name |
Description |
T |
array |
A tensor.
|
System.Int32[] |
order |
The new order for the tensor's dimensions.
|
Returns
Type |
Description |
T |
The transpose of the given tensor.
|
Type Parameters
View Source
Transpose<T>(T[])
Gets the transpose of a row vector.
Declaration
public static T[, ] Transpose<T>(this T[] rowVector)
Parameters
Type |
Name |
Description |
T[] |
rowVector |
A row vector.
|
Returns
Type |
Description |
T[,] |
The transpose of the given vector.
|
Type Parameters
View Source
Transpose<T>(T[], T[][])
Gets the transpose of a row vector.
Declaration
public static T[][] Transpose<T>(this T[] rowVector, T[][] result)
Parameters
Type |
Name |
Description |
T[] |
rowVector |
A row vector.
|
T[][] |
result |
The matrix where to store the transpose.
|
Returns
Type |
Description |
T[][] |
The transpose of the given vector.
|
Type Parameters
View Source
Transpose<T>(T[], out T[][])
Gets the transpose of a row vector.
Declaration
public static T[][] Transpose<T>(this T[] rowVector, out T[][] result)
Parameters
Type |
Name |
Description |
T[] |
rowVector |
A row vector.
|
T[][] |
result |
The matrix where to store the transpose.
|
Returns
Type |
Description |
T[][] |
The transpose of the given vector.
|
Type Parameters
View Source
Transpose<T>(T[], T[,])
Gets the transpose of a row vector.
Declaration
public static T[, ] Transpose<T>(this T[] rowVector, T[, ] result)
Parameters
Type |
Name |
Description |
T[] |
rowVector |
A row vector.
|
T[,] |
result |
The matrix where to store the transpose.
|
Returns
Type |
Description |
T[,] |
The transpose of the given vector.
|
Type Parameters
View Source
Transpose<T>(T[][])
Gets the transpose of a matrix.
Declaration
public static T[][] Transpose<T>(this T[][] matrix)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
A matrix.
|
Returns
Type |
Description |
T[][] |
The transpose of the given matrix.
|
Type Parameters
View Source
Transpose<T>(T[][], Boolean)
Gets the transpose of a matrix.
Declaration
public static T[][] Transpose<T>(this T[][] matrix, bool inPlace)
Parameters
Type |
Name |
Description |
T[][] |
matrix |
A matrix.
|
System.Boolean |
inPlace |
True to store the transpose over the same input
matrix , false otherwise. Default is false.
|
Returns
Type |
Description |
T[][] |
The transpose of the given matrix.
|
Type Parameters
View Source
Transpose<T>(T[,])
Gets the transpose of a matrix.
Declaration
public static T[, ] Transpose<T>(this T[, ] matrix)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
Returns
Type |
Description |
T[,] |
The transpose of the given matrix.
|
Type Parameters
View Source
Transpose<T>(T[,], Boolean)
Gets the transpose of a matrix.
Declaration
public static T[, ] Transpose<T>(this T[, ] matrix, bool inPlace)
Parameters
Type |
Name |
Description |
T[,] |
matrix |
A matrix.
|
System.Boolean |
inPlace |
True to store the transpose over the same input
matrix , false otherwise. Default is false.
|
Returns
Type |
Description |
T[,] |
The transpose of the given matrix.
|
Type Parameters
View Source
Transpose<T>(IList<T[]>)
Gets the transpose of a matrix.
Declaration
public static T[][] Transpose<T>(this IList<T[]> matrix)
Parameters
Type |
Name |
Description |
IList<T[]> |
matrix |
A matrix.
|
Returns
Type |
Description |
T[][] |
The transpose of the given matrix.
|
Type Parameters
View Source
Transpose<TCollection, TItem>(TCollection)
Gets the transpose of a matrix.
Declaration
public static TItem[][] Transpose<TCollection, TItem>(this TCollection matrix)
where TCollection : ICollection, IEnumerable<TItem[]>
Parameters
Type |
Name |
Description |
TCollection |
matrix |
A matrix.
|
Returns
Type |
Description |
TItem[][] |
The transpose of the given matrix.
|
Type Parameters
Name |
Description |
TCollection |
|
TItem |
|
View Source
TransposeAndDot(Double[], Double[][], Double[][])
Computes the product A'*b
of matrix A
transposed and column vector b
.
Declaration
public static double[][] TransposeAndDot(this double[] rowVector, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The transposed left matrix A .
|
System.Double[][] |
b |
The right column vector b .
|
System.Double[][] |
result |
The vector r to store the product r = A'*b
of the given matrix A and vector b .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDot(Double[], Double[,], Double[,])
Computes the product A'*b
of matrix A
transposed and column vector b
.
Declaration
public static double[, ] TransposeAndDot(this double[] rowVector, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[] |
rowVector |
The transposed left matrix A .
|
System.Double[,] |
b |
The right column vector b .
|
System.Double[,] |
result |
The vector r to store the product r = A'*b
of the given matrix A and vector b .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
TransposeAndDot(Double[][], Double[][])
Computes the product A'*B
of transposed of matrix A
and B
.
Declaration
public static double[][] TransposeAndDot(this double[][] a, double[][] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The transposed left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
The product A'*B of the given matrices A and B .
|
View Source
TransposeAndDot(Double[][], Double[][], Double[][])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[][] TransposeAndDot(this double[][] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The transposed left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDot(Double[][], Double[,], Double[][])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[][] TransposeAndDot(this double[][] a, double[, ] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The transposed left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDot(Double[,], Double[][], Double[][])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[][] TransposeAndDot(this double[, ] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The transposed left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDot(Double[,], Double[,])
Computes the product A'*B
of transposed of matrix A
and B
.
Declaration
public static double[, ] TransposeAndDot(this double[, ] a, double[, ] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The transposed left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
The product A'*B of the given matrices A and B .
|
View Source
TransposeAndDot(Double[,], Double[,], Double[,])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[, ] TransposeAndDot(this double[, ] a, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The transposed left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
TransposeAndDot(Int32[][], Double[], Double[])
Computes the product A'*b
of matrix A
transposed and column vector b
.
Declaration
public static double[] TransposeAndDot(this int[][] matrix, double[] columnVector, double[] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
matrix |
The transposed left matrix A .
|
System.Double[] |
columnVector |
The right column vector b .
|
System.Double[] |
result |
The vector r to store the product r = A'*b
of the given matrix A and vector b .
|
Returns
Type |
Description |
System.Double[] |
|
View Source
TransposeAndDot(Int32[][], Double[][], Double[][])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[][] TransposeAndDot(this int[][] a, double[][] b, double[][] result)
Parameters
Type |
Name |
Description |
System.Int32[][] |
a |
The transposed left matrix A .
|
System.Double[][] |
b |
The right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDot(Int32[,], Double[], Double[])
Computes the product A'*b
of matrix A
transposed and column vector b
.
Declaration
public static double[] TransposeAndDot(this int[, ] matrix, double[] columnVector, double[] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
matrix |
The transposed left matrix A .
|
System.Double[] |
columnVector |
The right column vector b .
|
System.Double[] |
result |
The vector r to store the product r = A'*b
of the given matrix A and vector b .
|
Returns
Type |
Description |
System.Double[] |
|
View Source
TransposeAndDot(Int32[,], Double[,], Double[,])
Computes the product A'*B
of matrix A
transposed and matrix B
.
Declaration
public static double[, ] TransposeAndDot(this int[, ] a, double[, ] b, double[, ] result)
Parameters
Type |
Name |
Description |
System.Int32[,] |
a |
The transposed left matrix A .
|
System.Double[,] |
b |
The right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A'*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
TransposeAndDotWithDiagonal(Double[][], Double[])
Computes the product A'*B of matrix A
and diagonal matrix B
.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this double[][] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of right matrix B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDotWithDiagonal(Double[][], Double[], Double[][])
Computes the product A'*B of matrix A
and diagonal matrix B
.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this double[][] a, double[] diagonal, double[][] result)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of right matrix B .
|
System.Double[][] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[][] |
|
View Source
TransposeAndDotWithDiagonal(Double[,], Double[])
Computes the product A'*B of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this double[, ] a, double[] b)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
b |
The diagonal vector of right matrix B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
TransposeAndDotWithDiagonal(Double[,], Double[], Double[,])
Computes the product A'*B of matrix A
and diagonal matrix B
.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this double[, ] a, double[] diagonal, double[, ] result)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
The left matrix A .
|
System.Double[] |
diagonal |
The diagonal vector of right matrix B .
|
System.Double[,] |
result |
The matrix R to store the product R = A*B
of the given matrices A and B .
|
Returns
Type |
Description |
System.Double[,] |
|
View Source
Trim(Array)
Trims the specified array, removing zero and empty entries from arrays.
Declaration
public static Array Trim(this Array array)
Parameters
Type |
Name |
Description |
Array |
array |
The array to be trimmed.
|
Returns
View Source
TryGetValue(Array, Boolean, Int32[], out Object)
Gets the value at the specified position in the multidimensional System.Array.
The indexes are specified as an array of 32-bit integers.
Declaration
public static bool TryGetValue(this Array array, bool deep, int[] indices, out object value)
Parameters
Type |
Name |
Description |
Array |
array |
A jagged or multidimensional array.
|
System.Boolean |
deep |
If set to true, internal arrays in jagged arrays will be followed.
|
System.Int32[] |
indices |
A one-dimensional array of 32-bit integers that represent the
indexes specifying the position of the System.Array element to get.
|
System.Object |
value |
The value retrieved from the array.
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Converts the string representation of a matrix to its
double-precision floating-point number matrix equivalent.
A return value indicates whether the conversion succeeded or failed.
Declaration
public static bool TryParse(string s, IMatrixFormatProvider provider, out double[][] matrix)
Parameters
Type |
Name |
Description |
System.String |
s |
The string representation of the matrix.
|
IMatrixFormatProvider |
provider |
The format provider to use in the conversion. Default is to use
CurrentCulture.
|
System.Double[][] |
matrix |
A double-precision floating-point number matrix parsed
from the given string using the given format provider.
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Converts the string representation of a matrix to its
double-precision floating-point number matrix equivalent.
A return value indicates whether the conversion succeeded or failed.
Declaration
public static bool TryParse(string s, IMatrixFormatProvider provider, out double[, ] matrix)
Parameters
Type |
Name |
Description |
System.String |
s |
The string representation of the matrix.
|
IMatrixFormatProvider |
provider |
The format provider to use in the conversion. Default is to use
CurrentCulture.
|
System.Double[,] |
matrix |
A double-precision floating-point number matrix parsed
from the given string using the given format provider.
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Zeros(Int32, Int32)
Creates a zero-valued matrix.
Declaration
public static double[, ] Zeros(int rows, int columns)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
Returns
Type |
Description |
System.Double[,] |
A vector of the specified size.
|
View Source
Zeros(Int32, Int32, Int32)
Creates a zero-valued rank-3 tensor.
Declaration
public static double[,, ] Zeros(int rows, int columns, int depth)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the tensor.
|
System.Int32 |
columns |
The number of columns in the tensor.
|
System.Int32 |
depth |
The number of channels in the tensor.
|
Returns
Type |
Description |
System.Double[,,] |
A matrix of the specified size.
|
View Source
Zeros(Type, Int32[])
Creates a zero-valued tensor.
Declaration
public static Array Zeros(Type type, params int[] shape)
Parameters
Type |
Name |
Description |
Type |
type |
The type of the elements to be contained in the tensor.
|
System.Int32[] |
shape |
The number of dimensions that the tensor should have.
|
Returns
Type |
Description |
Array |
A tensor of the specified shape.
|
View Source
Zeros<T>(Int32, Int32)
Creates a zero-valued matrix.
Declaration
public static T[, ] Zeros<T>(int rows, int columns)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the matrix.
|
System.Int32 |
columns |
The number of columns in the matrix.
|
Returns
Type |
Description |
T[,] |
A matrix of the specified size.
|
Type Parameters
Name |
Description |
T |
The type of the matrix to be created.
|
View Source
Zeros<T>(Int32, Int32, Int32)
Creates a zero-valued rank-3 tensor.
Declaration
public static T[,, ] Zeros<T>(int rows, int columns, int depth)
Parameters
Type |
Name |
Description |
System.Int32 |
rows |
The number of rows in the tensor.
|
System.Int32 |
columns |
The number of columns in the tensor.
|
System.Int32 |
depth |
The number of channels in the tensor.
|
Returns
Type |
Description |
T[,,] |
A matrix of the specified size.
|
Type Parameters
Name |
Description |
T |
The type of the matrix to be created.
|
View Source
Zeros<T>(Int32[])
Creates a zero-valued tensor.
Declaration
public static Array Zeros<T>(params int[] shape)
Parameters
Type |
Name |
Description |
System.Int32[] |
shape |
The number of dimensions that the tensor should have.
|
Returns
Type |
Description |
Array |
A tensor of the specified shape.
|
Type Parameters
See Also