public virtual void test_mapSensitivities() { CrossGammaParameterSensitivities multiplied = SENSI_1.mapSensitivities(a => 1 / a); DoubleMatrix test = multiplied.Sensitivities.get(0).Sensitivity; for (int i = 0; i < MATRIX_USD1.columnCount(); i++) { for (int j = 0; j < MATRIX_USD1.rowCount(); j++) { assertEquals(test.get(i, j), 1 / MATRIX_USD1.get(i, j)); } } }