ILNumerics - Technical Application Development
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
New array with repeated copies of the source array along the dimensions as specified by rep.
Creates new array with repeated copies of the content of the source array.
[ILNumerics Core Module]
Namespace: ILNumerics
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetT Repmat<T, LocalT, InT, OutT, RetT, StorageT>( this ConcreteArray<T, LocalT, InT, OutT, RetT, StorageT> A, InArray<long> rep ) where LocalT : Mutable<T, LocalT, InT, OutT, RetT, StorageT> where InT : Immutable<T, LocalT, InT, OutT, RetT, StorageT> where OutT : Mutable<T, LocalT, InT, OutT, RetT, StorageT> where RetT : ConcreteRetArray<T, LocalT, InT, OutT, RetT, StorageT> where StorageT : new(), BaseStorage<T, LocalT, InT, OutT, RetT, StorageT>
Parameters
- A
- Type: ILNumerics.Core.ArraysConcreteArrayT, LocalT, InT, OutT, RetT, StorageT
The source array. - rep
- Type: ILNumericsInArrayInt64
Repetition factors for each dimensions A is to be replicated along.
Type Parameters
- T
- LocalT
- InT
- OutT
- RetT
- StorageT
Return Value
Type: RetTNew array with repeated copies of the source array along the dimensions as specified by rep.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArrayT, LocalT, InT, OutT, RetT, StorageT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If rep is null. |
Remarks
[ILNumerics Core Module]
See Also