ILNumerics Ultimate VS

ILMathones Method (Int64)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates a square matrix of 1.0-valued Double elements, size [dim0, dim0].

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: (5.5.7503.3146)

public static RetArray<double> ones(
	long rows_columns


Type: SystemInt64
Length of dimension #0 and dimension #1.

Return Value

Type: RetArrayDouble
New ILNumerics array initialized with 1.0 values.

This creates a square matrix with the same number of rows and columns. The elements are ordered in ColumnMajor order.

This function always creates a matrix, hence the array returned will always have two dimensions. Use vector``1(UMP, UMP, UMP, UMP) or array``1(UMP, Int64, StorageOrders) for creating arrays with less than two dimension if your setting of ArrayStyle allows it.

[ILNumerics Computing Engine]

See Also


MathInternal.ones``1(Int64, Int64, StorageOrders)
MathInternal.zeros``1(Int64, Int64, StorageOrders)
MathInternal.array``1(UMP, Int64, StorageOrders)
MathInternal.vector``1(UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP)

Other Resources