• MARS Website
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Show / Hide Table of Contents
  • Mars.Common
    • GeoHash
    • GeoHashDecoder
    • GeohashDecodeResult
    • GeoHashEncoder
    • GeoHashPrecision
    • Hyperrectangle
    • InputHashHelper
    • PositionHelper
  • Mars.Common.Collections
    • BinaryArrayHeap<T>
    • DoubleBits
    • FibonacciHeap<T, TKey>
    • FibonacciHeapDoubleKey<T>
    • FibonacciHeapNode<T, TKey>
    • FibonacciHeapNodeDoubleKey<T>
    • HeapNode
    • IntervalSize
    • K2DTree<T>
    • K2dTreeNode<T>
    • KdTree
    • KdTree<T>
    • KdTreeBase<TNode>
    • KdTreeNode
    • KdTreeNode<T>
    • KdTreeNodeBase<TNode>
    • KdTreeNodeCollection<TNode>
    • KdTreeNodeList<T>
    • Key
    • Node<T>
    • NodeBase<T>
    • NodeDataContainer<T>
    • NodeDistance<TNode>
    • QuadTree<T>
    • Root<T>
    • TreeDataContainer<T>
  • Mars.Common.Collections.CritBit
    • ICritBitTree<TValue>
  • Mars.Common.Collections.Graph
    • EdgeData
    • GraphData
    • GraphSerializer
    • ISpatialGraph
    • KeyContainer
    • NodeData
    • SpatialGraph
    • SpatialGraphHelper
  • Mars.Common.Collections.Graph.Algorithms
    • AStar
    • CompressedPathDatabase
    • ContractionSearch
    • DepthLimitedTraversal
  • Mars.Common.Collections.Graph.Helper
    • INodeFinder
    • KdTreeNodeFinder
    • RunLengthEncoder
  • Mars.Common.Collections.KNNGraph
    • DefaultRandomGenerator
    • DistanceUtils
    • EventSources
    • EventSources.GraphBuildEventSource
    • EventSources.GraphSearchEventSource
    • IProgressReporter
    • IProvideRandomValues
    • KnnGraph<TItem, TDistance>
    • KnnGraph<TItem, TDistance>.KnnSearchResult
    • KnnGraph<TItem, TDistance>.Parameters
    • Node
    • ReverseComparer<T>
    • ReverseComparerExtensions
    • SelectionKind
    • TravelingCosts<TItem, TDistance>
  • Mars.Common.Compat
    • FormatDecoderAttribute
    • FormatEncoderAttribute
    • FormatHandlerAttribute
    • IntegerAttribute
    • NegativeIntegerAttribute
    • NonnegativeIntegerAttribute
    • NonpositiveIntegerAttribute
    • PositiveIntegerAttribute
  • Mars.Common.Data
    • DomainDataImporter
  • Mars.Common.Data.Providers
    • AscDataProvider
    • GeoJsonFeatureCollectionConverter
    • GeoJsonFeatureConverter
    • GeoJsonHelper
    • GeometryDataProvider
    • GraphMlProvider
    • HttpDataProvider
    • IDataProvider<TInput>
    • JsonFileDataProvider
    • JsonTextDataProvider
    • XmlFileDataProvider
    • XmlTextDataProvider
  • Mars.Common.Exceptions
    • DimensionMismatchException
    • ParseException
  • Mars.Common.IO
    • ExtensionMethods
    • FileClientUtils
    • FileKeys
    • HttpClientUtils
    • ObjectSerialize
    • Serializer
    • SerializerCompression
    • SparseFormat
    • SparseReader
    • SparseWriter
  • Mars.Common.IO.Attributes
    • SerializationBinderAttribute
    • SurrogateSelectorAttribute
  • Mars.Common.IO.Console
    • ChildProgressBar
    • IProgressBar
    • ProgressBar
    • ProgressBarBase
    • ProgressBarHeight
    • ProgressBarOptions
    • ProgressBarSimple
  • Mars.Common.IO.Csv
    • CsvAnalyzer
    • CsvReader
    • CsvReader.RecordEnumerator
    • CsvWriter
    • MissingFieldAction
    • ParseErrorAction
    • ValueTrimmingOptions
  • Mars.Common.IO.Events
    • ParseErrorEventArgs
  • Mars.Common.IO.Exceptions
    • MalformedCsvException
    • MissingFieldCsvException
  • Mars.Common.IO.Mapped
    • Context
    • DefaultArrayFactory
    • Extensions
    • IArrayFactory
    • ISerializableToStream
    • MappedAccessor<T>
    • MemoryMap
    • MemoryMap.CreateAccessorFunc<T>
    • MemoryMap.ReadFromDelegate<T>
    • MemoryMap.WriteToDelegate<T>
    • MemoryMapDelegates
    • MemoryMapDelegates.CreateAccessorFunc<T>
    • MemoryMapStream
  • Mars.Common.IO.Mapped.Accessors
    • MappedAccessorByte
    • MappedAccessorDouble
    • MappedAccessorInt16
    • MappedAccessorInt32
    • MappedAccessorInt64
    • MappedAccessorSingle
    • MappedAccessorUInt16
    • MappedAccessorUInt32
    • MappedAccessorUInt64
    • MappedAccessorVariable<T>
  • Mars.Common.IO.Mapped.Arrays
    • Array<T>
    • ArrayBase<T>
    • ArrayProfile
    • MappedArray<TMapped, T>
    • MappedArray<TMapped, T>.MapFrom
    • MappedArray<TMapped, T>.MapTo
    • MemoryArray<T>
    • VariableArray<T>
  • Mars.Common.IO.Mapped.Collections
    • MemoryBackedDictionary<TKey, TValue>
    • MemoryBackedList<T>
  • Mars.Common.IO.Mapped.Indexes
    • Index<T>
  • Mars.Common.IO.Mapped.Streams
    • CappedStream
  • Mars.Common.Socket
    • ByteOrder
    • CloseEventArgs
    • CloseStatusCode
    • CompressionMethod
    • ErrorEventArgs
    • Ext
    • MessageEventArgs
    • WebSocket
    • WebSocketException
    • WebSocketState
  • Mars.Common.Socket.Server
    • IWebSocketSession
    • WebHeaderCollection
    • WebSocketBehavior
    • WebSocketContext
    • WebSocketServer
    • WebSocketServiceHost
    • WebSocketServiceManager
    • WebSocketSessionManager
  • Mars.Numerics
    • Classes
    • Combinatorics
    • Constants
    • Distance
    • Elementwise
    • Jagged
    • MathematicsException
    • MathHelper
    • Matrix
    • MatrixOrder
    • MatrixType
    • Norm
    • Sort
    • Sorting
    • Sparse
    • Sparse<T>
    • Tools
    • Vector
    • VectorHelper
    • VectorType
  • Mars.Numerics.Comparers
    • ArrayComparer<T>
    • ComparerDirection
    • CustomComparer<T>
    • ElementComparer
    • ElementComparer<T>
    • GeneralComparer
    • StableComparer<T>
  • Mars.Numerics.Distances
    • Angular
    • Chebyshev
    • Cosine
    • Dirac<T>
    • Euclidean
    • Hamming
    • Hamming<T>
    • Haversine
    • Jaccard
    • Jaccard<T>
    • Kulczynski
    • Levenshtein
    • Levenshtein<T>
    • Manhattan
    • Matching
    • Minkowski
    • SquareEuclidean
    • Vincenty
    • Vincenty.Ellipsoid
  • Mars.Numerics.Distances.Base
    • IDistance<T>
    • IDistance<TFirst, TSecond>
    • IMetric<T>
    • ISimilarity<T, TU>
    • ISimilarity<T>
  • Mars.Numerics.Exceptions
    • DimensionMismatchException
    • NonPositiveDefiniteMatrixException
    • SingularMatrixException
  • Mars.Numerics.Formats
    • DefaultMatrixFormatProvider
    • IMatrixFormatProvider
    • MatrixFormatProviderBase
    • MatrixFormatter
    • OctaveMatrixFormatProvider
  • Mars.Numerics.Ranges
    • ByteRange
    • DoubleRange
    • FloatRange
    • IntRange
    • IRange<T>
  • Mars.Numerics.Statistics
    • ConstValueDistribution<T>
    • Distribution<T>
    • FastGaussianDistributionD
    • FastGaussianDistributionF
    • IDistribution
    • UniformDiscreteDistribution
    • UniformDistributionD
    • UniformDistributionF
  • Mars.Numerics.Statistics.Base
    • BinarySearch
    • DistributionBase
    • ISampleableDistribution<TObservations>
    • IUnivariateDistribution
    • IUnivariateDistribution<TObservation>
    • UnivariateDiscreteDistribution

Class Matrix

Static class Matrix. Defines a set of extension methods that operates mainly on multidimensional arrays and vectors.
Inheritance
System.Object
Matrix
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics
Assembly: Mars.Numerics.dll
Syntax
public static class Matrix
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Examples

Introduction

Declaring and using matrices does not requires much. In fact, it does not require anything else that is not already present at the .NET Standard. If you have already existing and working code using other libraries, you don't have to convert your matrices to any special format.

To begin, please add the following using directive on top of your .cs (or equivalent) source code file:

using Mars.Numerics;

This is all you need to start using the 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 is simply using:

double[,] matrix = 
{
   { 1, 2 },
   { 3, 4 },
   { 5, 6 },
};

You don't need to create any fancy custom Matrix classes or vectors, 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);

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 sub-vector 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

| Improve this Doc 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
System.Func<TInput, TResult> func
TResult[] result
Returns
Type Description
TResult[]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, TResult> func
Returns
Type Description
TResult[]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, TResult> func
TResult[] result
Returns
Type Description
TResult[]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, TResult> func
Returns
Type Description
TResult[]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, TResult> func
TResult[][] result
Returns
Type Description
TResult[][]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, TResult> func
Returns
Type Description
TResult[][]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, System.Int32, TResult> func
TResult[][] result
Returns
Type Description
TResult[][]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, System.Int32, TResult> func
Returns
Type Description
TResult[][]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, TResult> func
TResult[,] result
Returns
Type Description
TResult[,]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, TResult> func
Returns
Type Description
TResult[,]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, System.Int32, TResult> func
TResult[,] result
Returns
Type Description
TResult[,]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Func<TInput, System.Int32, System.Int32, TResult> func
Returns
Type Description
TResult[,]
Type Parameters
Name Description
TInput
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IList<TData> vector
System.Func<TData, TResult> func
TResult[] result
Returns
Type Description
TResult[]
Type Parameters
Name Description
TData
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IList<TData> vector
System.Func<TData, TResult> func
Returns
Type Description
TResult[]
Type Parameters
Name Description
TData
TResult
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32>
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32>
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32>
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32>
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<T>> sequences
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<T>>
Type Parameters
Name Description
T
Remarks
References: - http://blogs.msdn.com/b/ericlippert/archive/2010/06/28/computing-a-Cartesian-product-with-linq.aspx
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Ceiling(Double[])

Returns the largest integer greater than or equal than to the specified double-precision floating-point number for each element of the array.
Declaration
public static double[] Ceiling(double[] vector)
Parameters
Type Name Description
System.Double[] vector
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Ceiling(Double[,])

Returns the largest integer greater than or equal than to the specified double-precision floating-point number for each element of the matrix.
Declaration
public static double[, ] Ceiling(this double[, ] matrix)
Parameters
Type Name Description
System.Double[,] matrix
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Clear(Array)

Sets all elements in an array to zero.
Declaration
public static void Clear(this Array array)
Parameters
Type Name Description
System.Array array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IList<System.Collections.Generic.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Concatenate<T>(T, T[])

Combines a vector and a element horizontally.
Declaration
public static T[] Concatenate<T>(this T element, T[] vector)
Parameters
Type Name Description
T element
T[] vector
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array The tensor to be converted.
System.Type type The type of the output.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Convert<TOutput>(Array)

Converts the values of a tensor.
Declaration
public static Array Convert<TOutput>(this Array array)
Parameters
Type Name Description
System.Array array The tensor to be converted.
Returns
Type Description
System.Array
Type Parameters
Name Description
TOutput The type of the output.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array source The array whose elements should be copied from.
System.Array destination The array where elements will be written to.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Func<T, System.Boolean> func The search criteria.
Returns
Type Description
System.Int32
Type Parameters
Name Description
T The type of the array.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
System.Array A matrix of the specified size.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
Create<T>(Int32, Int32, T)
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array A matrix of the specified size.
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array matrix
System.Type type
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Double[], Double[])

Vector product.
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[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Double[], Int32[])

Vector product.
Declaration
public static int[] Cross(this double[] a, double[] b, int[] result)
Parameters
Type Name Description
System.Double[] a
System.Double[] b
System.Int32[] result
Returns
Type Description
System.Int32[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Double[])

Vector product.
Declaration
public static double[] Cross(this double[] a, double[] b)
Parameters
Type Name Description
System.Double[] a
System.Double[] b
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Int32[], Double[])

Vector product.
Declaration
public static double[] Cross(this double[] a, int[] b, double[] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Double[] result
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Int32[], Int32[])

Vector product.
Declaration
public static int[] Cross(this double[] a, int[] b, int[] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Int32[] result
Returns
Type Description
System.Int32[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Double[], Int32[])

Vector product.
Declaration
public static double[] Cross(this double[] a, int[] b)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Double[], Double[])

Vector product.
Declaration
public static double[] Cross(this int[] a, double[] b, double[] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Double[] result
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Double[], Int32[])

Vector product.
Declaration
public static int[] Cross(this int[] a, double[] b, int[] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Int32[] result
Returns
Type Description
System.Int32[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Double[])

Vector product.
Declaration
public static double[] Cross(this int[] a, double[] b)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Int32[], Double[])

Vector product.
Declaration
public static double[] Cross(this int[] a, int[] b, double[] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Double[] result
Returns
Type Description
System.Double[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Int32[], Int32[])

Vector product.
Declaration
public static int[] Cross(this int[] a, int[] b, int[] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Int32[] result
Returns
Type Description
System.Int32[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Cross(Int32[], Int32[])

Vector product.
Declaration
public static int[] Cross(this int[] a, int[] b)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
Returns
Type Description
System.Int32[]
Remarks
The cross product, vector product or Gibbs vector product is a binary operation on two vectors in three-dimensional space. It has a vector result, a vector which is always perpendicular to both of the vectors being multiplied and the plane containing them. It has many applications in mathematics, engineering and physics.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[], Double[])

Matrix cumulative sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[])

Matrix cumulative sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[][], Int32, Double[][])

Matrix cumulative sum.
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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[][], Int32)

Matrix cumulative sum.
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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[,], Int32, Double[,])

Matrix cumulative sum.
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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Double[,], Int32)

Matrix cumulative sum.
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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[], Int32[])

Matrix cumulative sum.
Declaration
public static int[] CumulativeSum(this int[] vector, int[] result)
Parameters
Type Name Description
System.Int32[] vector A vector whose cumulative 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[])

Matrix cumulative sum.
Declaration
public static int[] CumulativeSum(this int[] vector)
Parameters
Type Name Description
System.Int32[] vector A vector whose cumulative sum will be calculated.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[][], Int32, Int32[][])

Matrix cumulative sum.
Declaration
public static int[][] CumulativeSum(this int[][] matrix, int dimension, int[][] result)
Parameters
Type Name Description
System.Int32[][] matrix A matrix whose cumulative sum will be calculated.
System.Int32 dimension The dimension in which the cumulative 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[][], Int32)

Matrix cumulative sum.
Declaration
public static int[][] CumulativeSum(this int[][] matrix, int dimension)
Parameters
Type Name Description
System.Int32[][] 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.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[,], Int32, Int32[,])

Matrix cumulative sum.
Declaration
public static int[, ] CumulativeSum(this int[, ] matrix, int dimension, int[, ] result)
Parameters
Type Name Description
System.Int32[,] matrix A matrix whose cumulative sum will be calculated.
System.Int32 dimension The dimension in which the cumulative 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

CumulativeSum(Int32[,], Int32)

Matrix cumulative sum.
Declaration
public static int[, ] CumulativeSum(this int[, ] matrix, int dimension)
Parameters
Type Name Description
System.Int32[,] 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.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array A jagged array.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DeepToMatrix(Array)

Converts a jagged-array into a multidimensional array.
Declaration
public static Array DeepToMatrix(this Array array)
Parameters
Type Name Description
System.Array array
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array a
System.Array b
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[][], Double[], Int32[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[][] DivideByDiagonal(this double[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[][], Int32[], Double[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[][] DivideByDiagonal(this double[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[][], Int32[], Int32[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[][] DivideByDiagonal(this double[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[][], Int32[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[][] DivideByDiagonal(this double[][] a, int[] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[,], Double[], Int32[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[, ] DivideByDiagonal(this double[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[,], Int32[], Double[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[, ] DivideByDiagonal(this double[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[,], Int32[], Int32[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[, ] DivideByDiagonal(this double[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Double[,], Int32[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[, ] DivideByDiagonal(this double[, ] a, int[] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Double[], Double[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[][] DivideByDiagonal(this int[][] a, double[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Double[], Int32[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[][] DivideByDiagonal(this int[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Double[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[][] DivideByDiagonal(this int[][] a, double[] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Int32[], Double[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[][] DivideByDiagonal(this int[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Int32[], Int32[][])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[][] DivideByDiagonal(this int[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[][], Int32[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[][] DivideByDiagonal(this int[][] a, int[] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] b The diagonal vector of inverse right matrix B.
Returns
Type Description
System.Int32[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Double[], Double[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[, ] DivideByDiagonal(this int[, ] a, double[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Double[], Int32[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[, ] DivideByDiagonal(this int[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Double[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[, ] DivideByDiagonal(this int[, ] a, double[] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Int32[], Double[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static double[, ] DivideByDiagonal(this int[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Int32[], Int32[,])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[, ] DivideByDiagonal(this int[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of inverse right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DivideByDiagonal(Int32[,], Int32[])

Computes the product A*inv(B) of matrix A and diagonal matrix B.
Declaration
public static int[, ] DivideByDiagonal(this int[, ] a, int[] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] b The diagonal vector of inverse right matrix B.
Returns
Type Description
System.Int32[,] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks

In mathematics, the dot product is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number obtained by multiplying corresponding entries and adding up those products. The name is derived from the dot that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.

The principal use of this product is the inner product in a Euclidean vector space: when two vectors are expressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product.

See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Double[][], Int32[])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[] Dot(this double[] rowVector, double[][] matrix, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Double[][] matrix The right matrix B.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Double[,], Int32[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static int[] Dot(this double[] rowVector, double[, ] matrix, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The row vector v.
System.Double[,] matrix The matrix A.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[])

Gets the inner product (scalar product) between two vectors (a'*b).
Declaration
public static double Dot(this double[] a, int[] b)
Parameters
Type Name Description
System.Double[] a A vector.
System.Int32[] b A vector.
Returns
Type Description
System.Double The inner product of the multiplication of the vectors.
Remarks

In mathematics, the dot product is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number obtained by multiplying corresponding entries and adding up those products. The name is derived from the dot that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.

The principal use of this product is the inner product in a Euclidean vector space: when two vectors are expressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product.

See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[][], 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, int[][] matrix, double[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[][] matrix The right matrix B.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[][], Int32[])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[] Dot(this double[] rowVector, int[][] matrix, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[][] matrix The right matrix B.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[][])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static double[] Dot(this double[] rowVector, int[][] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[] The product a*B of the given vector a and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[,], Double[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static double[] Dot(this double[] rowVector, int[, ] matrix, double[] result)
Parameters
Type Name Description
System.Double[] rowVector The row vector v.
System.Int32[,] matrix The matrix A.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[,], Int32[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static int[] Dot(this double[] rowVector, int[, ] matrix, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The row vector v.
System.Int32[,] matrix The matrix A.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[], Int32[,])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static double[] Dot(this double[] rowVector, int[, ] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[] The product a*B of the given vector a and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Double[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this double[][] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[][] matrix The matrix A.
System.Double[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Double[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Double[,], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this double[][] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[][] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this double[][] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[][] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static double[] Dot(this double[][] a, int[] columnVector)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Double[] The product A*b of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[][], 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, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[][])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this double[][] a, int[][] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[,], 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, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[,], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[][], Int32[,])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this double[][] a, int[, ] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Double[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this double[, ] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[,] matrix The matrix A.
System.Double[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Double[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Double[,], Int32[,])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[, ] Dot(this double[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this double[, ] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[,] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this double[, ] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[,] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static double[] Dot(this double[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Double[] The product A*b of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[][], 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, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this double[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[][])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this double[, ] a, int[][] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[,], 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, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[,], Int32[,])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[, ] Dot(this double[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Double[,], Int32[,])

Computes the product A*B of two matrices A and B.
Declaration
public static double[, ] Dot(this double[, ] a, int[, ] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[,] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[])

Gets the inner product (scalar product) between two vectors (a'*b).
Declaration
public static double Dot(this int[] a, double[] b)
Parameters
Type Name Description
System.Int32[] a A vector.
System.Double[] b A vector.
Returns
Type Description
System.Double The inner product of the multiplication of the vectors.
Remarks

In mathematics, the dot product is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number obtained by multiplying corresponding entries and adding up those products. The name is derived from the dot that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.

The principal use of this product is the inner product in a Euclidean vector space: when two vectors are expressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product.

See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], 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 int[] rowVector, double[][] matrix, double[] result)
Parameters
Type Name Description
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[][], Int32[])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[] Dot(this int[] rowVector, double[][] matrix, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Double[][] matrix The right matrix B.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[][])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static double[] Dot(this int[] rowVector, double[][] b)
Parameters
Type Name Description
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[,], Double[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static double[] Dot(this int[] rowVector, double[, ] matrix, double[] result)
Parameters
Type Name Description
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[,], Int32[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static int[] Dot(this int[] rowVector, double[, ] matrix, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The row vector v.
System.Double[,] matrix The matrix A.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Double[,])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static double[] Dot(this int[] rowVector, double[, ] b)
Parameters
Type Name Description
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[])

Gets the inner product (scalar product) between two vectors (a'*b).
Declaration
public static int Dot(this int[] a, int[] b)
Parameters
Type Name Description
System.Int32[] a A vector.
System.Int32[] b A vector.
Returns
Type Description
System.Int32 The inner product of the multiplication of the vectors.
Remarks

In mathematics, the dot product is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number obtained by multiplying corresponding entries and adding up those products. The name is derived from the dot that is often used to designate this operation; the alternative name scalar product emphasizes the scalar (rather than vector) nature of the result.

The principal use of this product is the inner product in a Euclidean vector space: when two vectors are expressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product.

See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[][], 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 int[] rowVector, int[][] matrix, double[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[][] matrix The right matrix B.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[][], Int32[])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[] Dot(this int[] rowVector, int[][] matrix, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[][] matrix The right matrix B.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[][])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static int[] Dot(this int[] rowVector, int[][] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[] The product a*B of the given vector a and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[,], Double[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static double[] Dot(this int[] rowVector, int[, ] matrix, double[] result)
Parameters
Type Name Description
System.Int32[] rowVector The row vector v.
System.Int32[,] matrix The matrix A.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[,], Int32[])

Multiplies a row vector v and a matrix A, giving the product v'*A.
Declaration
public static int[] Dot(this int[] rowVector, int[, ] matrix, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The row vector v.
System.Int32[,] matrix The matrix A.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[], Int32[,])

Computes the product a*B of a row vector a and a matrix B.
Declaration
public static int[] Dot(this int[] rowVector, int[, ] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[] The product a*B of the given vector a and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this int[][] matrix, double[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this int[][] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[][] matrix The matrix A.
System.Double[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static double[] Dot(this int[][] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], 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 int[][] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[][])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this int[][] a, double[][] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], 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 int[][] a, double[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[,], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Double[,])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this int[][] a, double[, ] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this int[][] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[][] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this int[][] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[][] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static int[] Dot(this int[][] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Int32[] The product A*b of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[][], 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 int[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[][])

Computes the product A*B of two matrices A and B.
Declaration
public static int[][] Dot(this int[][] a, int[][] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[,], 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 int[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[,], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[][], Int32[,])

Computes the product A*B of two matrices A and B.
Declaration
public static int[][] Dot(this int[][] a, int[, ] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this int[, ] matrix, double[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this int[, ] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[,] matrix The matrix A.
System.Double[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static double[] Dot(this int[, ] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], 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 int[, ] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[][])

Computes the product A*B of two matrices A and B.
Declaration
public static double[][] Dot(this int[, ] a, double[][] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], 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 int[, ] a, double[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[,], Int32[,])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[, ] Dot(this int[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Double[,])

Computes the product A*B of two matrices A and B.
Declaration
public static double[, ] Dot(this int[, ] a, double[, ] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[], Double[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static double[] Dot(this int[, ] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[,] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Double[] result The matrix R to store the product.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[], Int32[])

Multiplies a matrix A and a column vector v, giving the product A*v
Declaration
public static int[] Dot(this int[, ] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[,] matrix The matrix A.
System.Int32[] columnVector The column vector v.
System.Int32[] result The matrix R to store the product.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[])

Computes the product A*b of a matrix A and a column vector b.
Declaration
public static int[] Dot(this int[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Int32[] The product A*b of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[][], 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 int[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Double[][] result The matrix R to store the product.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[][], Int32[][])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[][] Dot(this int[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[][])

Computes the product A*B of two matrices A and B.
Declaration
public static int[][] Dot(this int[, ] a, int[][] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[,], 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 int[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[,], Int32[,])

Computes the product R = A*B of two matrices A and B, storing the result in matrix R.
Declaration
public static int[, ] Dot(this int[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Dot(Int32[,], Int32[,])

Computes the product A*B of two matrices A and B.
Declaration
public static int[, ] Dot(this int[, ] a, int[, ] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[,] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Double[][], Double[])

Computes the product a*B*c 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 a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Double[][], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this double[] rowVector, double[][] matrix, int[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Double[][] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Double[,], Double[])

Computes the product a*B*c 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 a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Double[,], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this double[] rowVector, double[, ] matrix, int[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Double[,] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Int32[][], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this double[] rowVector, int[][] matrix, double[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[][] matrix The square matrix B.
System.Double[] columnVector The column vector c.
Returns
Type Description
System.Double The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Int32[][], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this double[] rowVector, int[][] matrix, int[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[][] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Int32[,], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this double[] rowVector, int[, ] matrix, double[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[,] matrix The square matrix B.
System.Double[] columnVector The column vector c.
Returns
Type Description
System.Double The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Double[], Int32[,], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this double[] rowVector, int[, ] matrix, int[] columnVector)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[,] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Double[][], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this int[] rowVector, double[][] matrix, double[] columnVector)
Parameters
Type Name Description
System.Int32[] 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 a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Double[][], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this int[] rowVector, double[][] matrix, int[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Double[][] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Double[,], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this int[] rowVector, double[, ] matrix, double[] columnVector)
Parameters
Type Name Description
System.Int32[] 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 a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Double[,], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this int[] rowVector, double[, ] matrix, int[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Double[,] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Int32[][], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this int[] rowVector, int[][] matrix, double[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[][] matrix The square matrix B.
System.Double[] columnVector The column vector c.
Returns
Type Description
System.Double The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Int32[][], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this int[] rowVector, int[][] matrix, int[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[][] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Int32[,], Double[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static double DotAndDot(this int[] rowVector, int[, ] matrix, double[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[,] matrix The square matrix B.
System.Double[] columnVector The column vector c.
Returns
Type Description
System.Double The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotAndDot(Int32[], Int32[,], Int32[])

Computes the product a*B*c of a row vector a, a square matrix B and a column vector c.
Declaration
public static int DotAndDot(this int[] rowVector, int[, ] matrix, int[] columnVector)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[,] matrix The square matrix B.
System.Int32[] columnVector The column vector c.
Returns
Type Description
System.Int32 The product a*B*c of the given vector a, matrix B and vector c.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[][], Double[], Int32[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[][] DotWithDiagonal(this double[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[][], Int32[], Double[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[][] DotWithDiagonal(this double[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[][], Int32[], Int32[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[][] DotWithDiagonal(this double[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[][], Int32[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[][] DotWithDiagonal(this double[][] a, int[] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[,], Double[], Int32[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] DotWithDiagonal(this double[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[,], Int32[], Double[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] DotWithDiagonal(this double[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[,], Int32[], Int32[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] DotWithDiagonal(this double[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Double[,], Int32[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] DotWithDiagonal(this double[, ] a, int[] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[,] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Double[], Double[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[][] DotWithDiagonal(this int[][] a, double[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Double[], Int32[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[][] DotWithDiagonal(this int[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Double[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[][] DotWithDiagonal(this int[][] a, double[] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Int32[], Double[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[][] DotWithDiagonal(this int[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Int32[], Int32[][])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[][] DotWithDiagonal(this int[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[][], Int32[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[][] DotWithDiagonal(this int[][] a, int[] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Int32[][] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Double[], Double[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] DotWithDiagonal(this int[, ] a, double[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Double[], Int32[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] DotWithDiagonal(this int[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Double[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] DotWithDiagonal(this int[, ] a, double[] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Int32[], Double[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] DotWithDiagonal(this int[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Int32[], Int32[,])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] DotWithDiagonal(this int[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithDiagonal(Int32[,], Int32[])

Computes the product A*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] DotWithDiagonal(this int[, ] a, int[] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Int32[,] The product A*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Double[][], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this double[] rowVector, double[][] b, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Double[][])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, double[][] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Double[][] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Double[,], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this double[] rowVector, double[, ] b, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Double[,])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, double[, ] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Double[,] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[][], 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, int[][] b, double[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[][], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this double[] rowVector, int[][] b, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[][])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, int[][] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[,], 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, int[, ] b, double[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[,], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this double[] rowVector, int[, ] b, int[] result)
Parameters
Type Name Description
System.Double[] rowVector The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[], Int32[,])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this double[] rowVector, int[, ] b)
Parameters
Type Name Description
System.Double[] rowVector The left vector a.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Double[], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, double[] columnVector, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[] columnVector The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Double[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Double[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[], 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, int[] columnVector, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, int[] columnVector, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] columnVector The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static double[][] DotWithTransposed(this double[][] a, int[] columnVector)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Double[][] The product A*B' of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[][], 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, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this double[][] a, int[][] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Double[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[,], 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, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[][], Int32[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this double[][] a, int[, ] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Double[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Double[], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this double[, ] a, double[] columnVector, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[] columnVector The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Double[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Double[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this double[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[], 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, int[] columnVector, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this double[, ] a, int[] columnVector, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] columnVector The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static double[, ] DotWithTransposed(this double[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Double[,] The product A*B' of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[][], 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, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this double[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this double[, ] a, int[][] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Double[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[,], 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, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this double[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Double[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[, ] DotWithTransposed(this double[, ] a, int[, ] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Double[,] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], 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 int[] rowVector, double[][] b, double[] result)
Parameters
Type Name Description
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Double[][], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, double[][] b, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Double[][])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this int[] rowVector, double[][] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Double[][] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], 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 int[] rowVector, double[, ] b, double[] result)
Parameters
Type Name Description
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Double[,], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, double[, ] b, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Double[,])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static double[] DotWithTransposed(this int[] rowVector, double[, ] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Double[,] b The transposed right matrix B.
Returns
Type Description
System.Double[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[][], 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 int[] rowVector, int[][] b, double[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[][], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, int[][] b, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[][])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, int[][] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Int32[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[,], 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 int[] rowVector, int[, ] b, double[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[,], Int32[])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, int[, ] b, int[] result)
Parameters
Type Name Description
System.Int32[] rowVector The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[], Int32[,])

Computes the product a*B' of row vector a and transpose of B.
Declaration
public static int[] DotWithTransposed(this int[] rowVector, int[, ] b)
Parameters
Type Name Description
System.Int32[] rowVector The left vector a.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Int32[] The product a*B' of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], 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 int[][] a, double[] columnVector, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, double[] columnVector, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[] columnVector The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static double[][] DotWithTransposed(this int[][] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], 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 int[][] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this int[][] a, double[][] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], 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 int[][] a, double[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Double[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this int[][] a, double[, ] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[], 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 int[][] a, int[] columnVector, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[] columnVector, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] columnVector The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Int32[][] The product A*B' of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[][], 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 int[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[][] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Int32[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[,], 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 int[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[][], Int32[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static int[][] DotWithTransposed(this int[][] a, int[, ] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Int32[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], 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 int[, ] a, double[] columnVector, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, double[] columnVector, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[] columnVector The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static double[, ] DotWithTransposed(this int[, ] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], 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 int[, ] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[][] DotWithTransposed(this int[, ] a, double[][] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], 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 int[, ] a, double[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[,] b The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Double[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static double[, ] DotWithTransposed(this int[, ] a, double[, ] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[], 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 int[, ] a, int[] columnVector, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, int[] columnVector, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] columnVector The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[])

Computes the product A*b' of matrix A and transpose of b.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] columnVector The right vector b.
Returns
Type Description
System.Int32[,] The product A*B' of the given matrix A and vector b.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[][], 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 int[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[][], Int32[][])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[][] DotWithTransposed(this int[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[][])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static int[][] DotWithTransposed(this int[, ] a, int[][] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[][] b The transposed right matrix B.
Returns
Type Description
System.Int32[][] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[,], 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 int[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B, storing the result in matrix R.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B' of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

DotWithTransposed(Int32[,], Int32[,])

Computes the product A*B' of matrix A and transpose of B.
Declaration
public static int[, ] DotWithTransposed(this int[, ] a, int[, ] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[,] b The transposed right matrix B.
Returns
Type Description
System.Int32[,] The product A*B' of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array The array.
System.Int32 dimension The index where the dimension should be added.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Func<T, System.Boolean> func The search criteria.
Returns
Type Description
System.Int32[]
Type Parameters
Name Description
T The type of the array.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Func<T, System.Boolean> func The search criteria.
Returns
Type Description
System.Int32[][]
Type Parameters
Name Description
T The type of the array.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Func<T, System.Boolean> func The search criteria.
Returns
Type Description
System.Int32
Type Parameters
Name Description
T The type of the array.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Flatten(Array, MatrixOrder)

Transforms a tensor into a single vector.
Declaration
public static Array Flatten(this Array array, MatrixOrder order = MatrixOrder.CRowMajor)
Parameters
Type Name Description
System.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
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Flatten<T>(T[,], MatrixOrder)

Transforms a matrix into a single vector.
Declaration
public static T[] Flatten<T>(this T[, ] matrix, MatrixOrder order = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Floor(Double[])

Returns the largest integer less than or equal than to the specified double-precision floating-point number for each element of the array.
Declaration
public static double[] Floor(double[] vector)
Parameters
Type Name Description
System.Double[] vector
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Floor(Double[,])

Returns the largest integer less than or equal than to the specified double-precision floating-point number for each element of the matrix.
Declaration
public static double[, ] Floor(this double[, ] matrix)
Parameters
Type Name Description
System.Double[,] matrix
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Get(Array, Int32, Int32, Int32)

Returns a sub-tensor extracted from the current tensor.
Declaration
public static Array Get(this Array source, int dimension, int start, int end)
Parameters
Type Name Description
System.Array source The tensor to return the sub-vector 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
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Get(Array, Int32, Int32)

Returns a sub-tensor extracted from the current tensor.
Declaration
public static Array Get(this Array source, int dimension, int index)
Parameters
Type Name Description
System.Array source The tensor to return the sub-vector from.
System.Int32 dimension The dimension from which the indices should be extracted.
System.Int32 index The index.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array source The tensor to return the sub-vector from.
System.Int32 dimension The dimension from which the indices should be extracted.
System.Int32[] indices Array of indices.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Get<T>(T[], IList<Int32>)

Returns a sub-vector 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 sub-vector from.
System.Collections.Generic.IList<System.Int32> indexes Array of indices.
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

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

Returns a sub-vector 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 sub-vector from.
System.Int32 startRow Starting index.
System.Int32 endRow End index.
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Get<T>(T[], Int32[], Boolean)

Returns a sub-vector 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 sub-vector 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix from.
System.Int32 startRow Starting row index
System.Int32 endRow End row index
System.Int32[] columnIndexes Array of column indices
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix from.
System.Int32[] indexes Array of indices.
System.Boolean transpose True to return a transposed matrix; false otherwise.
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix from.
System.Int32 startRow Starting row index
System.Int32 endRow End row index
System.Int32[] columnIndexes Array of column indices
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix from.
System.Int32[] rowIndexes Array of row indices
System.Int32 startColumn Start column index
System.Int32 endColumn End column index
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix from.
System.Int32[] rowIndexes Array of row indices
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Get<T>(List<T>, Int32[])

Returns a sub-vector extracted from the current vector.
Declaration
public static List<T> Get<T>(this List<T> source, int[] indexes)
Parameters
Type Name Description
System.Collections.Generic.List<T> source The vector to return the sub-vector from.
System.Int32[] indexes Array of indices.
Returns
Type Description
System.Collections.Generic.List<T>
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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)
Parameters
Type Name Description
T[][] m
System.Int32[] index
T[][] result
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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)
Parameters
Type Name Description
T[,] m
System.Int32[] index
T[,] result
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
Parameters
Type Name Description
System.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
System.Collections.Generic.IEnumerable<System.Int32[]> An enumerable object that can be used to iterate over all positions of the given array.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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
GetIndices<T>(T[])
| Improve this Doc 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
System.Array array The array whose element type should be computed.
Returns
Type Description
System.Type
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

GetRange(Double[])

Gets the maximum and minimum values in a vector.
Declaration
public static DoubleRange GetRange(this double[] values)
Parameters
Type Name Description
System.Double[] values The vector whose min and max should be computed.
Returns
Type Description
DoubleRange
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

GetRange(Double[,], Int32)

Gets the range of the values across the columns of a matrix.
Declaration
public static DoubleRange[] 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
Type Description
DoubleRange[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

GetRange(Double[,])

Gets the maximum and minimum values in a vector.
Declaration
public static DoubleRange GetRange(this double[, ] values)
Parameters
Type Name Description
System.Double[,] values The vector whose min and max should be computed.
Returns
Type Description
DoubleRange
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

GetRange(Int32[])

Gets the maximum and minimum values in a vector.
Declaration
public static IntRange GetRange(this int[] values)
Parameters
Type Name Description
System.Int32[] values The vector whose min and max should be computed.
Returns
Type Description
IntRange
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

GetRange(Int32[,])

Gets the maximum and minimum values in a vector.
Declaration
public static IntRange GetRange(this int[, ] values)
Parameters
Type Name Description
System.Int32[,] values The vector whose min and max should be computed.
Returns
Type Description
IntRange
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
Exceptions
Type Condition
System.ArgumentException Raised if the array is empty.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array
System.Boolean deep
System.Boolean rectangular
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
TSource
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Array, Array, Double, Double)

Compares two matrices for equality.
Declaration
public static bool IsEqual(this Array objA, Array objB, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Array objA
System.Array objB
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = 0, double rtol = 0)
Parameters
Type Name Description
System.Double a
System.Double b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Double, Int32, Double, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this double a, int b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Double a
System.Int32 b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[] a
System.Double[] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Double[], Int32[], Double, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this double[] a, int[] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[][] a
System.Double[][] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Double[][], Int32[][], Double, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this double[][] a, int[][] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[][] a
System.Int32[][] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[,] a
System.Double[,] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Double[,], Int32[,], Double, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this double[, ] a, int[, ] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Double[,] a
System.Int32[,] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32, Double, Double, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this int a, double b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32 a
System.Double b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32, Int32, Int32, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this int a, int b, int atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32 a
System.Int32 b
System.Int32 atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[], Double[], Double, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this int[] a, double[] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[], Int32[], Int32, Double)

Determines whether two vectors contain the same values.
Declaration
public static bool IsEqual(this int[] a, int[] b, int atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Int32 atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[][], Double[][], Double, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this int[][] a, double[][] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[][] a
System.Double[][] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[][], Int32[][], Int32, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this int[][] a, int[][] b, int atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[][] a
System.Int32[][] b
System.Int32 atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[,], Double[,], Double, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this int[, ] a, double[, ] b, double atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[,] a
System.Double[,] b
System.Double atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Int32[,], Int32[,], Int32, Double)

Determines whether two matrices contain the same values.
Declaration
public static bool IsEqual(this int[, ] a, int[, ] b, int atol = 0, double rtol = 0)
Parameters
Type Name Description
System.Int32[,] a
System.Int32[,] b
System.Int32 atol
System.Double rtol
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsEqual(Object, Object, Decimal, Decimal)

Compares two values for equality, considering a relative acceptance threshold.
Declaration
public static bool IsEqual(this object objA, object objB, decimal atol = 0M, decimal rightTolerances = 0M)
Parameters
Type Name Description
System.Object objA
System.Object objB
System.Decimal atol
System.Decimal rightTolerances
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = 1.49322178960515E-300)
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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Type type
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsMatrix(Array)

Determines whether an array is an multidimensional array.
Declaration
public static bool IsMatrix(this Array array)
Parameters
Type Name Description
System.Array array
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IEnumerable<T[]> matrix The matrix.
Returns
Type Description
System.Boolean true if the specified matrix is rectangular; otherwise, false.
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsSquare(Array)

Returns true if a tensor is square.
Declaration
public static bool IsSquare(this Array array)
Parameters
Type Name Description
System.Array array
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

IsVector(Array)

Determines whether an array is a vector.
Declaration
public static bool IsVector(this Array array)
Parameters
Type Name Description
System.Array array
Returns
Type Description
System.Boolean
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[], Double[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static int[] Kronecker(this double[] a, double[] b, int[] result)
Parameters
Type Name Description
System.Double[] a The left vector a.
System.Double[] b The right vector b.
System.Int32[] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[], Int32[], Double[])

Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this double[] a, int[] b, double[] result)
Parameters
Type Name Description
System.Double[] a The left vector a.
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[], Int32[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static int[] Kronecker(this double[] a, int[] b, int[] result)
Parameters
Type Name Description
System.Double[] a The left vector a.
System.Int32[] b The right vector b.
System.Int32[] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this double[] a, int[] b)
Parameters
Type Name Description
System.Double[] a The left vector a.
System.Int32[] b The right vector b.
Returns
Type Description
System.Double[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Double[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Double[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Double[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Double[,] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, int[][] b)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[][] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[,], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[,] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[][], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[][] a, int[, ] b)
Parameters
Type Name Description
System.Double[][] a The left matrix a.
System.Int32[,] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Double[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Double[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Double[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[, ] Kronecker(this double[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Double[,] b The right matrix b.
System.Int32[,] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this double[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this double[, ] a, int[][] b)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[][] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[,], Double[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this double[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[, ] Kronecker(this double[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[,] b The right matrix b.
System.Int32[,] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Double[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this double[, ] a, int[, ] b)
Parameters
Type Name Description
System.Double[,] a The left matrix a.
System.Int32[,] b The right matrix b.
Returns
Type Description
System.Double[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Double[], Double[])

Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this int[] a, double[] b, double[] result)
Parameters
Type Name Description
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Double[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static int[] Kronecker(this int[] a, double[] b, int[] result)
Parameters
Type Name Description
System.Int32[] a The left vector a.
System.Double[] b The right vector b.
System.Int32[] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Double[])

Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this int[] a, double[] b)
Parameters
Type Name Description
System.Int32[] a The left vector a.
System.Double[] b The right vector b.
Returns
Type Description
System.Double[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Int32[], Double[])

Computes the Kronecker product between two vectors.
Declaration
public static double[] Kronecker(this int[] a, int[] b, double[] result)
Parameters
Type Name Description
System.Int32[] a The left vector a.
System.Int32[] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Int32[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static int[] Kronecker(this int[] a, int[] b, int[] result)
Parameters
Type Name Description
System.Int32[] a The left vector a.
System.Int32[] b The right vector b.
System.Int32[] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[], Int32[])

Computes the Kronecker product between two vectors.
Declaration
public static int[] Kronecker(this int[] a, int[] b)
Parameters
Type Name Description
System.Int32[] a The left vector a.
System.Int32[] b The right vector b.
Returns
Type Description
System.Int32[] The Kronecker product of the two vectors.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Double[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, double[][] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Double[][] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[,], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, double[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Double[,] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Double[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, double[, ] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Double[,] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, int[][] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[][] b The right matrix b.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[,], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[,] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[][], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[][] a, int[, ] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix a.
System.Int32[,] b The right matrix b.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[, ] a, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Double[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[, ] a, double[][] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Double[][] b The right matrix b.
Returns
Type Description
System.Double[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[,], Double[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this int[, ] a, double[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[, ] Kronecker(this int[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Double[,] b The right matrix b.
System.Int32[,] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Double[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this int[, ] a, double[, ] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Double[,] b The right matrix b.
Returns
Type Description
System.Double[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[][], Double[][])

Computes the Kronecker product between two matrices.
Declaration
public static double[][] Kronecker(this int[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[][], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[][] b The right matrix b.
System.Int32[][] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[][])

Computes the Kronecker product between two matrices.
Declaration
public static int[][] Kronecker(this int[, ] a, int[][] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[][] b The right matrix b.
Returns
Type Description
System.Int32[][] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[,], Double[,])

Computes the Kronecker product between two matrices.
Declaration
public static double[, ] Kronecker(this int[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[, ] Kronecker(this int[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[,] b The right matrix b.
System.Int32[,] result The matrix R to store the Kronecker product between matrices A and B.
Returns
Type Description
System.Int32[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Kronecker(Int32[,], Int32[,])

Computes the Kronecker product between two matrices.
Declaration
public static int[, ] Kronecker(this int[, ] a, int[, ] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix a.
System.Int32[,] b The right matrix b.
Returns
Type Description
System.Int32[,] The Kronecker product of the two matrices.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32> imax
Returns
Type Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Tuple<System.Int32, System.Int32> imax
Returns
Type Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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
);
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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 },
};
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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) |
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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> minimumIthIndex)
    where T : IComparable<T>
Parameters
Type Name Description
T[][] matrix
System.Tuple<System.Int32, System.Int32> minimumIthIndex
Returns
Type Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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> minimumIthIndex)
    where T : IComparable<T>
Parameters
Type Name Description
T[,] matrix
System.Tuple<System.Int32, System.Int32> minimumIthIndex
Returns
Type Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Double[], Int32[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[][] Outer(this double[] a, double[] b, int[][] result)
Parameters
Type Name Description
System.Double[] a
System.Double[] b
System.Int32[][] result
Returns
Type Description
System.Int32[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Double[], Int32[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[, ] Outer(this double[] a, double[] b, int[, ] result)
Parameters
Type Name Description
System.Double[] a
System.Double[] b
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Int32[], Double[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[][] Outer(this double[] a, int[] b, double[][] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Double[][] result
Returns
Type Description
System.Double[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Int32[], Double[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this double[] a, int[] b, double[, ] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Double[,] result
Returns
Type Description
System.Double[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Int32[], Int32[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[][] Outer(this double[] a, int[] b, int[][] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Int32[][] result
Returns
Type Description
System.Int32[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Int32[], Int32[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[, ] Outer(this double[] a, int[] b, int[, ] result)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Double[], Int32[])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this double[] a, int[] b)
Parameters
Type Name Description
System.Double[] a
System.Int32[] b
Returns
Type Description
System.Double[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Double[], Double[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[][] Outer(this int[] a, double[] b, double[][] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Double[][] result
Returns
Type Description
System.Double[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Double[], Double[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this int[] a, double[] b, double[, ] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Double[,] result
Returns
Type Description
System.Double[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Double[], Int32[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[][] Outer(this int[] a, double[] b, int[][] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Int32[][] result
Returns
Type Description
System.Int32[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Double[], Int32[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[, ] Outer(this int[] a, double[] b, int[, ] result)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Double[])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this int[] a, double[] b)
Parameters
Type Name Description
System.Int32[] a
System.Double[] b
Returns
Type Description
System.Double[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Int32[], Double[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[][] Outer(this int[] a, int[] b, double[][] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Double[][] result
Returns
Type Description
System.Double[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Int32[], Double[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static double[, ] Outer(this int[] a, int[] b, double[, ] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Double[,] result
Returns
Type Description
System.Double[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Int32[], Int32[][])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[][] Outer(this int[] a, int[] b, int[][] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Int32[][] result
Returns
Type Description
System.Int32[][]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Int32[], Int32[,])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[, ] Outer(this int[] a, int[] b, int[, ] result)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Outer(Int32[], Int32[])

Gets the outer product (matrix product) between two vectors (a*bT).
Declaration
public static int[, ] Outer(this int[] a, int[] b)
Parameters
Type Name Description
System.Int32[] a
System.Int32[] b
Returns
Type Description
System.Int32[,]
Remarks
In linear algebra, the outer product typically refers to the tensor product of two vectors. The result of applying the outer product to a pair of vectors is a matrix. The name contrasts with the inner product, which takes as input a pair of vectors and produces a scalar.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[])

Vector product.
Declaration
public static int Product(this bool[] vector)
Parameters
Type Name Description
System.Boolean[] vector A vector whose product will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[][], Int32, Double[])

Matrix product.
Declaration
public static double[] Product(this bool[][] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Boolean[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[][], Int32, Int32[])

Matrix product.
Declaration
public static int[] Product(this bool[][] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Boolean[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[][], Int32)

Matrix product.
Declaration
public static int[] Product(this bool[][] matrix, int dimension)
Parameters
Type Name Description
System.Boolean[][] matrix A matrix whose product will be calculated.
System.Int32 dimension The dimension in which the product will be calculated.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[][])

Matrix sum.
Declaration
public static int Product(this bool[][] matrix)
Parameters
Type Name Description
System.Boolean[][] matrix A matrix whose sums will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[,], Int32, Double[])

Matrix product.
Declaration
public static double[] Product(this bool[, ] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Boolean[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[,], Int32, Int32[])

Matrix product.
Declaration
public static int[] Product(this bool[, ] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Boolean[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[,], Int32)

Matrix product.
Declaration
public static int[] Product(this bool[, ] matrix, int dimension)
Parameters
Type Name Description
System.Boolean[,] matrix A matrix whose product will be calculated.
System.Int32 dimension The dimension in which the product will be calculated.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Boolean[,])

Matrix product.
Declaration
public static int Product(this bool[, ] matrix)
Parameters
Type Name Description
System.Boolean[,] matrix A matrix whose product will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[])

Vector product.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[][], Int32, Double[])

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[][], Int32, Int32[])

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[][], Int32)

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[][])

Matrix sum.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[,], Int32, Double[])

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[,], Int32, Int32[])

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[,], Int32)

Matrix product.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Double[,])

Matrix product.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[])

Vector product.
Declaration
public static int Product(this int[] vector)
Parameters
Type Name Description
System.Int32[] vector A vector whose product will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[][], Int32, Double[])

Matrix product.
Declaration
public static double[] Product(this int[][] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[][], Int32, Int32[])

Matrix product.
Declaration
public static int[] Product(this int[][] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[][], Int32)

Matrix product.
Declaration
public static int[] Product(this int[][] matrix, int dimension)
Parameters
Type Name Description
System.Int32[][] matrix A matrix whose product will be calculated.
System.Int32 dimension The dimension in which the product will be calculated.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[][])

Matrix sum.
Declaration
public static int Product(this int[][] matrix)
Parameters
Type Name Description
System.Int32[][] matrix A matrix whose sums will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[,], Int32, Double[])

Matrix product.
Declaration
public static double[] Product(this int[, ] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[,], Int32, Int32[])

Matrix product.
Declaration
public static int[] Product(this int[, ] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[,], Int32)

Matrix product.
Declaration
public static int[] Product(this int[, ] matrix, int dimension)
Parameters
Type Name Description
System.Int32[,] matrix A matrix whose product will be calculated.
System.Int32 dimension The dimension in which the product will be calculated.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Product(Int32[,])

Matrix product.
Declaration
public static int Product(this int[, ] matrix)
Parameters
Type Name Description
System.Int32[,] matrix A matrix whose product will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Random(Int32, Int32, Int32, Boolean, Int32[,])

Creates a matrix with uniformly distributed random data.
Declaration
public static int[, ] Random(int size, int min, int max, bool symmetric = false, int[, ] result = null)
Parameters
Type Name Description
System.Int32 size
System.Int32 min
System.Int32 max
System.Boolean symmetric
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Random(Int32, Int32, Int32, Int32, Int32[,])

Creates a matrix with uniformly distributed random data.
Declaration
public static int[, ] Random(int rows, int columns, int min, int max, int[, ] result = null)
Parameters
Type Name Description
System.Int32 rows
System.Int32 columns
System.Int32 min
System.Int32 max
System.Int32[,] result
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Type Name Description
System.Int32 rows
System.Int32 cols
Mars.Common.Core.Random.IRandomNumberGenerator<T> generator
T[,] result
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
Parameters
Type Name Description
System.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
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
Parameters
Type Name Description
T[] array
System.Int32 rows
System.Int32 cols
T[,] result
MatrixOrder order
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
Parameters
Type Name Description
T[] array
System.Int32 rows
System.Int32 cols
MatrixOrder order
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Reshape<T>(T[,], MatrixOrder)

Transforms a matrix into a single vector.
Declaration
public static T[] Reshape<T>(this T[, ] matrix, MatrixOrder order = MatrixOrder.CRowMajor)
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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IList<System.Collections.Generic.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array destination The matrix where elements will be set.
System.Int32 dimension The dimension where indices refer to.
System.Int32 index The index.
System.Array value The matrix of values to which matrix elements will be set.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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.
System.Array value The matrix of values to which matrix elements will be set.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

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

Sets a sub-vector 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 sub-vector 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

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

Sets a sub-vector 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 sub-vector 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Set<T>(List<T>, T, Int32[])

Sets a sub-vector to the given value.
Declaration
public static void Set<T>(this List<T> destination, T value, int[] indices)
Parameters
Type Name Description
System.Collections.Generic.List<T> destination The vector to return the sub-vector from.
T value The matrix of values to which matrix elements will be set.
System.Int32[] indices Array of indices.
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

SetEquals<T>(IEnumerable<T>, IEnumerable<T>)

Compares two enumerator's for set equality. Two enumerator's 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
System.Collections.Generic.IEnumerable<T> list1 The first set.
System.Collections.Generic.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Collections.Generic.IComparer<TKey> comparer The comparer to use.
Returns
Type Description
TValue[][]
Type Parameters
Name Description
TKey
TValue
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
System.Collections.Generic.IComparer<TKey> comparer The comparer to use.
Returns
Type Description
TValue[,]
Type Parameters
Name Description
TKey
TValue
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
Create<T>(Int32, Int32, T)
| Improve this Doc View Source

Squeeze(Array)

Removes dimensions of length 1 from the array.
Declaration
public static Array Squeeze(this Array array)
Parameters
Type Name Description
System.Array array The array.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 sub-matrix 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[])

Vector sum.
Declaration
public static int Sum(this bool[] vector)
Parameters
Type Name Description
System.Boolean[] vector A vector whose sum will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[][], Int32, Double[])

Matrix sum.
Declaration
public static double[] Sum(this bool[][] matrix, int dimension, double[] 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.Double[] result A location where the result of this operation will be stored, avoiding unnecessary memory allocations.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[][], Int32, Int32[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[][], Int32)

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[][])

Matrix sum.
Declaration
public static int Sum(this bool[][] matrix)
Parameters
Type Name Description
System.Boolean[][] matrix A matrix whose sums will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[,], Int32, Double[])

Matrix sum.
Declaration
public static double[] Sum(this bool[, ] matrix, int dimension, double[] 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.Double[] result A location where the result of this operation will be stored, avoiding unnecessary memory allocations.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[,], Int32, Int32[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[,], Int32)

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Boolean[,])

Matrix sum.
Declaration
public static int Sum(this bool[, ] matrix)
Parameters
Type Name Description
System.Boolean[,] matrix A matrix whose sum will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[])

Vector sum.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[][], Int32, Double[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[][], Int32, Int32[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[][], Int32)

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[][])

Matrix sum.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[,], Int32, Double[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[,], Int32, Int32[])

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[,], Int32)

Matrix sum.
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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Double[,])

Matrix sum.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[])

Vector sum.
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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[][], Int32, Double[])

Matrix sum.
Declaration
public static double[] Sum(this int[][] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[][], Int32, Int32[])

Matrix sum.
Declaration
public static int[] Sum(this int[][] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[][], Int32)

Matrix sum.
Declaration
public static int[] Sum(this int[][] matrix, int dimension)
Parameters
Type Name Description
System.Int32[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[][])

Matrix sum.
Declaration
public static int Sum(this int[][] matrix)
Parameters
Type Name Description
System.Int32[][] matrix A matrix whose sums will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[,], Int32, Double[])

Matrix sum.
Declaration
public static double[] Sum(this int[, ] matrix, int dimension, double[] result)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[,], Int32, Int32[])

Matrix sum.
Declaration
public static int[] Sum(this int[, ] matrix, int dimension, int[] result)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[,], Int32)

Matrix sum.
Declaration
public static int[] Sum(this int[, ] matrix, int dimension)
Parameters
Type Name Description
System.Int32[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Sum(Int32[,])

Matrix sum.
Declaration
public static int Sum(this int[, ] matrix)
Parameters
Type Name Description
System.Int32[,] matrix A matrix whose sum will be calculated.
Returns
Type Description
System.Int32
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array The vector or array to be converted.
System.Type outputType The type of the output.
Returns
Type Description
System.Object
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array The vector or array to be converted.
Returns
Type Description
TOutput
Type Parameters
Name Description
TOutput The type of the output.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray(DataColumn, IFormatProvider)

Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataColumn column, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataColumn column
System.IFormatProvider provider
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray(DataColumn)

Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataColumn column)
Parameters
Type Name Description
System.Data.DataColumn column
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray(DataRow, IFormatProvider, String[])

Converts a DataColumn to a double[] array.
Declaration
public static double[] ToArray(this DataRow row, IFormatProvider provider, params string[] colNames)
Parameters
Type Name Description
System.Data.DataRow row
System.IFormatProvider provider
System.String[] colNames
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataRow row
System.String[] colNames
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray<T>(DataColumn, IFormatProvider)

Converts a DataColumn to a double[] array.
Declaration
public static T[] ToArray<T>(this DataColumn column, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataColumn column
System.IFormatProvider provider
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataColumn column
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray<T>(DataRow, IFormatProvider, String[])

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
System.Data.DataRow row
System.IFormatProvider provider
System.String[] colNames
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataRow row
System.String[] colNames
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToArray<T>(DataTable, IFormatProvider, String)

Converts a DataTable to a generic array.
Declaration
public static T[] ToArray<T>(this DataTable table, IFormatProvider provider, string columnName)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
System.String columnName
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String columnName
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToJagged(DataTable, IFormatProvider, out String[])

Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, IFormatProvider provider, out string[] columnNames)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
System.String[] columnNames
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToJagged(DataTable, IFormatProvider)

Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToJagged(DataTable)

Converts a DataTable to a double[][] array.
Declaration
public static double[][] ToJagged(this DataTable table)
Parameters
Type Name Description
System.Data.DataTable table
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Collections.Generic.IList<System.Collections.Generic.IList<T>> values
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToJagged<T>(DataTable, IFormatProvider, out String[])

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
System.Data.DataTable table
System.IFormatProvider provider
System.String[] columnNames
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToJagged<T>(DataTable, IFormatProvider)

Converts a DataTable to a T[][] array.
Declaration
public static T[][] ToJagged<T>(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
Returns
Type Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix(DataTable, IFormatProvider)

Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix(DataTable)

Converts a DataTable to a double[,] array.
Declaration
public static double[, ] ToMatrix(this DataTable table)
Parameters
Type Name Description
System.Data.DataTable table
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix<T>(IList<IList<T>>)

Converts a matrix represented as a nested list of lists into a multi-dimensional matrix.
Declaration
public static T[, ] ToMatrix<T>(this IList<IList<T>> values)
Parameters
Type Name Description
System.Collections.Generic.IList<System.Collections.Generic.IList<T>> values
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix<T>(DataTable, IFormatProvider, String[])

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
System.Data.DataTable table
System.IFormatProvider provider
System.String[] columnNames
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix<T>(DataTable, IFormatProvider)

Converts a DataTable to a double[,] array.
Declaration
public static T[, ] ToMatrix<T>(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToMatrix<T>(DataTable, out String[], IFormatProvider)

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
System.Data.DataTable table
System.String[] columnNames
System.IFormatProvider provider
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String[] columnNames
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
Returns
Type Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToTable(Object[,], String[])

Converts an array of values into a System.Data.DataTable, 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
System.Data.DataTable A System.Data.DataTable containing the given values.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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();
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToTable(Object[,])

Converts an array of values into a System.Data.DataTable, 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
System.Data.DataTable A System.Data.DataTable containing the given values.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
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();
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[][]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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 Description
T[,]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToVector(DataTable, IFormatProvider, out String)

Converts a DataTable to a double[] array.
Declaration
public static double[] ToVector(this DataTable table, IFormatProvider provider, out string columnName)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
System.String columnName
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToVector(DataTable, IFormatProvider)

Converts a DataTable to a double[] array.
Declaration
public static double[] ToVector(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String columnName
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String columnName
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToVector(DataTable)

Converts a DataTable to a double[][] array.
Declaration
public static double[] ToVector(this DataTable table)
Parameters
Type Name Description
System.Data.DataTable table
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToVector<T>(DataTable, IFormatProvider, out String)

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
System.Data.DataTable table
System.IFormatProvider provider
System.String columnName
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

ToVector<T>(DataTable, IFormatProvider)

Converts a DataTable to a double[] array.
Declaration
public static T[] ToVector<T>(this DataTable table, IFormatProvider provider)
Parameters
Type Name Description
System.Data.DataTable table
System.IFormatProvider provider
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String columnName
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
System.String columnName
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Data.DataTable table
Returns
Type Description
T[]
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right) of A.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Remarks
The trace of an n-by-n square matrix A is defined to be the sum of the elements on the main diagonal (the diagonal from the upper left to the lower right) of A.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array A tensor.
System.Int32[] order The new order for the tensor's dimensions.
Returns
Type Description
System.Array The transpose of the given tensor.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Transpose(Array)

Gets the generalized transpose of a tensor.
Declaration
public static Array Transpose(this Array array)
Parameters
Type Name Description
System.Array array A tensor.
Returns
Type Description
System.Array The transpose of the given tensor.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Transpose<T>(T[,], Boolean)

Gets the transpose of a matrix.
Declaration
public static T[, ] Transpose<T>(this T[, ] matrix, bool inPlace = false)
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
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Double[][], Int32[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[][] TransposeAndDot(this double[] rowVector, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Double[][] b The right column vector b.
System.Int32[][] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Double[][])

Computes the product a'*B of column vector a and B.
Declaration
public static double[][] TransposeAndDot(this double[] columnVector, double[][] b)
Parameters
Type Name Description
System.Double[] columnVector The column vector a.
System.Double[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Double[,], Int32[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[, ] TransposeAndDot(this double[] rowVector, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Double[,] b The right column vector b.
System.Int32[,] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Double[,])

Computes the product a'*B of column vector a and B.
Declaration
public static double[, ] TransposeAndDot(this double[] columnVector, double[, ] b)
Parameters
Type Name Description
System.Double[] columnVector The column vector a.
System.Double[,] b The right matrix B.
Returns
Type Description
System.Double[,] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[][], Double[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[][] TransposeAndDot(this double[] rowVector, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[][], Int32[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[][] TransposeAndDot(this double[] rowVector, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Int32[][] b The right column vector b.
System.Int32[][] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[][])

Computes the product a'*B of column vector a and B.
Declaration
public static double[][] TransposeAndDot(this double[] columnVector, int[][] b)
Parameters
Type Name Description
System.Double[] columnVector The column vector a.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[,], Double[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[, ] TransposeAndDot(this double[] rowVector, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[,], Int32[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[, ] TransposeAndDot(this double[] rowVector, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[] rowVector The transposed left matrix A.
System.Int32[,] b The right column vector b.
System.Int32[,] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[], Int32[,])

Computes the product a'*B of column vector a and B.
Declaration
public static double[, ] TransposeAndDot(this double[] columnVector, int[, ] b)
Parameters
Type Name Description
System.Double[] columnVector The column vector a.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[,] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][] matrix, double[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[][] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Double[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this double[][] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[][] matrix The transposed left matrix A.
System.Double[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Double[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this double[][] a, double[] columnVector)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Double[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Double[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Double[,], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Double[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[], Double[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[] TransposeAndDot(this double[][] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[][] matrix The transposed left matrix A.
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this double[][] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[][] matrix The transposed left matrix A.
System.Int32[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this double[][] a, int[] columnVector)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[][], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this double[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this double[][] a, int[][] b)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[,], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this double[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[,], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[][], Int32[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this double[][] a, int[, ] b)
Parameters
Type Name Description
System.Double[][] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[, ] matrix, double[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[,] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Double[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this double[, ] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[,] matrix The transposed left matrix A.
System.Double[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Double[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this double[, ] a, double[] columnVector)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Double[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Double[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Double[,], Int32[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[, ] TransposeAndDot(this double[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Double[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[], Double[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[] TransposeAndDot(this double[, ] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Double[,] matrix The transposed left matrix A.
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this double[, ] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Double[,] matrix The transposed left matrix A.
System.Int32[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this double[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[][], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this double[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this double[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this double[, ] a, int[][] b)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[,], Double[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[, ] TransposeAndDot(this double[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[,], Int32[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[, ] TransposeAndDot(this double[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Double[,], Int32[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[, ] TransposeAndDot(this double[, ] a, int[, ] b)
Parameters
Type Name Description
System.Double[,] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Double[,] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[] rowVector, double[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Double[][], Int32[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[][] TransposeAndDot(this int[] rowVector, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Double[][] b The right column vector b.
System.Int32[][] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Double[][])

Computes the product a'*B of column vector a and B.
Declaration
public static double[][] TransposeAndDot(this int[] columnVector, double[][] b)
Parameters
Type Name Description
System.Int32[] columnVector The column vector a.
System.Double[][] b The right matrix B.
Returns
Type Description
System.Double[][] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[] rowVector, double[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Double[,], Int32[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[, ] TransposeAndDot(this int[] rowVector, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Double[,] b The right column vector b.
System.Int32[,] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Double[,])

Computes the product a'*B of column vector a and B.
Declaration
public static double[, ] TransposeAndDot(this int[] columnVector, double[, ] b)
Parameters
Type Name Description
System.Int32[] columnVector The column vector a.
System.Double[,] b The right matrix B.
Returns
Type Description
System.Double[,] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[][], Double[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[][] TransposeAndDot(this int[] rowVector, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[][], Int32[][])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[][] TransposeAndDot(this int[] rowVector, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Int32[][] b The right column vector b.
System.Int32[][] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[][])

Computes the product a'*B of column vector a and B.
Declaration
public static int[][] TransposeAndDot(this int[] columnVector, int[][] b)
Parameters
Type Name Description
System.Int32[] columnVector The column vector a.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[][] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[,], Double[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[, ] TransposeAndDot(this int[] rowVector, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[,], Int32[,])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[, ] TransposeAndDot(this int[] rowVector, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[] rowVector The transposed left matrix A.
System.Int32[,] b The right column vector b.
System.Int32[,] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[], Int32[,])

Computes the product a'*B of column vector a and B.
Declaration
public static int[, ] TransposeAndDot(this int[] columnVector, int[, ] b)
Parameters
Type Name Description
System.Int32[] columnVector The column vector a.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[,] The product a'*B of the given vector a and matrix B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this int[][] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[][] matrix The transposed left matrix A.
System.Double[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this int[][] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Double[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this int[][] a, double[][] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[,], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, double[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Double[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Double[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this int[][] a, double[, ] b)
Parameters
Type Name Description
System.Int32[][] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[], Double[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[] TransposeAndDot(this int[][] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[][] matrix The transposed left matrix A.
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this int[][] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[][] matrix The transposed left matrix A.
System.Int32[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[] TransposeAndDot(this int[][] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[] columnVector The right matrix B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[][], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this int[][] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, int[][] b)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[,], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this int[][] a, int[, ] b, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[,] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[,], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, int[, ] b, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[][], Int32[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static int[][] TransposeAndDot(this int[][] a, int[, ] b)
Parameters
Type Name Description
System.Int32[][] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this int[, ] matrix, double[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[,] matrix The transposed left matrix A.
System.Double[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[] TransposeAndDot(this int[, ] a, double[] columnVector)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Double[] columnVector The right matrix B.
Returns
Type Description
System.Double[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[, ] a, double[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Double[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[][] TransposeAndDot(this int[, ] a, double[][] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[,], Int32[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[, ] TransposeAndDot(this int[, ] a, double[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Double[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Double[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static double[, ] TransposeAndDot(this int[, ] a, double[, ] b)
Parameters
Type Name Description
System.Int32[,] 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[], Double[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static double[] TransposeAndDot(this int[, ] matrix, int[] columnVector, double[] result)
Parameters
Type Name Description
System.Int32[,] matrix The transposed left matrix A.
System.Int32[] 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[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[], Int32[])

Computes the product A'*b of matrix A transposed and column vector b.
Declaration
public static int[] TransposeAndDot(this int[, ] matrix, int[] columnVector, int[] result)
Parameters
Type Name Description
System.Int32[,] matrix The transposed left matrix A.
System.Int32[] columnVector The right column vector b.
System.Int32[] result The vector r to store the product r = A'*b of the given matrix A and vector b.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[] TransposeAndDot(this int[, ] a, int[] columnVector)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[] columnVector The right matrix B.
Returns
Type Description
System.Int32[]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[][], Double[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[][] TransposeAndDot(this int[, ] a, int[][] b, double[][] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[][], Int32[][])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[][] TransposeAndDot(this int[, ] a, int[][] b, int[][] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
System.Int32[][] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[][])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static int[][] TransposeAndDot(this int[, ] a, int[][] b)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[][] b The right matrix B.
Returns
Type Description
System.Int32[][] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[,], Double[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static double[, ] TransposeAndDot(this int[, ] a, int[, ] b, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[,], Int32[,])

Computes the product A'*B of matrix A transposed and matrix B.
Declaration
public static int[, ] TransposeAndDot(this int[, ] a, int[, ] b, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
System.Int32[,] result The matrix R to store the product R = A'*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDot(Int32[,], Int32[,])

Computes the product A'*B of transposed of matrix A and B.
Declaration
public static int[, ] TransposeAndDot(this int[, ] a, int[, ] b)
Parameters
Type Name Description
System.Int32[,] a The transposed left matrix A.
System.Int32[,] b The right matrix B.
Returns
Type Description
System.Int32[,] The product A'*B of the given matrices A and B.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[][], Double[], Int32[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[][] TransposeAndDotWithDiagonal(this double[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[][], Int32[], Double[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this double[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[][], Int32[], Int32[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[][] TransposeAndDotWithDiagonal(this double[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[][], Int32[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this double[][] a, int[] b)
Parameters
Type Name Description
System.Double[][] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[,], Double[], Int32[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] TransposeAndDotWithDiagonal(this double[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[,], Int32[], Double[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this double[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[,], Int32[], Int32[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] TransposeAndDotWithDiagonal(this double[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Double[,], Int32[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this double[, ] a, int[] b)
Parameters
Type Name Description
System.Double[,] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Double[], Double[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this int[][] a, double[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Double[], Int32[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[][] TransposeAndDotWithDiagonal(this int[][] a, double[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Double[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this int[][] a, double[] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Double[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Int32[], Double[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[][] TransposeAndDotWithDiagonal(this int[][] a, int[] diagonal, double[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] 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[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Int32[], Int32[][])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[][] TransposeAndDotWithDiagonal(this int[][] a, int[] diagonal, int[][] result)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[][] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[][], Int32[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[][] TransposeAndDotWithDiagonal(this int[][] a, int[] b)
Parameters
Type Name Description
System.Int32[][] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Int32[][]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Double[], Double[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this int[, ] a, double[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Double[], Int32[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] TransposeAndDotWithDiagonal(this int[, ] a, double[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Double[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this int[, ] a, double[] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Double[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Double[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Int32[], Double[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static double[, ] TransposeAndDotWithDiagonal(this int[, ] a, int[] diagonal, double[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] 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[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Int32[], Int32[,])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] TransposeAndDotWithDiagonal(this int[, ] a, int[] diagonal, int[, ] result)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] diagonal The diagonal vector of right matrix B.
System.Int32[,] result The matrix R to store the product R = A*B of the given matrices A and B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

TransposeAndDotWithDiagonal(Int32[,], Int32[])

Computes the product A'*B of matrix A and diagonal matrix B.
Declaration
public static int[, ] TransposeAndDotWithDiagonal(this int[, ] a, int[] b)
Parameters
Type Name Description
System.Int32[,] a The left matrix A.
System.Int32[] b The diagonal vector of right matrix B.
Returns
Type Description
System.Int32[,]
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array array The array to be trimmed.
Returns
Type Description
System.Array
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.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
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc View Source

Zeros(Type, Int32[])

Creates a zero-valued tensor.
Declaration
public static Array Zeros(Type type, params int[] shape)
Parameters
Type Name Description
System.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
System.Array A tensor of the specified shape.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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.
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
| Improve this Doc 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
System.Array A tensor of the specified shape.
Type Parameters
Name Description
T
Remarks
The matrix class is a static class containing several extension methods. To use this class, import the Mars.Numerics and use the standard .NET's matrices and jagged arrays. When you call the dot (.) operator on those classes, the extension methods offered by this class should become available through IntelliSense auto-complete.
See Also
DefaultMatrixFormatProvider
OctaveMatrixFormatProvider

See Also

DefaultMatrixFormatProvider
OctaveMatrixFormatProvider
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg