示例#1
0
        public void AddInPlace(IMatrix matrix, float coefficient1 = 1, float coefficient2 = 1)
        {
            Debug.Assert(IsValid && matrix.IsValid);
            var other = (GpuMatrix)matrix;

            Debug.Assert(other._rows == _rows && other._columns == _columns);

            _cuda.AddInPlace(_data, other._data, _rows * _columns, coefficient1, coefficient2);
        }
示例#2
0
        public void AddInPlace(IVector vector, float coefficient1 = 1, float coefficient2 = 1)
        {
            Debug.Assert(IsValid && vector.IsValid);
            var other = (GpuVector)vector;

            Debug.Assert(other._size == _size);

            _cuda.AddInPlace(_data, other._data, _size, coefficient1, coefficient2);
        }