Back to Aurora Vision Library website

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

AddMatrices


Header: STD.h
Namespace: avl
Module: FoundationLite

Adds two matrices element by element.

Syntax

void avl::AddMatrices
(
	const avl::Matrix& inMatrix1,
	const avl::Matrix& inMatrix2,
	avl::Matrix& outMatrix
)

Parameters

Name Type Default Description
Input value inMatrix1 const Matrix&
Input value inMatrix2 const Matrix&
Output value outMatrix Matrix&

Errors

List of possible exceptions:

Error type Description
DomainError Matrix dimensions do not match in AddMatrices.