Back to Adaptive 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
inMatrix1 const Matrix&
inMatrix2 const Matrix&
outMatrix Matrix&

Errors

List of possible exceptions:

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