- Timestamp:
- 02/24/17 13:16:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Common/3.3/MatrixExtensions.cs
r14237 r14701 39 39 40 40 /// <summary> 41 /// Concatenates matrices horizontally.41 /// Concatenates matrices vertically. 42 42 /// A B 43 43 /// 1 2 9 8 44 44 /// 3 4 7 6 45 45 /// 46 /// HorzCat(A, B)46 /// VertCat(A, B) 47 47 /// 1 2 48 48 /// 3 4 … … 54 54 /// <param name="b"></param> 55 55 /// <returns>A new matrix with the number of rows = a.GetLength(0) + b.GetLength(0)</returns> 56 public static T[,] HorzCat<T>(this T[,] a, T[,] b) {56 public static T[,] VertCat<T>(this T[,] a, T[,] b) { 57 57 Contract.Assert(a.GetLength(1) == b.GetLength(1)); 58 58 var aLen = a.GetLength(0); … … 68 68 return result; 69 69 } 70 70 71 /// <summary> 71 /// Concatenates matrices vertically.72 /// Concatenates matrices horizontally. 72 73 /// A B 73 74 /// 1 2 9 8 74 75 /// 3 4 7 6 75 76 /// 76 /// VertCat(A, B)77 /// HorzCat(A, B) 77 78 /// 1 2 9 8 78 79 /// 3 4 7 6 … … 82 83 /// <param name="b"></param> 83 84 /// <returns>A new matrix with the number of columns = a.GetLength(1) + b.GetLength(1)</returns> 84 public static T[,] VertCat<T>(this T[,] a, T[,] b) {85 public static T[,] HorzCat<T>(this T[,] a, T[,] b) { 85 86 Contract.Assert(a.GetLength(0) == b.GetLength(0)); 86 87 var aLen = a.GetLength(1);
Note: See TracChangeset
for help on using the changeset viewer.