Ejemplo n.º 1
0
        public Mat(VecCollection collection)
        {
            if (collection == null || collection.Count < 1)
                throw new ArgumentNullException("Collection cannot be null or empty.");

            Size = new MatSize(collection);

            Collection = collection;
        }
Ejemplo n.º 2
0
        public Mat(int rowCount, int colCount)
        {
            var collection = new VecCollection(colCount);
            for (int i = 0; i < rowCount; i++)
            {
                collection.Add(new Vec(colCount));
            }

            Size = new MatSize(collection);

            Collection = collection;
        }