Example #1
0
        /// <summary>
        /// Concatinates all the matrices together along their columns.
        /// If the rows do not match the upper elements are set to zero.
        /// <code>A = [ m[0] ; ... ; m[n-1] ]</code>
        /// </summary>
        /// <param name="A">A Set of matrices.</param>
        /// <returns>Resulting matrix.</returns>
        public override SimpleMatrixD concatRows(params SimpleMatrixD[] A)
        {
            DMatrixRMaj[] m = new DMatrixRMaj[A.Length + 1];
            m[0] = mat;
            for (int i = 0; i < A.Length; i++)
            {
                m[1] = A[i].getMatrix();
            }
            var combined = CommonOps_DDRM.concatRows(m);

            return(wrapMatrix(combined));
        }