Learn R Programming

gpuR (version 2.0.6)

identity_matrix: Identity Matrix on Device

Description

Creates an identity matrix directly on the current device (e.g. GPU)

Usage

identity_matrix(x, type = NULL)

Value

A vclMatrix object

Arguments

x

A numeric value indicating the order of the identity matrix

type

A character string specifying the type of gpuMatrix. Default is derived from getOption("gpuR.default.type").

Author

Charles Determan Jr.