public void AddInPlace(IVector vector, float coefficient1 = 1, float coefficient2 = 1) { Debug.Assert(IsValid && vector.IsValid); var other = (GpuVector)vector; Debug.Assert(other.Count == Count); _cuda.AddInPlace(Memory, other.Memory, Count, coefficient1, coefficient2); }
public void AddInPlace(IMatrix matrix, float coefficient1 = 1, float coefficient2 = 1) { Debug.Assert(IsValid && matrix.IsValid); var other = (GpuMatrix)matrix; Debug.Assert(other.RowCount == RowCount && other.ColumnCount == ColumnCount); _cuda.AddInPlace(Memory, other.Memory, RowCount * ColumnCount, coefficient1, coefficient2); }