Back to FabImage Library website

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

SubtractMatrices


Header: STD.h
Namespace: fil
Module: FoundationLite

Subtracts two matrices element by element.

Syntax

void fil::SubtractMatrices
(
	const fil::Matrix& inMatrix1,
	const fil::Matrix& inMatrix2,
	fil::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 SubtractMatrices.