Ejemplo n.º 1
0
        public IVector ColumnL2Norm()
        {
            Debug.Assert(IsValid);
            var norm = new List <float>();

            for (var i = 0; i < _columns; i++)
            {
                using (var col = Column(i))
                    norm.Add(col.L2Norm());
            }
            return(_cuda.Create(norm.Count, x => norm[x]));
        }