Vector<T>.EnsureWritable Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0

Overload List

EnsureWritable() Ensures that every element in the vector can be written to.
EnsureWritable(Int32)Checked compatibility wrapper for writability preparation.
Obsolete
EnsureWritable(Range)Checked compatibility wrapper for writability preparation.
Obsolete
EnsureWritable(Int32, Int32)Checked compatibility wrapper for writability preparation.
Obsolete

EnsureWritable

Ensures that every element in the vector can be written to.
C#
public void EnsureWritable()

Return Value

true if the operation succeeded; otherwise false.

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

EnsureWritable(Int32)

Note: This API is now obsolete.
Checked compatibility wrapper for writability preparation.
C#
[ObsoleteAttribute("Use the corresponding Unchecked method. The suffix-less writability APIs are retained as checked compatibility wrappers.", 
	false)]
public void EnsureWritable(
	int index
)

Parameters

index  Int32
 

EnsureWritable(Range)

Note: This API is now obsolete.
Checked compatibility wrapper for writability preparation.
C#
[ObsoleteAttribute("Use the corresponding Unchecked method. The suffix-less writability APIs are retained as checked compatibility wrappers.", 
	false)]
public void EnsureWritable(
	Range range
)

Parameters

range  Range
 

EnsureWritable(Int32, Int32)

Note: This API is now obsolete.
Checked compatibility wrapper for writability preparation.
C#
[ObsoleteAttribute("Use the corresponding Unchecked method. The suffix-less writability APIs are retained as checked compatibility wrappers.", 
	false)]
public void EnsureWritable(
	int startIndex,
	int endIndex
)

Parameters

startIndex  Int32
 
endIndex  Int32
 

See Also