Back to Aurora Vision Library website

You are here: Start » Function Reference » Basic » Matrix » CreateIdentityMatrix

CreateIdentityMatrix


Header: STD.h
Namespace: avl
Module: FoundationLite

Creates a square matrix with ones on the main diagonal, and zeros elsewhere.

Syntax

void avl::CreateIdentityMatrix
(
	int inSize,
	avl::Matrix& outMatrix
)

Parameters

Name Type Range Default Description
Input value inSize int 1 -
Output value outMatrix Matrix&