Action_Recognition_2._0.FeatureExtractor2D.SetColumn C# (CSharp) Метод

SetColumn() приватный Метод

Sets a column of Matrix m specified by the index col to the values contained in the double array vals. Row dimension of Matrix m must match the length of array vals. Throws an exception if these dimensions do not match
private SetColumn ( Matrix m, int col, double vals ) : void
m Matrix
col int
vals double
Результат void
        private void SetColumn(Matrix m, int col, double[] vals)
        {
            if(m.getRowDimension() != vals.Length)  //disallow inconsistent dimensions
                throw new InconsistentDimensionException("Dimension mismatch: Array length and Matrix row dimension must be equal");

            for (int i = 0; i < m.getRowDimension(); i++)
                m.set(i, col, vals[i]);
        }