Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/17 13:16:09 (7 years ago)
Author:
mkommend
Message:

#2650: Switched definition of vertical and horizontal concatination of matrixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Common/3.3/MatrixExtensions.cs

    r14237 r14701  
    3939
    4040    /// <summary>
    41     /// Concatenates matrices horizontally.
     41    /// Concatenates matrices vertically.
    4242    /// A      B
    4343    /// 1 2    9 8
    4444    /// 3 4    7 6
    4545    ///
    46     /// HorzCat(A, B)
     46    /// VertCat(A, B)
    4747    /// 1 2
    4848    /// 3 4
     
    5454    /// <param name="b"></param>
    5555    /// <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) {
    5757      Contract.Assert(a.GetLength(1) == b.GetLength(1));
    5858      var aLen = a.GetLength(0);
     
    6868      return result;
    6969    }
     70
    7071    /// <summary>
    71     /// Concatenates matrices vertically.
     72    /// Concatenates matrices horizontally.
    7273    /// A      B
    7374    /// 1 2    9 8
    7475    /// 3 4    7 6
    7576    ///
    76     /// VertCat(A, B)
     77    /// HorzCat(A, B)
    7778    /// 1 2 9 8
    7879    /// 3 4 7 6
     
    8283    /// <param name="b"></param>
    8384    /// <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) {
    8586      Contract.Assert(a.GetLength(0) == b.GetLength(0));
    8687      var aLen = a.GetLength(1);
Note: See TracChangeset for help on using the changeset viewer.