Lines Matching refs:matrix
35 "Cannot create kernel, matrix is empty.",
40 "Values must be matrix, with the same number of columns in each row.",
44 //Should fail, matrix needs to have same number columns in each row
46 "Values must be matrix, with the same number of columns in each row.",
56 "Values must be matrix, with the same number of columns in each row.",
65 "Only numbers or false are valid values in a kernel matrix.",
114 $matrix = $kernel->getMatrix();
116 if ($matrix[1][1] != 0.5) {
117 echo "center point should be 0.5 but is actually ".$matrix[1][1].PHP_EOL;
118 var_dump($matrix);
186 //Test 'wrong' order matrix is converted correctly.
187 $matrix = array(
193 $outOfOrderMatrix[1][1] = $matrix[1][1];
194 $outOfOrderMatrix[1][0] = $matrix[1][0];
195 $outOfOrderMatrix[0][1] = $matrix[0][1];
196 $outOfOrderMatrix[0][0] = $matrix[0][0];
200 if ($kernelMatrix !== $matrix) {
201 echo "Kernel generated from 'out of order' matrix is incorrect.".PHP_EOL;
202 var_dump($matrix);