Beispiel #1
0
        public void Weight([NotNull] FMat weight)
        {
            ThrowIfDisposed();

            if (weight == null)
            {
                throw new ArgumentNullException(nameof(weight));
            }

            NativeMethods.fmat_weight(this, weight);
        }
Beispiel #2
0
        public void Copy([NotNull] FMat target)
        {
            ThrowIfDisposed();

            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            if (target.Height != Height || target.Length != Length)
            {
                throw new ArgumentOutOfRangeException(nameof(target));
            }

            NativeMethods.fmat_copy(this, target);
        }